Skip to content

Commit fe0a27a

Browse files
committed
Exclude gdbserver and gdb.setup from release builds
1 parent 049dfdf commit fe0a27a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pythonforandroid/bootstraps/common/build/templates/build.tmpl.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ android {
3939
manifestPlaceholders = {{ args.manifest_placeholders}}
4040
}
4141

42-
{% if debug_build -%}
42+
4343
packagingOptions {
44-
doNotStrip '**/*.so'
44+
{% if debug_build -%}
45+
doNotStrip '**/*.so'
46+
{% else %}
47+
exclude 'lib/**/gdbserver'
48+
exclude 'lib/**/gdb.setup'
49+
{%- endif %}
4550
}
46-
{%- endif %}
51+
4752

4853
{% if args.sign -%}
4954
signingConfigs {

0 commit comments

Comments
 (0)