From e78285e76f9a1ea6197e2d121a81cef443aa84dc Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Mon, 13 Sep 2010 00:58:56 +0000 Subject: add tetris module git-svn-id: https://rt-thread.googlecode.com/svn/trunk@904 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/module/SConstruct | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 components/module/SConstruct (limited to 'components/module/SConstruct') diff --git a/components/module/SConstruct b/components/module/SConstruct new file mode 100644 index 0000000000..ccb812ca73 --- /dev/null +++ b/components/module/SConstruct @@ -0,0 +1,36 @@ +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') + +objs = SConscript(RTT_ROOT + '/components/module/tetris/SConscript', variant_dir='build/tetris', duplicate=0) + -- cgit v1.3.1