31 lines
617 B
Python
31 lines
617 B
Python
|
# RT-Thread building script for component
|
||
|
|
||
|
import os
|
||
|
from building import *
|
||
|
|
||
|
src = []
|
||
|
cwd = GetCurrentDir()
|
||
|
CPPPATH = [cwd]
|
||
|
group = []
|
||
|
|
||
|
flag = False
|
||
|
|
||
|
if GetDepend('RT_USING_POSIX_STDIO'):
|
||
|
src += ['libc.c']
|
||
|
flag = True
|
||
|
|
||
|
if GetDepend('RT_USING_POSIX_SELECT'):
|
||
|
src += ['select.c']
|
||
|
flag = True
|
||
|
|
||
|
if flag == True:
|
||
|
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
||
|
list = os.listdir(cwd)
|
||
|
for d in list:
|
||
|
path = os.path.join(cwd, d)
|
||
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||
|
group = group + SConscript(os.path.join(d, 'SConscript'))
|
||
|
|
||
|
Return('group')
|