diff options
| author | [email protected] <[email protected]> | 2012-10-28 15:30:54 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-10-28 15:30:54 +0000 |
| commit | c8857b64c01d9869faa88c49b6ea3cf23ec0f13f (patch) | |
| tree | 98f04d59b37240966eb4502bbef3f7891f705f8e /components/drivers/rtc/SConscript | |
| parent | 6fe2afed8ca4deaa94cc9f8795fb8dcd7e880225 (diff) | |
add alarm
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2373 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/rtc/SConscript')
| -rw-r--r-- | components/drivers/rtc/SConscript | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/components/drivers/rtc/SConscript b/components/drivers/rtc/SConscript index b2d50de758..65552a7765 100644 --- a/components/drivers/rtc/SConscript +++ b/components/drivers/rtc/SConscript @@ -1,8 +1,20 @@ from building import *
-cwd = GetCurrentDir()
-src = Glob('*.c')
+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')
+Return('group')
\ No newline at end of file |
