15 lines
459 B
Python
15 lines
459 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
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)
|
|
|
|
Return('group')
|