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

18 lines
412 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
from building import *
cwd = GetCurrentDir()
src = []
CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_RTC']):
src = src + ['rtc.c']
2013-01-08 22:40:58 +08:00
if GetDepend(['RT_USING_ALARM']):
2021-05-08 23:51:47 +08:00
src = src + ['alarm.c']
if GetDepend(['RT_USING_SOFT_RTC']):
2021-05-08 23:51:47 +08:00
src = src + ['soft_rtc.c']
2013-01-08 22:40:58 +08:00
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
Return('group')