@@ -103,8 +103,6 @@ def _parse_cfg(self):
103
103
else :
104
104
self .res_files = cfg [project_compile .CCPluginCompile .CFG_KEY_COPY_RESOURCES ]
105
105
106
- self .ndk_module_paths = cfg ['ndk_module_path' ]
107
-
108
106
move_cfg = {}
109
107
self .key_store = None
110
108
if cfg .has_key (AndroidBuilder .CFG_KEY_STORE ):
@@ -309,37 +307,18 @@ def do_ndk_build(self, ndk_build_param, build_mode, compile_obj):
309
307
sys .setdefaultencoding ('utf8' )
310
308
ndk_path = cocos .CMDRunner .convert_path_to_cmd (os .path .join (ndk_root , "ndk-build" ))
311
309
312
- module_paths = []
313
- for cfg_path in self .ndk_module_paths :
314
- if cfg_path .find ("${COCOS_X_ROOT}" ) >= 0 :
315
- cocos_root = cocos .check_environment_variable ("COCOS_X_ROOT" )
316
- module_paths .append (os .path .normpath (cfg_path .replace ("${COCOS_X_ROOT}" , cocos_root )))
317
- elif cfg_path .find ("${COCOS_FRAMEWORKS}" ) >= 0 :
318
- cocos_frameworks = cocos .check_environment_variable ("COCOS_FRAMEWORKS" )
319
- module_paths .append (os .path .normpath (cfg_path .replace ("${COCOS_FRAMEWORKS}" , cocos_frameworks )))
320
- else :
321
- module_paths .append (os .path .normpath (os .path .join (self .app_android_root , cfg_path )))
322
-
323
310
# delete template static and dynamic files
324
311
obj_local_dir = os .path .join (ndk_work_dir , "obj" , "local" )
325
312
if os .path .isdir (obj_local_dir ):
326
313
for abi_dir in os .listdir (obj_local_dir ):
327
314
static_file_path = os .path .join (ndk_work_dir , "obj" , "local" , abi_dir )
328
315
if os .path .isdir (static_file_path ):
329
316
self .remove_c_libs (static_file_path )
330
-
331
- # windows should use ";" to seperate module paths
332
- if cocos .os_is_win32 ():
333
- ndk_module_path = ';' .join (module_paths )
334
- else :
335
- ndk_module_path = ':' .join (module_paths )
336
-
337
- ndk_module_path = 'NDK_MODULE_PATH=' + ndk_module_path
338
317
339
318
if ndk_build_param is None :
340
- ndk_build_cmd = '%s -C %s %s ' % (ndk_path , ndk_work_dir , ndk_module_path )
319
+ ndk_build_cmd = '%s -C %s' % (ndk_path , ndk_work_dir )
341
320
else :
342
- ndk_build_cmd = '%s -C %s %s %s ' % (ndk_path , ndk_work_dir , ' ' .join (ndk_build_param ), ndk_module_path )
321
+ ndk_build_cmd = '%s -C %s %s' % (ndk_path , ndk_work_dir , ' ' .join (ndk_build_param ))
343
322
344
323
ndk_build_cmd = '%s NDK_TOOLCHAIN_VERSION=%s' % (ndk_build_cmd , toolchain_version )
345
324
0 commit comments