mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-02-05 17:28:23 +08:00
[RTT]将工程按照文件夹进行分组
This commit is contained in:
parent
6bb966fe96
commit
b1c63bf910
11
SConscript
11
SConscript
@ -25,6 +25,8 @@ def pikascript_init():
|
|||||||
os.popen('del ' + all_path + ' /F /Q /S')
|
os.popen('del ' + all_path + ' /F /Q /S')
|
||||||
os.popen('rd ' + all_path + ' /Q /S')
|
os.popen('rd ' + all_path + ' /Q /S')
|
||||||
|
|
||||||
|
myremove('assets')
|
||||||
|
myremove('docker')
|
||||||
myremove('bsp')
|
myremove('bsp')
|
||||||
myremove('document')
|
myremove('document')
|
||||||
myremove('examples')
|
myremove('examples')
|
||||||
@ -56,10 +58,9 @@ inc = []
|
|||||||
# add file and path
|
# add file and path
|
||||||
for root, dirs, files in os.walk(cwd):
|
for root, dirs, files in os.walk(cwd):
|
||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
src = src + Glob(os.path.join(root,dir,'*.c'))
|
print(dir)
|
||||||
inc = inc + [os.path.join(root,dir)]
|
src = Glob(os.path.join(root,dir,'*.c'))
|
||||||
|
inc = [os.path.join(root,dir)]
|
||||||
group = DefineGroup('pikascript', src, depend = ['PKG_USING_PIKASCRIPT'], CPPPATH = inc)
|
group = DefineGroup(dir, src, depend = ['PKG_USING_PIKASCRIPT'], CPPPATH = inc)
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user