2019-02-25 17:45:05 +08:00
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import platform
|
2020-07-20 18:20:20 +08:00
|
|
|
import shutil
|
2019-08-15 08:14:32 +08:00
|
|
|
from shutil import copyfile
|
2021-12-02 16:52:58 +08:00
|
|
|
from awtk_config_common import OS_NAME, TARGET_ARCH, TOOLS_PREFIX, TK_SRC, TK_BIN_DIR, TK_LIB_DIR, TK_3RD_ROOT, TK_TOOLS_ROOT, TK_DEMO_ROOT, GTEST_ROOT, TKC_STATIC_LIBS, TOOLS_NAME, NANOVG_BACKEND, NATIVE_WINDOW, TK_ROOT
|
2023-03-09 17:46:55 +08:00
|
|
|
from awtk_config_common import joinPath, toWholeArchive, genIdlAndDefEx, setEnvSpawn, genDllLinkFlags, copySharedLib, cleanSharedLib, scons_db_check_and_remove
|
2021-12-02 16:52:58 +08:00
|
|
|
from awtk_config_common import OS_FLAGS, OS_LIBS, OS_LIBPATH, OS_CPPPATH, OS_LINKFLAGS, OS_SUBSYSTEM_CONSOLE, OS_SUBSYSTEM_WINDOWS, OS_PROJECTS, COMMON_CFLAGS
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
WIN32_AWTK_RES = 'win32_res/awtk.res'
|
2022-07-14 17:49:48 +08:00
|
|
|
if TARGET_ARCH == 'x86':
|
|
|
|
WIN32_AWTK_RES = 'win32_res/awtk_x86.res'
|
|
|
|
|
2021-04-28 15:58:12 +08:00
|
|
|
if not os.path.exists(WIN32_AWTK_RES):
|
2022-07-14 17:49:48 +08:00
|
|
|
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')
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2022-07-20 07:41:39 +08:00
|
|
|
AWTK_STATIC_LIBS = ['awtk_global', 'fscript_ext_widgets', 'extwidgets', 'nfd',
|
2022-11-16 15:48:41 +08:00
|
|
|
'widgets', 'base', 'gpinyin', 'fribidi', 'linebreak', 'svgtiny']
|
2021-12-02 16:52:58 +08:00
|
|
|
AWTK_STATIC_LIBS = AWTK_STATIC_LIBS+TKC_STATIC_LIBS
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
# INPUT_ENGINE='null'
|
|
|
|
# INPUT_ENGINE='spinyin'
|
|
|
|
# INPUT_ENGINE='t9'
|
|
|
|
# INPUT_ENGINE='t9ext'
|
|
|
|
INPUT_ENGINE = 'pinyin'
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
VGCANVAS = 'NANOVG'
|
2021-10-30 16:41:53 +08:00
|
|
|
# VGCANVAS='NANOVG_PLUS'
|
2019-05-31 12:09:41 +08:00
|
|
|
if OS_NAME == 'Windows':
|
2021-12-02 16:52:58 +08:00
|
|
|
TK_ROOT = TK_ROOT.replace('\\', '\\\\')
|
|
|
|
NANOVG_BACKEND = 'GLES2'
|
2019-05-31 12:09:41 +08:00
|
|
|
else:
|
2021-12-02 16:52:58 +08:00
|
|
|
NANOVG_BACKEND = 'GL3'
|
2019-05-31 12:09:41 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
# VGCANVAS='CAIRO'
|
|
|
|
# NANOVG_BACKEND='GLES2'
|
|
|
|
# NANOVG_BACKEND='GLES3'
|
|
|
|
# NANOVG_BACKEND='AGG'
|
|
|
|
# NANOVG_BACKEND='BGFX'
|
|
|
|
# NANOVG_BACKEND='AGGE'
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
FRAME_BUFFER_FORMAT = ''
|
2019-05-15 16:09:57 +08:00
|
|
|
if VGCANVAS == 'CAIRO':
|
2021-12-02 16:52:58 +08:00
|
|
|
LCD = 'SDL_FB'
|
|
|
|
FRAME_BUFFER_FORMAT = 'bgr565'
|
|
|
|
# FRAME_BUFFER_FORMAT='bgra8888'
|
2019-05-15 16:09:57 +08:00
|
|
|
else:
|
2021-12-02 16:52:58 +08:00
|
|
|
if NANOVG_BACKEND == 'AGGE' or NANOVG_BACKEND == 'AGG':
|
|
|
|
LCD = 'SDL_FB'
|
|
|
|
FRAME_BUFFER_FORMAT = 'bgr565'
|
|
|
|
# FRAME_BUFFER_FORMAT='bgra8888'
|
|
|
|
else:
|
|
|
|
LCD = 'SDL_GPU'
|
|
|
|
# LCD='SDL_FB_MONO'
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
NANOVG_BACKEND_LIBS = []
|
|
|
|
NANOVG_BACKEND_PROJS = []
|
|
|
|
NANOVG_BACKEND_CPPPATH = []
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
NATIVE_WINDOW = 'sdl'
|
2019-08-01 11:10:17 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
COMMON_CCFLAGS = ' -DTK_ROOT=\"\\\"'+TK_ROOT+'\\\"\" '
|
2021-05-26 18:12:22 +08:00
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITHOUT_WINDOW_ANIMATOR_CACHE=1 '
|
2019-03-21 16:29:27 +08:00
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DENABLE_PERFORMANCE_PROFILE=1 '
|
2020-06-10 16:58:40 +08:00
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DNATIVE_WINDOW_BORDERLESS=1 '
|
2021-05-19 09:32:24 +08:00
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DNATIVE_WINDOW_NOT_RESIZABLE=1 '
|
2020-06-17 18:09:05 +08:00
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DENABLE_MEM_LEAK_CHECK=1 '
|
2020-06-10 16:58:40 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_MBEDTLS=1 '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DENABLE_CURSOR=1 '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_TEXT_BIDI=1 '
|
2020-12-14 11:31:42 +08:00
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DLOAD_ASSET_WITH_MMAP=1 '
|
2021-12-02 16:52:58 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_DATA_READER_WRITER=1 '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_EVENT_RECORDER_PLAYER=1 '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_ASSET_LOADER -DWITH_FS_RES -DWITH_ASSET_LOADER_ZIP '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DSTBTT_STATIC -DSTB_IMAGE_STATIC -DWITH_STB_IMAGE '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_VGCANVAS -DWITH_UNICODE_BREAK -DWITH_DESKTOP_STYLE '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_SDL -DHAS_STDIO -DHAVE_STDIO_H -DHAS_GET_TIME_US64 '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DHAS_STD_MALLOC -DTK_MAX_MEM_BLOCK_NR=3 '
|
2021-04-22 14:52:29 +08:00
|
|
|
|
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DTK_MAX_MEM_BLOCK_NR=3 '
|
2022-03-08 10:07:25 +08:00
|
|
|
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITH_FAST_LCD_PORTRAIT '
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2022-11-18 17:34:10 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+ ' -DWITH_RES_TOOLS'
|
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
GRAPHIC_BUFFER = 'default'
|
2019-10-31 22:07:56 +08:00
|
|
|
|
2020-04-21 10:22:05 +08:00
|
|
|
if INPUT_ENGINE == 't9':
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_IME_T9 '
|
2021-12-02 16:52:58 +08:00
|
|
|
elif INPUT_ENGINE == 't9ext':
|
2020-04-21 10:22:05 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_IME_T9EXT'
|
2021-12-02 16:52:58 +08:00
|
|
|
elif INPUT_ENGINE == 'pinyin':
|
2020-04-21 10:22:05 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_IME_PINYIN '
|
2021-12-02 16:52:58 +08:00
|
|
|
elif INPUT_ENGINE == 'spinyin':
|
2020-04-21 10:22:05 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_IME_SPINYIN '
|
2021-12-02 16:52:58 +08:00
|
|
|
elif INPUT_ENGINE == 'null':
|
2020-04-21 10:22:05 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_IME_NULL '
|
|
|
|
|
2019-02-25 17:45:05 +08:00
|
|
|
if LCD == 'SDL_GPU':
|
2021-12-02 16:52:58 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_GPU -DWITH_VGCANVAS_LCD'
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_STB_FONT '
|
2019-08-13 10:37:40 +08:00
|
|
|
elif LCD == 'SDL_FB_MONO':
|
2021-12-02 16:52:58 +08:00
|
|
|
NANOVG_BACKEND = 'AGGE'
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_LCD_MONO '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_STB_FONT '
|
2019-02-25 17:45:05 +08:00
|
|
|
else:
|
2021-12-02 16:52:58 +08:00
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_STB_FONT '
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_BITMAP_BGRA -DWITH_NANOVG_SOFT '
|
|
|
|
if FRAME_BUFFER_FORMAT == 'bgra8888':
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_FB_BGRA8888=1 '
|
|
|
|
else:
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_FB_BGR565=1'
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2019-05-15 16:09:57 +08:00
|
|
|
if VGCANVAS == 'CAIRO':
|
2021-12-02 16:52:58 +08:00
|
|
|
NANOVG_BACKEND_LIBS = ['cairo', 'pixman']
|
|
|
|
NANOVG_BACKEND_PROJS = ['3rd/cairo/SConscript', '3rd/pixman/SConscript']
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_VGCANVAS_CAIRO -DHAVE_CONFIG_H -DCAIRO_WIN32_STATIC_BUILD '
|
2021-10-30 16:41:53 +08:00
|
|
|
elif VGCANVAS == 'NANOVG_PLUS':
|
2021-12-02 16:52:58 +08:00
|
|
|
NANOVG_BACKEND_LIBS = ['nanovg_plus']
|
|
|
|
NANOVG_BACKEND_PROJS = ['3rd/nanovg_plus/SConscript']
|
|
|
|
NANOVG_BACKEND_CPPPATH = [joinPath(
|
|
|
|
TK_3RD_ROOT, 'nanovg_plus/gl'), joinPath(TK_3RD_ROOT, 'nanovg_plus/base')]
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_NANOVG_PLUS_GPU -DWITH_NANOVG_GPU -DWITH_GPU_GL '
|
|
|
|
if NANOVG_BACKEND == 'GLES2':
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_GPU_GLES2 -DNVGP_GLES2 '
|
|
|
|
elif NANOVG_BACKEND == 'GLES3':
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_GPU_GLES3 -DNVGP_GLES3 '
|
|
|
|
else:
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_GPU_GL3 -DNVGP_GL3 '
|
2019-02-25 17:45:05 +08:00
|
|
|
else:
|
2021-12-02 16:52:58 +08:00
|
|
|
NANOVG_BACKEND_PROJS = ['3rd/nanovg/SConscript']
|
|
|
|
NANOVG_BACKEND_CPPPATH = [
|
|
|
|
joinPath(TK_3RD_ROOT, 'nanovg'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'nanovg/gl'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'nanovg/base'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'nanovg/agge'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'nanovg/bgfx')]
|
|
|
|
if NANOVG_BACKEND == 'AGG':
|
|
|
|
NANOVG_BACKEND_LIBS = ['nanovg-agg', 'nanovg', 'agg']
|
|
|
|
NANOVG_BACKEND_PROJS += ['3rd/agg/SConscript']
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_NANOVG_AGG '
|
|
|
|
elif NANOVG_BACKEND == 'AGGE':
|
|
|
|
NANOVG_BACKEND_LIBS = ['nanovg-agge', 'nanovg', 'agge']
|
|
|
|
NANOVG_BACKEND_PROJS += ['3rd/agge/SConscript']
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_NANOVG_AGGE '
|
|
|
|
elif NANOVG_BACKEND == 'BGFX':
|
|
|
|
NANOVG_BACKEND_LIBS = ['nanovg-bgfx', 'nanovg', 'bgfx']
|
|
|
|
NANOVG_BACKEND_PROJS += ['3rd/bgfx/SConscript']
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_NANOVG_BGFX '
|
|
|
|
elif NANOVG_BACKEND == 'GLES2':
|
|
|
|
NANOVG_BACKEND_LIBS = ['nanovg']
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_NANOVG_GLES2 -DWITH_GPU_GLES2 -DWITH_NANOVG_GL -DWITH_NANOVG_GPU '
|
|
|
|
elif NANOVG_BACKEND == 'GLES3':
|
|
|
|
NANOVG_BACKEND_LIBS = ['nanovg']
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_NANOVG_GLES3 -DWITH_NANOVG_GL -DWITH_NANOVG_GPU '
|
|
|
|
else:
|
|
|
|
NANOVG_BACKEND_LIBS = ['nanovg']
|
|
|
|
COMMON_CCFLAGS = COMMON_CCFLAGS + \
|
|
|
|
' -DWITH_NANOVG_GL3 -DWITH_NANOVG_GL -DWITH_NANOVG_GPU '
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
OS_PROJECTS = []
|
|
|
|
OS_WHOLE_ARCHIVE = toWholeArchive(AWTK_STATIC_LIBS)
|
|
|
|
AWTK_DLL_DEPS_LIBS = AWTK_STATIC_LIBS + \
|
|
|
|
NANOVG_BACKEND_LIBS + ['SDL2', 'glad'] + OS_LIBS
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
if OS_NAME == 'Darwin':
|
|
|
|
OS_WHOLE_ARCHIVE = ' -all_load '
|
2019-02-25 17:45:05 +08:00
|
|
|
elif OS_NAME == 'Linux':
|
2021-12-02 16:52:58 +08:00
|
|
|
OS_PROJECTS = ['3rd/SDL/SConscript']
|
2019-02-25 17:45:05 +08:00
|
|
|
elif OS_NAME == 'Windows':
|
2021-12-02 16:52:58 +08:00
|
|
|
OS_PROJECTS = ['3rd/SDL/SConscript']
|
|
|
|
OS_LINKFLAGS += '\"' + WIN32_AWTK_RES + '\" '
|
2020-04-28 06:36:53 +08:00
|
|
|
|
2021-12-02 16:52:58 +08:00
|
|
|
if TOOLS_NAME == 'mingw':
|
|
|
|
print('mingw')
|
|
|
|
else:
|
|
|
|
OS_WHOLE_ARCHIVE = ' /DEF:"dllexports/awtk.def" '
|
|
|
|
|
|
|
|
|
|
|
|
CFLAGS = COMMON_CFLAGS
|
|
|
|
LINKFLAGS = OS_LINKFLAGS
|
2022-01-19 18:20:36 +08:00
|
|
|
LIBPATH = [TK_BIN_DIR, TK_LIB_DIR] + OS_LIBPATH
|
2021-12-02 16:52:58 +08:00
|
|
|
CCFLAGS = OS_FLAGS + COMMON_CCFLAGS
|
2022-10-12 17:56:16 +08:00
|
|
|
AWTK_CCFLAGS = OS_FLAGS + COMMON_CCFLAGS
|
2021-12-02 16:52:58 +08:00
|
|
|
|
|
|
|
AWTK_STATIC_LIBS = AWTK_STATIC_LIBS + NANOVG_BACKEND_LIBS
|
|
|
|
STATIC_LIBS = AWTK_STATIC_LIBS + ['SDL2', 'glad'] + OS_LIBS
|
|
|
|
SHARED_LIBS = ['awtk'] + OS_LIBS
|
|
|
|
|
|
|
|
LIBS = STATIC_LIBS
|
|
|
|
|
|
|
|
CPPPATH = [TK_ROOT,
|
|
|
|
TK_SRC,
|
|
|
|
TK_3RD_ROOT,
|
|
|
|
joinPath(TK_SRC, 'ext_widgets'),
|
|
|
|
joinPath(TK_SRC, 'custom_widgets'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'fribidi'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'mbedtls/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'mbedtls/3rdparty/everest/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'pixman'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'cairo'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'bgfx/bgfx/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'bgfx/bx/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'bgfx/bimg/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'agge'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'agg/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'SDL/src'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'SDL/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'agge/src'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'agge/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'gpinyin/include'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'libunibreak'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'gtest/googletest'),
|
|
|
|
joinPath(TK_3RD_ROOT, 'gtest/googletest/include'),
|
|
|
|
TK_TOOLS_ROOT] + OS_CPPPATH + NANOVG_BACKEND_CPPPATH
|
2019-02-25 17:45:05 +08:00
|
|
|
|
|
|
|
os.environ['LCD'] = LCD
|
2019-02-25 17:59:58 +08:00
|
|
|
os.environ['TK_ROOT'] = TK_ROOT
|
2021-12-02 16:52:58 +08:00
|
|
|
os.environ['CCFLAGS'] = CCFLAGS
|
|
|
|
os.environ['VGCANVAS'] = VGCANVAS
|
|
|
|
os.environ['TOOLS_NAME'] = TOOLS_NAME
|
|
|
|
os.environ['GTEST_ROOT'] = GTEST_ROOT
|
|
|
|
os.environ['TK_3RD_ROOT'] = TK_3RD_ROOT
|
|
|
|
os.environ['INPUT_ENGINE'] = INPUT_ENGINE
|
|
|
|
os.environ['NANOVG_BACKEND'] = NANOVG_BACKEND
|
|
|
|
os.environ['NATIVE_WINDOW'] = NATIVE_WINDOW
|
|
|
|
os.environ['GRAPHIC_BUFFER'] = GRAPHIC_BUFFER
|
|
|
|
os.environ['FRAME_BUFFER_FORMAT'] = FRAME_BUFFER_FORMAT
|
|
|
|
os.environ['OS_WHOLE_ARCHIVE'] = OS_WHOLE_ARCHIVE
|
2020-04-28 09:54:56 +08:00
|
|
|
os.environ['AWTK_DLL_DEPS_LIBS'] = ';'.join(AWTK_DLL_DEPS_LIBS)
|
2020-04-28 12:20:37 +08:00
|
|
|
os.environ['STATIC_LIBS'] = ';'.join(STATIC_LIBS)
|
2020-05-20 16:55:10 +08:00
|
|
|
|
2020-05-18 18:16:13 +08:00
|
|
|
os.environ['WITH_AWTK_SO'] = 'true'
|
2021-12-02 16:52:58 +08:00
|
|
|
os.environ['AWTK_CCFLAGS'] = AWTK_CCFLAGS
|
2022-01-19 11:06:28 +08:00
|
|
|
os.environ['CROSS_COMPILE'] = str(not TOOLS_PREFIX == '')
|
2019-02-25 17:45:05 +08:00
|
|
|
|
2021-01-29 12:25:29 +08:00
|
|
|
os.environ['SDL_UBUNTU_USE_IME'] = str(False)
|
|
|
|
# os.environ['SDL_UBUNTU_USE_IME'] = str(True)
|
2021-12-02 16:52:58 +08:00
|
|
|
OS_LIBS = ['SDL2', 'glad'] + OS_LIBS
|
2020-07-20 18:20:20 +08:00
|
|
|
|
2020-12-26 22:24:26 +08:00
|
|
|
def genIdlAndDef():
|
2021-12-02 16:52:58 +08:00
|
|
|
genIdlAndDefEx(True)
|