diff options
| author | [email protected] <[email protected]> | 2012-08-25 02:05:56 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-08-25 02:05:56 +0000 |
| commit | e6f634955dcf69eba74d5da7fe19ecf13e7832b2 (patch) | |
| tree | 4d237f7d13962798c83c78c927f189c2ebf55de0 /components/SConscript | |
| parent | 7307055b1c7c11e6bd43907c5574a2b95b53c03f (diff) | |
Update SConscript file.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2260 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/SConscript')
| -rw-r--r-- | components/SConscript | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/components/SConscript b/components/SConscript index 580b7e19e1..ccc783e638 100644 --- a/components/SConscript +++ b/components/SConscript @@ -1,16 +1,17 @@ # for module compiling
import os
-Import('RTT_ROOT')
Import('remove_components')
+from building import *
objs = []
-list = os.listdir(os.path.join(RTT_ROOT, 'components'))
+cwd = GetCurrentDir()
+list = os.listdir(cwd)
-for d in list:
- if d in remove_components:
+for item in list:
+ if item in remove_components:
continue
- path = os.path.join(RTT_ROOT, 'components', d)
- if os.path.isfile(os.path.join(path, 'SConscript')):
- objs = objs + SConscript(os.path.join(d, 'SConscript'))
+
+ if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
+ objs = objs + SConscript(os.path.join(item, 'SConscript'))
Return('objs')
|
