rt-thread-official/components/drivers/serial/SConscript

15 lines
459 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
from building import *
cwd = GetCurrentDir()
2013-01-08 22:40:58 +08:00
CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_SERIAL']):
if GetDepend(['RT_USING_SERIAL_V2']):
src = Glob('serial_v2.c')
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SERIAL_V2'], CPPPATH = CPPPATH)
else:
src = Glob('serial.c')
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SERIAL'], CPPPATH = CPPPATH)
2013-01-08 22:40:58 +08:00
Return('group')