Update SConscript file.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2260 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
7307055b1c
commit
e6f634955d
|
@ -1,16 +1,17 @@
|
||||||
# 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')
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
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')
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
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_* '
|
||||||
|
|
Loading…
Reference in New Issue