@@ -63,6 +63,8 @@ def parse_args(self, argv):
63
63
group = parser .add_argument_group (MultiLanguage .get_string ('GEN_LIBS_GROUP_ANDROID' ))
64
64
group .add_argument ("--app-abi" , dest = "app_abi" ,
65
65
help = MultiLanguage .get_string ('GEN_LIBS_ARG_ABI' ))
66
+ group .add_argument ("--ap" , dest = "android_platform" ,
67
+ help = MultiLanguage .get_string ('COMPILE_ARG_AP' ))
66
68
67
69
(args , unknown ) = parser .parse_known_args (argv )
68
70
self .init (args )
@@ -129,6 +131,7 @@ def init(self, args):
129
131
self .app_abi = 'armeabi'
130
132
else :
131
133
self .app_abi = args .app_abi
134
+ self .android_platform = args .android_platform
132
135
133
136
self .lib_dir = os .path .normpath (os .path .join (self .repo_x , self .cfg_info [LibsCompiler .KEY_LIBS_OUTPUT ]))
134
137
@@ -361,6 +364,8 @@ def compile_android(self):
361
364
# build the simulator project
362
365
proj_path = os .path .join (engine_dir , 'tools/simulator' )
363
366
build_cmd = "%s compile -s %s -p android --ndk-mode %s --app-abi %s" % (cmd_path , proj_path , self .mode , self .app_abi )
367
+ if self .android_platform is not None :
368
+ build_cmd += ' --ap %s' % self .android_platform
364
369
self ._run_cmd (build_cmd )
365
370
366
371
# copy .a to prebuilt dir
0 commit comments