Skip to content

Commit 05e6046

Browse files
author
zhangbin
committed
Report warning message if Android.mk is not found.
1 parent f6f4b13 commit 05e6046

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/plugin_generate/gen_libs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,11 @@ def modify_binary_mk(self):
443443
android_libs = os.path.join(self.lib_dir, "android")
444444
android_mks = self.cfg_info[LibsCompiler.KEY_ANDROID_MKS]
445445
for mk_file in android_mks:
446-
mk_file_path = os.path.join(self.repo_x, mk_file)
446+
mk_file_path = os.path.normpath(os.path.join(self.repo_x, mk_file))
447+
if not os.path.isfile(mk_file_path):
448+
Logging.warning(MultiLanguage.get_string('COMPILE_ERROR_GRALEW_NOT_EXIST_FMT', mk_file_path))
449+
continue
450+
447451
dst_file_path = os.path.join(os.path.dirname(mk_file_path), "prebuilt-mk", os.path.basename(mk_file_path))
448452
tmp_obj = gen_prebuilt_mk.MKGenerator(mk_file_path, android_libs, dst_file_path)
449453
tmp_obj.do_generate()

0 commit comments

Comments
 (0)