improve app_helper_base

This commit is contained in:
lixianjing 2021-10-11 15:31:15 +08:00
parent fa40fb73d7
commit 6ad174c744
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,8 @@
# 最新动态
2021/10/11
* 完善app\_help\_base修复mvvm-js项目编译时找不到jerryscript路径的问题感谢雨欣提供补丁
2021/10/09
* 修复拖拽控件在拖拽时且控件不移动时没有发送drag事件感谢兆坤提供补丁

View File

@ -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',