From 6ad174c74402ec22a4b5359ec44aaa37d6e82dc2 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Mon, 11 Oct 2021 15:31:15 +0800 Subject: [PATCH] improve app_helper_base --- docs/changes.md | 3 +++ scripts/app_helper_base.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/docs/changes.md b/docs/changes.md index 4e231fc00..3c012ef42 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -1,5 +1,8 @@ # 最新动态 +2021/10/11 + * 完善app\_help\_base,修复mvvm-js项目编译时找不到jerryscript路径的问题(感谢雨欣提供补丁) + 2021/10/09 * 修复拖拽控件在拖拽时且控件不移动时,没有发送drag事件(感谢兆坤提供补丁) diff --git a/scripts/app_helper_base.py b/scripts/app_helper_base.py index d09738e15..12b5c3bfa 100644 --- a/scripts/app_helper_base.py +++ b/scripts/app_helper_base.py @@ -456,6 +456,7 @@ class AppHelperBase: if self.MVVM_ROOT: if self.WITH_JERRYSCRIPT: + MVVM_3RD_ROOT = join_path(self.MVVM_ROOT, '3rd') DEPENDS_LIBS += [{ 'cxxflags': '-DWITH_MVVM -DWITH_JERRYSCRIPT', 'cflags': '-DWITH_MVVM -DWITH_JERRYSCRIPT', @@ -464,6 +465,10 @@ class AppHelperBase: 'shared_libs': ['mvvm'], 'static_libs': [''] }] + CPPPATH += [ + join_path(MVVM_3RD_ROOT, 'jerryscript/jerryscript/jerry-ext/include'), + join_path(MVVM_3RD_ROOT, 'jerryscript/jerryscript/jerry-core/include'), + ] else: DEPENDS_LIBS += [{ 'cxxflags': '-DWITH_MVVM',