diff options
| author | [email protected] <[email protected]> | 2012-07-07 08:49:28 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-07-07 08:49:28 +0000 |
| commit | 64c485f5fc3258dc2d11fc3593844877a51a37be (patch) | |
| tree | 4bc13b18342d9caaa4b30680cc3edd34165a6f1b /components/drivers/usb/SConscript | |
| parent | 25268ad23d67e2d006931e5ced4067d8898df972 (diff) | |
reconstruct USB host project directory
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2206 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/usb/SConscript')
| -rw-r--r-- | components/drivers/usb/SConscript | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/components/drivers/usb/SConscript b/components/drivers/usb/SConscript index ecc8102c05..1cb7618499 100644 --- a/components/drivers/usb/SConscript +++ b/components/drivers/usb/SConscript @@ -1,9 +1,14 @@ -Import('RTT_ROOT')
+# for module compiling
+import os
from building import *
-cwd = GetCurrentDir()
-src = Glob('*.c')
-CPPPATH = [cwd]
-group = DefineGroup('Drivers', src, depend = ['RT_USING_USB_DEVICE'], CPPPATH = CPPPATH)
+cwd = GetCurrentDir()
+objs = []
+list = os.listdir(cwd)
-Return('group')
+for d in list:
+ path = os.path.join(cwd, d)
+ if os.path.isfile(os.path.join(path, 'SConscript')):
+ objs = objs + SConscript(os.path.join(d, 'SConscript'))
+
+Return('objs')
|
