代码拉取完成,页面将自动刷新
同步操作将从 zlgopen/awtk 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import os
import atexit
import platform
import sys
sys.path.insert(0, './scripts')
import compile_config
complie_helper = compile_config.complie_helper()
complie_helper.try_load_default_config()
complie_helper.scons_user_sopt(ARGUMENTS)
compile_config.set_curr_config(complie_helper)
import awtk_config as awtk
APP_TOOLS = ['default']
OS_NAME = platform.system()
awtk.scons_db_check_and_remove()
if awtk.TOOLS_NAME != '' :
if awtk.TOOLS_NAME == 'mingw':
APP_TOOLS = ['mingw']
elif awtk.TOOLS_NAME == '' and OS_NAME == 'Windows':
APP_TOOLS = ['msvc', 'masm', 'mslink', "mslib"]
awtk.genIdlAndDef();
DefaultEnvironment(TOOLS = APP_TOOLS,
CCFLAGS = awtk.AWTK_CCFLAGS + awtk.BUILD_DEBUG_FLAG,
LIBS = awtk.LIBS,
LIBPATH = awtk.LIBPATH,
CPPPATH = awtk.CPPPATH + [awtk.joinPath(awtk.TK_ROOT, 'res')],
LINKFLAGS = awtk.LINKFLAGS + awtk.BUILD_DEBUG_LINKFLAGS,
TARGET_ARCH=awtk.TARGET_ARCH,
OS_SUBSYSTEM_CONSOLE=awtk.OS_SUBSYSTEM_CONSOLE,
OS_SUBSYSTEM_WINDOWS=awtk.OS_SUBSYSTEM_WINDOWS
)
SConscriptFiles=awtk.NANOVG_BACKEND_PROJS + [
'3rd/cjson/SConscript',
'3rd/mbedtls/SConscript',
'3rd/glad/SConscript',
'3rd/gpinyin/SConscript',
'3rd/svgtiny/SConscript',
'3rd/libunibreak/SConscript',
'3rd/lz4/SConscript',
'3rd/miniz/SConscript',
'3rd/fribidi/SConscript',
'3rd/nativefiledialog/SConscript',
'src/SConscript',
'src/csv/SConscript',
'src/conf_io/SConscript',
'src/hal/SConscript',
'src/streams/SConscript',
'src/compressors/SConscript',
'src/ubjson/SConscript',
'src/debugger/SConscript',
'src/fscript_ext/SConscript',
'src/xml/SConscript',
'src/charset/SConscript',
'src/romfs/SConscript',
]
os.environ['BUILD_TOOLS'] = str(complie_helper.get_value('BUILD_TOOLS', True))
if complie_helper.get_value('BUILD_TOOLS', True) :
SConscriptFiles += [
'src/streams/tools/SConscript',
'tools/common/SConscript',
'tools/theme_gen/SConscript',
'tools/font_gen/SConscript',
'tools/image_gen/SConscript',
'tools/image_resize/SConscript',
'tools/image_dither/SConscript',
'tools/res_gen/SConscript',
'tools/str_gen/SConscript',
'tools/ui_gen/xml_to_ui/SConscript',
'tools/svg_gen/SConscript',
'tools/api_doc_lint/SConscript',
'tools/preview_ui/SConscript',
'tools/fdb/SConscript',
'tools/dltest/SConscript',
'tools/ui_test/SConscript',
'src/hal/tools/network_shell/SConscript',
]
if complie_helper.get_value('BUILD_DEMOS', True) :
SConscriptFiles += ['demos/SConscript']
if complie_helper.get_value('BUILD_TESTS', True) :
SConscriptFiles += ['tests/SConscript']
SConscriptFiles += awtk.OS_PROJECTS
os.environ['TK_ROOT'] = awtk.TK_ROOT;
os.environ['BIN_DIR'] = awtk.TK_BIN_DIR;
os.environ['LIB_DIR'] = awtk.TK_LIB_DIR;
os.environ['AWTK_SHARED_LIBS'] = ';'.join(awtk.SHARED_LIBS);
SConscript(SConscriptFiles)
def compile_end() :
complie_helper.save_last_complie_argv()
complie_helper.output_compile_data(awtk.TK_ROOT)
atexit.register(compile_end)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。