mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
cleanup scons building script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
+3
-20
@@ -1,5 +1,4 @@
|
||||
Import('env')
|
||||
Import('projects')
|
||||
from building import *
|
||||
|
||||
src = Split("""
|
||||
demo_view_dc_buffer.c
|
||||
@@ -32,22 +31,6 @@ gui_init.c
|
||||
mywidget.c
|
||||
""")
|
||||
|
||||
group = {}
|
||||
group['name'] = 'GUI demo'
|
||||
group['src'] = File(src)
|
||||
group['CCFLAGS'] = ''
|
||||
group['CPPPATH'] = ['']
|
||||
group['CPPDEFINES'] = ''
|
||||
group['LINKFLAGS'] = ''
|
||||
group = DefineGroup('gui_examples', src, depend = ['RTGUI_USING_EXAMPLES'])
|
||||
|
||||
# add group to project list
|
||||
projects.append(group)
|
||||
|
||||
env.Append(CCFLAGS = group['CCFLAGS'])
|
||||
env.Append(CPPPATH = group['CPPPATH'])
|
||||
env.Append(CPPDEFINES = group['CPPDEFINES'])
|
||||
env.Append(LINKFLAGS = group['LINKFLAGS'])
|
||||
|
||||
objs = env.Object(group['src'])
|
||||
|
||||
Return('objs')
|
||||
Return('group')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Import('env')
|
||||
from building import *
|
||||
|
||||
src_local = Split("""
|
||||
src = Split("""
|
||||
tc_comm.c
|
||||
thread_static.c
|
||||
thread_dynamic.c
|
||||
@@ -32,8 +32,6 @@ heap_realloc.c
|
||||
memp_simple.c
|
||||
""")
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
obj = env.Object(src_local)
|
||||
env.Append(CPPDEFINES='RT_USING_TC')
|
||||
group = DefineGroup('examples', src, depend = ['RT_USING_TC'])
|
||||
|
||||
Return('obj')
|
||||
Return('group')
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
Import('env')
|
||||
from building import *
|
||||
|
||||
src_local = Glob('*.c')
|
||||
src = Glob('*.c')
|
||||
group = DefineGroup('libc_test', src, depend = ['RT_USING_NEWLIB', 'RT_USING_PTHREADS', 'RT_USING_LIBC_TEST'])
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
obj = env.Object(src_local)
|
||||
|
||||
Return('obj')
|
||||
Return('group')
|
||||
|
||||
Reference in New Issue
Block a user