2013-01-08 22:40:58 +08:00
|
|
|
from building import *
|
|
|
|
|
2021-06-05 17:21:27 +08:00
|
|
|
cwd = GetCurrentDir()
|
2013-01-08 22:40:58 +08:00
|
|
|
CPPPATH = [cwd + '/../include']
|
2021-06-16 16:55:33 +08:00
|
|
|
group = []
|
2021-06-05 17:21:27 +08:00
|
|
|
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')
|