This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 5
5
declare_args () {
6
6
shell_enable_vulkan = false
7
7
shell_enable_metal = false
8
+ stripped_symbols = true
8
9
}
Original file line number Diff line number Diff line change @@ -306,9 +306,15 @@ action("icudtl_object") {
306
306
action (" android" ) {
307
307
script = " //build/android/gyp/create_flutter_jar.py"
308
308
309
+ if (stripped_symbols ) {
310
+ engine_library = " lib.stripped/libflutter.so"
311
+ } else {
312
+ engine_library = " libflutter.so"
313
+ }
314
+
309
315
inputs = [
310
316
" $root_build_dir /$embedding_jar_filename " ,
311
- " $root_build_dir /lib.stripped/libflutter.so " ,
317
+ " $root_build_dir /$engine_library " ,
312
318
]
313
319
314
320
engine_artifact_id =
@@ -329,7 +335,7 @@ action("android") {
329
335
" --dist_jar" ,
330
336
rebase_path (embedding_jar_filename , root_build_dir , root_build_dir ),
331
337
" --native_lib" ,
332
- rebase_path (" lib.stripped/libflutter.so " , root_build_dir , root_build_dir ),
338
+ rebase_path (" $engine_library " , root_build_dir , root_build_dir ),
333
339
" --android_abi" ,
334
340
" $android_app_abi " ,
335
341
]
Original file line number Diff line number Diff line change @@ -264,6 +264,8 @@ def to_gn_args(args):
264
264
if args .build_glfw_shell :
265
265
gn_args ['build_glfw_shell' ] = True
266
266
267
+ gn_args ['stripped_symbols' ] = args .stripped
268
+
267
269
return gn_args
268
270
269
271
def parse_args (args ):
@@ -335,6 +337,10 @@ def parse_args(args):
335
337
parser .add_argument ('--bitcode' , default = False , action = 'store_true' ,
336
338
help = 'Enable bitcode for iOS targets. On debug runtime modes, this will be a marker only.' )
337
339
340
+ parser .add_argument ('--stripped' , default = True , action = 'store_true' ,
341
+ help = 'Strip debug symbols from the output. This defaults to true and has no effect on iOS.' )
342
+ parser .add_argument ('--no-stripped' , dest = 'stripped' , action = 'store_false' )
343
+
338
344
return parser .parse_args (args )
339
345
340
346
def main (argv ):
You can’t perform that action at this time.
0 commit comments