Skip to content

Commit

Permalink
improve build script for raspberrypi
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Nov 9, 2024
1 parent 2de82b8 commit b154bc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion awtk_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
complie_helper = compile_config.get_curr_config_for_awtk()

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, OS_DEBUG, TK_DEMO_ROOT, GTEST_ROOT, TKC_STATIC_LIBS, TOOLS_NAME, NANOVG_BACKEND, NATIVE_WINDOW, TK_ROOT
from awtk_config_common import joinPath, toWholeArchive, genIdlAndDefEx, setEnvSpawn, genDllLinkFlags, copySharedLib, cleanSharedLib, scons_db_check_and_remove
from awtk_config_common import joinPath, toWholeArchive, genIdlAndDefEx, setEnvSpawn, genDllLinkFlags, copySharedLib, cleanSharedLib, scons_db_check_and_remove, is_raspberrypi
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

WIN32_AWTK_RES = 'win32_res/awtk.res'
Expand Down Expand Up @@ -57,6 +57,9 @@
# NANOVG_BACKEND='AGG'
# NANOVG_BACKEND='AGGE'
# NANOVG_BACKEND='GL2'
if is_raspberrypi():
NANOVG_BACKEND='GLES2'

NANOVG_BACKEND = complie_helper.get_value('NANOVG_BACKEND', NANOVG_BACKEND)
#NANOVG_BACKEND='BGFX'

Expand Down

0 comments on commit b154bc2

Please sign in to comment.