mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 06:19:24 +08:00
20 lines
369 B
Python
20 lines
369 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
|
|
rtc = ['rtc.c']
|
|
|
|
rtc_alarm = ['alarm.c']
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
group = []
|
|
|
|
if GetDepend(['RT_USING_RTC']):
|
|
src = src + rtc
|
|
if GetDepend(['RT_USING_ALARM']):
|
|
src = src + rtc_alarm
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
|
|
|
|
Return('group') |