mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 04:27:07 +08:00
Sync SConscript in application folder.
This commit is contained in:
parent
2825189542
commit
2d15f10385
@ -1,11 +1,11 @@
|
|||||||
# RT-Thread building script for component
|
|
||||||
|
|
||||||
from building import *
|
from building import *
|
||||||
|
import os
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd, str(Dir('#'))]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
list = os.listdir(cwd)
|
||||||
|
for item in list:
|
||||||
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
||||||
|
group = group + SConscript(os.path.join(item, 'SConscript'))
|
||||||
Return('group')
|
Return('group')
|
||||||
|
@ -1,21 +1,11 @@
|
|||||||
# RT-Thread building script for component
|
|
||||||
|
|
||||||
from building import *
|
from building import *
|
||||||
|
import os
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
objs = []
|
src = Glob('*.c')
|
||||||
list = os.listdir(cwd)
|
CPPPATH = [cwd]
|
||||||
for d in list:
|
|
||||||
path = os.path.join(cwd, d)
|
|
||||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
|
||||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
|
||||||
|
|
||||||
src = Glob('*.c') + Glob('*.cpp')
|
|
||||||
CPPPATH = [cwd, str(Dir('#'))]
|
|
||||||
|
|
||||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
list = os.listdir(cwd)
|
||||||
objs = objs + group
|
for item in list:
|
||||||
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
||||||
Return('objs')
|
group = group + SConscript(os.path.join(item, 'SConscript'))
|
||||||
|
Return('group')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user