improve build scripts

This commit is contained in:
lixianjing 2022-09-27 18:08:17 +08:00
parent 92e2a0564b
commit 8e65682e80
2 changed files with 3 additions and 11 deletions

View File

@ -123,16 +123,6 @@ elif OS_NAME == 'Linux':
elif OS_NAME == 'Windows':
WIN32_AWTK_RES = 'win32_res/awtk.res'
if TARGET_ARCH == 'x86':
WIN32_AWTK_RES = 'win32_res/awtk_x86.res'
if not os.path.exists(WIN32_AWTK_RES):
if TARGET_ARCH == 'x86':
WIN32_AWTK_RES = os.path.join(TK_ROOT, 'win32_res/awtk_x86.res')
else:
WIN32_AWTK_RES = os.path.join(TK_ROOT, 'win32_res/awtk.res')
if not os.path.exists(os.path.abspath(TK_BIN_DIR)):
os.makedirs(os.path.abspath(TK_BIN_DIR))
if not os.path.exists(os.path.abspath(TK_LIB_DIR)):
@ -169,7 +159,6 @@ elif OS_NAME == 'Windows':
OS_FLAGS = OS_FLAGS + \
'-D_SECURE_SCL=0 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE '
OS_PROJECTS = ['3rd/SDL/SConscript']
OS_LINKFLAGS += '\"' + WIN32_AWTK_RES + '\" '
def has_custom_cc():

View File

@ -1,4 +1,7 @@
# 最新动态
2022/09/27
* 把windows下加载res资 源的逻辑移动在awtk_config.py文件中(感谢智明提供补丁)
2022/09/26
* 增加value\_lshift/value\_rshift/value\_lshift\_r/value\_rshift\_r等函数。
* 增加value\_set\_bit/value\_get\_bit/value\_toggle\_bit等函数。