mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
fix build scripts
This commit is contained in:
parent
31b79284d5
commit
b8846253d9
12
SConstruct
12
SConstruct
@ -31,17 +31,17 @@ FRAME_BUFFER_FORMAT='bgr565'
|
||||
COMMON_CCFLAGS=' -DTK_ROOT=\\\"'+TK_ROOT+'\\\" -DHAS_STD_MALLOC -DWITH_SDL -DWITH_FS_RES -DHAS_STDIO -DWITH_DESKTOP_STYLE '
|
||||
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DSTBTT_STATIC -DSTB_IMAGE_STATIC -DWITH_STB_IMAGE -DWITH_STB_FONT -DWITH_VGCANVAS -DWITH_UNICODE_BREAK '
|
||||
|
||||
if FRAME_BUFFER_FORMAT=='bgra8888':
|
||||
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITH_FB_BGRA8888=1';
|
||||
elif FRAME_BUFFER_FORMAT=='bgr888':
|
||||
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITH_FB_BGR888=1';
|
||||
else:
|
||||
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITH_FB_BGR565=1 -DWITH_BITMAP_BGR565';
|
||||
|
||||
if LCD == 'GL':
|
||||
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_NANOVG -DWITH_NANOVG_GL3 -DWITH_NANOVG_GL -DWITH_VGCANVAS_LCD'
|
||||
else:
|
||||
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_BITMAP_BGRA1 -DWITH_NANOVG_AGGE -DWITH_NANOVG_SOFT'
|
||||
if FRAME_BUFFER_FORMAT=='bgra8888':
|
||||
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITH_FB_BGRA8888=1';
|
||||
elif FRAME_BUFFER_FORMAT=='bgr888':
|
||||
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITH_FB_BGR888=1';
|
||||
else:
|
||||
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DWITH_FB_BGR565=1 -DWITH_BITMAP_BGR565';
|
||||
|
||||
os.environ['LCD'] = LCD
|
||||
os.environ['VGCANVAS'] = VGCANVAS
|
||||
|
Loading…
Reference in New Issue
Block a user