mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 08:39:23 +08:00
c8857b64c0
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2373 bbd45198-f89e-11dd-88c7-29a3b14d5316
20 lines
388 B
Python
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') |