2021-12-06 07:52:59 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
src = []
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = []
|
|
|
|
|
|
|
|
flag = False
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_POSIX_DEVIO'):
|
|
|
|
src += ['libc.c']
|
|
|
|
flag = True
|
|
|
|
|
|
|
|
if GetDepend('RT_USING_POSIX_SELECT'):
|
|
|
|
src += ['select.c']
|
|
|
|
flag = True
|
|
|
|
|
|
|
|
if flag == True:
|
2021-12-29 12:25:16 +08:00
|
|
|
group = DefineGroup('POSIX', src, depend = [''], CPPPATH = CPPPATH)
|
2021-12-06 07:52:59 +08:00
|
|
|
|
|
|
|
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')
|