mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-05 13:38:15 +08:00
32 lines
1010 B
Python
32 lines
1010 B
Python
import os
|
|
import copy
|
|
|
|
BIN_DIR=os.environ['BIN_DIR'];
|
|
LIB_DIR=os.environ['LIB_DIR'];
|
|
|
|
sources=Glob('base/*.c') +\
|
|
Glob('ui_loader/*.c') + \
|
|
Glob('xml/*.c') + \
|
|
Glob('font/*.c') + \
|
|
Glob('image_loader/*.c') + \
|
|
['platforms/platform_default.c', 'lftk.c'];
|
|
|
|
if os.environ['LCD'] == 'NANOVG':
|
|
sources += ['animator/window_animator_nanovg.c'];
|
|
sources += ['lcd/lcd_nanovg.c', 'lcd/lcd_mem_rgba.c', 'main_loop/main_loop_nanovg.c'];
|
|
else:
|
|
sources += ['animator/window_animator_fb.c'];
|
|
sources += ['lcd/lcd_sdl2.c', 'lcd/lcd_mem_rgba.c', 'main_loop/main_loop_sdl2.c']
|
|
|
|
if os.environ['VGCANVAS'] == 'NANOVG':
|
|
sources += Glob('vgcanvas/vgcanvas_nanovg.c')
|
|
elif os.environ['VGCANVAS'] == 'AGG':
|
|
sources += Glob('vgcanvas/vgcanvas_agg.cpp')
|
|
else:
|
|
sources += Glob('vgcanvas/vgcanvas_picasso.cpp')
|
|
sources += Glob('vgcanvas/picasso_font.cpp')
|
|
|
|
env=DefaultEnvironment().Clone()
|
|
env.Library(os.path.join(LIB_DIR, 'lftk'), sources)
|
|
env.Program(os.path.join(BIN_DIR, 'mem_test'), ["base/mem_test.cc"])
|