fix build scripts

This commit is contained in:
xianjimli 2018-10-12 17:48:27 +08:00
parent 31b79284d5
commit b8846253d9

View File

@ -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