improve app_helper_base

This commit is contained in:
lixianjing 2023-01-04 17:56:18 +08:00
parent f92e2e2938
commit 57648aaaea
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,7 @@
* widget为designing\_window的子控件时widget\_set\_need\_relayout失败的问题(感谢朝泽提供补丁)
* 修复了fs\_create\_dir\_r函数中tokenizer没有释放就return的问题(感谢泽武提供补丁)
* 善了 awtk 的编译脚本,在 win 平台上,默认指定 scons 使用 msvc 编译器,除非用户自己指定 TOOLS_NAME='mingw',避免按照 scons 内部的顺序来查找编译器(感谢雨欣提供补丁)
* 完善app\_helper\_base(感谢雨欣提供补丁)
20223/01/03
* 资源名称长度超过上限时,另外申请空间来保存(感谢陈聪提供补丁)

View File

@ -460,7 +460,10 @@ class AppHelperBase:
self.APP_LIBPATH = [self.APP_BIN_DIR, self.APP_LIB_DIR]
if hasattr(awtk, 'TOOLS_NAME') and awtk.TOOLS_NAME != '':
self.APP_TOOLS = [awtk.TOOLS_NAME]
if awtk.TOOLS_NAME == 'msvc':
self.APP_TOOLS = ['msvc', 'masm', 'mslink', "mslib"]
elif awtk.TOOLS_NAME == 'mingw':
self.APP_TOOLS = ['mingw']
os.environ['BUILD_SHARED'] = str(self.isBuildShared())
if LCD_ORIENTATION == '90' or LCD_ORIENTATION == '270' :