mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 17:40:22 +00:00
change simulator directory organization
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2388 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -1,33 +1,12 @@
|
||||
import rtconfig
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
src_bsp = ['application.c', 'startup.c', 'board.c', 'platform.c']
|
||||
src_drv = ['serial.c', 'usart_sim.c']
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
if GetDepend('RT_USING_DFS'):
|
||||
src_drv += ['sd_sim.c']
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
if GetDepend('RT_USING_MTD_NAND'):
|
||||
src_drv += ['nand_sim.c']
|
||||
|
||||
if GetDepend('RT_USING_MTD_NOR'):
|
||||
src_drv += ['sst25vfxx_mtd_sim.c']
|
||||
|
||||
if GetDepend('RT_USING_RTGUI'):
|
||||
src_drv += ['touch.c', 'calibration.c']
|
||||
|
||||
if GetDepend('RT_USING_RTGUI'):
|
||||
if rtconfig.RT_USING_LCD_TYPE == 'FMT0371':
|
||||
src_drv += ['lcd_a70.c']
|
||||
elif rtconfig.RT_USING_LCD_TYPE == 'ILI932X':
|
||||
src_drv += ['ili_lcd_general.c']
|
||||
elif rtconfig.RT_USING_LCD_TYPE == 'SSD1289':
|
||||
src_drv += ['ssd1289.c']
|
||||
|
||||
src = src_bsp + src_drv
|
||||
CPPPATH = [ GetCurrentDir() ]
|
||||
CPPDEFINES = []
|
||||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||
|
||||
Return('group')
|
||||
Return('objs')
|
||||
|
||||
Reference in New Issue
Block a user