diff options
| author | qiuyiuestc <[email protected]> | 2010-11-24 17:04:54 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-11-24 17:04:54 +0000 |
| commit | 64b4a18874001ecfb28bad57c6e6f1fe2efc4572 (patch) | |
| tree | 46830f0e2709efe72ed4feff9c86b4df46857ddf /examples/module/SConstruct | |
| parent | 945ed1ecc06fae2b98112880e1e533a342df798e (diff) | |
remove to example directory
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1110 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/module/SConstruct')
| -rw-r--r-- | examples/module/SConstruct | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/module/SConstruct b/examples/module/SConstruct new file mode 100644 index 0000000000..f7fdfd948a --- /dev/null +++ b/examples/module/SConstruct @@ -0,0 +1,38 @@ +import os
+import sys
+import rtconfig
+
+RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
+sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
+import mdk
+
+target = RTT_ROOT + '/bsp/mini2440/rtthread-mini2440'
+projects = []
+
+AddOption('--target',
+ dest='target',
+ type='string',
+ help='set target project: mdk')
+
+if GetOption('target'):
+ SetOption('no_exec', 1)
+
+TARGET = target + '.' + rtconfig.TARGET_EXT
+
+env = Environment(tools = ['mingw'],
+ AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
+ CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS,
+ AR = rtconfig.AR, ARFLAGS = '-rc',
+ LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
+env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
+
+Export('env')
+Export('RTT_ROOT')
+Export('rtconfig')
+Export('projects')
+Export('TARGET')
+
+SConscript(RTT_ROOT + '/components/module/tetris/SConscript', duplicate=0)
+SConscript(RTT_ROOT + '/components/module/basicapp/SConscript', duplicate=0)
+SConscript(RTT_ROOT + '/components/module/extension/SConscript', duplicate=0)
+SConscript(RTT_ROOT + '/components/module/extapp/SConscript', duplicate=0)
\ No newline at end of file |
