awtk/SConstruct
2019-08-15 12:16:49 +08:00

54 lines
1.5 KiB
Python

import os
import awtk_config as awtk
if awtk.TOOLS_NAME == '' :
DefaultEnvironment(CCFLAGS = awtk.CCFLAGS,
LIBS = awtk.LIBS,
LIBPATH = awtk.LIBPATH,
CPPPATH = awtk.CPPPATH,
LINKFLAGS = awtk.LINKFLAGS,
TARGET_ARCH=awtk.TARGET_ARCH,
OS_SUBSYSTEM_CONSOLE=awtk.OS_SUBSYSTEM_CONSOLE,
OS_SUBSYSTEM_WINDOWS=awtk.OS_SUBSYSTEM_WINDOWS
)
else :
tool_name_list = [];
tool_name_list.append(awtk.TOOLS_NAME);
DefaultEnvironment(CCFLAGS = awtk.CCFLAGS,
LIBS = awtk.LIBS,
LIBPATH = awtk.LIBPATH,
CPPPATH = awtk.CPPPATH,
TOOLS = tool_name_list,
LINKFLAGS = awtk.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/nanovg/SConscript',
'3rd/glad/SConscript',
'3rd/gpinyin/SConscript',
'3rd/libunibreak/SConscript',
'src/SConscript',
'tools/common/SConscript',
'tools/theme_gen/SConscript',
'tools/font_gen/SConscript',
'tools/image_gen/SConscript',
'tools/image_resize/SConscript',
'tools/res_gen/SConscript',
'tools/str_gen/SConscript',
'tools/ui_gen/qt_to_xml/SConscript',
'tools/ui_gen/xml_to_ui/SConscript',
'tools/svg_gen/SConscript',
'demos/SConscript',
'tests/SConscript'
] + 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;
SConscript(SConscriptFiles)