Files
luban-lite-t3e-pro/packages/third-party/awtk-ui/awtk-rtos/awtk-port/SConscript
刘可亮 3b4064f334 v1.0.2
2023-11-30 19:48:02 +08:00

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"])