4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 20:03:29 +08:00

24 lines
467 B
Python

from building import *
cwd = GetCurrentDir()
src = []
rtc = ['rtc.c']
rtc_alarm = ['alarm.c']
soft_rtc = ['soft_rtc.c']
CPPPATH = [cwd + '/../include']
group = []
if GetDepend(['RT_USING_RTC']):
src = src + rtc
if GetDepend(['RT_USING_ALARM']):
src = src + rtc_alarm
if GetDepend(['RT_USING_SOFT_RTC']):
src = src + soft_rtc
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
Return('group')