4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 08:39:23 +08:00
sc943313837@gmail.com c8857b64c0 add alarm
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2373 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-28 15:30:54 +00:00

20 lines
388 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')