File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ function(build_firebase_shared LIBRARY_NAME ARTIFACT_NAME OUTPUT_NAME)
8888 # Link against the static libc++, which is the default done by Gradle.
8989 "-static-libstdc++"
9090 )
91+ add_custom_command (TARGET ${shared_target} POST_BUILD
92+ COMMAND "${ANDROID_TOOLCHAIN_PREFIX} strip" -g -S -d --strip-debug --verbose
93+ "lib${OUTPUT_NAME} .so"
94+ COMMENT "Strip debug symbols done on final binary. lib${OUTPUT_NAME} .so" )
9195 endif ()
9296
9397 unity_pack_native(${shared_target} )
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ function(build_uni TARGET_LINK_LIB_NAMES PROJECT_LIST_HEADER_VARIABLE)
8787 # Link against the static libc++, which is the default done by Gradle.
8888 "-static-libstdc++"
8989 )
90+ add_custom_command (TARGET firebase_app_uni POST_BUILD
91+ COMMAND "${ANDROID_TOOLCHAIN_PREFIX} strip" -g -S -d --strip-debug --verbose
92+ "lib${FIREBASE_APP_UNI_VERSIONED} .so"
93+ COMMENT "Strip debug symbols done on final binary. lib${FIREBASE_APP_UNI_VERSIONED} .so" )
9094 endif ()
9195
9296 unity_pack_native(firebase_app_uni)
You can’t perform that action at this time.
0 commit comments