提交 e6f63495 编写于 作者: B bernard.xiong@gmail.com

Update SConscript file.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2260 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 7307055b
# for module compiling # for module compiling
import os import os
Import('RTT_ROOT')
Import('remove_components') Import('remove_components')
from building import *
objs = [] objs = []
list = os.listdir(os.path.join(RTT_ROOT, 'components')) cwd = GetCurrentDir()
list = os.listdir(cwd)
for d in list: for item in list:
if d in remove_components: if item in remove_components:
continue continue
path = os.path.join(RTT_ROOT, 'components', d)
if os.path.isfile(os.path.join(path, 'SConscript')): if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript')) objs = objs + SConscript(os.path.join(item, 'SConscript'))
Return('objs') Return('objs')
Import('RTT_ROOT')
Import('rtconfig')
from building import * from building import *
src = Split(''' cwd = GetCurrentDir()
CPPPATH = [cwd]
src = Split('''
tjpgd.c tjpgd.c
''') ''')
CPPPATH = [RTT_ROOT + '/components/external/tjpgd1a']
group = DefineGroup('tjpgd', src, depend = ['RTGUI_IMAGE_TJPGD'], CPPPATH = CPPPATH) group = DefineGroup('tjpgd', src, depend = ['RTGUI_IMAGE_TJPGD'], CPPPATH = CPPPATH)
Return('group') Return('group')
......
Import('rtconfig') Import('rtconfig')
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.CROSS_TOOL == 'keil':
LINKFLAGS = ' --keep __fsym_* --keep __vsym_* ' LINKFLAGS = ' --keep __fsym_* --keep __vsym_* '
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册