Skip to content

Commit e95644a

Browse files
author
zhangbin
committed
Support strip arm64-v8a libs when generating android libs.
1 parent 187bf58 commit e95644a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/plugin_generate/gen_libs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ def compile_android(self):
414414
for fold in armlibs:
415415
self.trip_libs(strip_cmd_path, os.path.join(android_out_dir, fold))
416416

417+
# strip arm64-v8a libs
418+
strip_cmd_path = os.path.join(ndk_root, "toolchains/aarch64-linux-android-4.9/prebuilt/%s/aarch64-linux-android/bin/%s" % (sys_folder_name, strip_execute_name))
419+
if os.path.exists(strip_cmd_path) and os.path.exists(os.path.join(android_out_dir, "arm64-v8a")):
420+
self.trip_libs(strip_cmd_path, os.path.join(android_out_dir, 'arm64-v8a'))
421+
417422
# strip x86 libs
418423
strip_cmd_path = os.path.join(ndk_root, "toolchains/x86-4.8/prebuilt/%s/i686-linux-android/bin/%s" % (sys_folder_name, strip_execute_name))
419424
if os.path.exists(strip_cmd_path) and os.path.exists(os.path.join(android_out_dir, "x86")):

0 commit comments

Comments
 (0)