4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-15 06:59:22 +08:00
qiuyiuestc@gmail.com 9eed24e9de fix compiling error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1647 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-07-21 15:29:13 +00:00

38 lines
1.0 KiB
Python

import rtconfig
Import('RTT_ROOT')
from building import *
src_bsp = ['application.c', 'startup.c', 'board.c']
src_drv = ['console.c', 'led.c']
if GetDepend('RT_USING_DFS'):
src_drv += ['sdcard.c']
if GetDepend('RT_USING_LWIP'):
src_drv += ['dm9000.c']
if GetDepend('RT_USING_RTGUI'):
src_drv += ['touch.c', 'key.c', 'calibration.c']
if GetDepend('RT_USING_FTK'):
src_drv += ['touch.c', 'key.c']
if GetDepend('RT_USING_RTI'):
src_drv += ['rti_stub.c']
if GetDepend('RT_USING_RTGUI') or GetDepend('RT_USING_FTK'):
if rtconfig.RT_USING_LCD_TYPE == 'PNL_A70':
src_drv += ['lcd_a70.c']
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_N35':
src_drv += ['lcd_n35.c']
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_T35':
src_drv += ['lcd_t35.c']
elif rtconfig.RT_USING_LCD_TYPE == 'PNL_X35':
src_drv += ['lcd_x35.c']
src = File(src_bsp + src_drv)
CPPPATH = [GetCurrentDir()]
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
Return('group')