mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
33 lines
980 B
Python
33 lines
980 B
Python
import os
|
|
import copy
|
|
|
|
BIN_DIR = os.environ['BIN_DIR'];
|
|
LIB_DIR = os.environ['LIB_DIR'];
|
|
LCD_DEVICES = os.environ['LCD_DEVICES']
|
|
|
|
env = DefaultEnvironment().Clone()
|
|
SOURCES = [
|
|
'input_thread/mouse_thread.c',
|
|
'input_thread/input_thread.c',
|
|
'input_thread/input_dispatcher.c',
|
|
'lcd_linux/lcd_linux_fb.c',
|
|
'lcd_linux/lcd_linux_drm.c',
|
|
'lcd_linux/lcd_linux_egl.c',
|
|
'lcd_linux/lcd_mem_others.c' ,
|
|
'devices.c',
|
|
'main_loop_linux.c' ]
|
|
|
|
if os.environ['TSLIB_LIB_DIR']:
|
|
SOURCES = ['input_thread/tslib_thread.c'] + SOURCES;
|
|
|
|
env.Library(os.path.join(LIB_DIR, 'awtk_linux_fb'), SOURCES)
|
|
|
|
env['LIBS'] = ['awtk_linux_fb'] + env['LIBS']
|
|
|
|
env.Program(os.path.join(BIN_DIR, 'mouse_test'), ["test/mouse_thread_test.c"])
|
|
env.Program(os.path.join(BIN_DIR, 'input_test'), ["test/input_thread_test.c"])
|
|
env.Program(os.path.join(BIN_DIR, 'fb_test'), ["test/fb_test.c"])
|
|
|
|
if os.environ['TSLIB_LIB_DIR']:
|
|
env.Program(os.path.join(BIN_DIR, 'tslib_test'), ["test/tslib_thread_test.c"])
|