Skip to content

Commit c33fea7

Browse files
committed
Merge pull request #321 from GuoLunHao/v3
fix the Environment variable key for COCOS_X_ROOT
2 parents c3571be + 1cfa32b commit c33fea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/plugin_compile/build_android.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ def do_ndk_build(self, ndk_build_param, build_mode, compile_obj):
270270

271271
module_paths = []
272272
for cfg_path in self.ndk_module_paths:
273-
if cfg_path.find("${ENGINE_ROOT}") >= 0:
273+
if cfg_path.find("${COCOS_X_ROOT}") >= 0:
274274
cocos_root = cocos.check_environment_variable("COCOS_X_ROOT")
275-
module_paths.append(cfg_path.replace("${ENGINE_ROOT}", cocos_root))
275+
module_paths.append(cfg_path.replace("${COCOS_X_ROOT}", cocos_root))
276276
elif cfg_path.find("${COCOS_FRAMEWORKS}") >= 0:
277277
cocos_frameworks = cocos.check_environment_variable("COCOS_FRAMEWORKS")
278278
module_paths.append(cfg_path.replace("${COCOS_FRAMEWORKS}", cocos_frameworks))

0 commit comments

Comments
 (0)