4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-21 05:53:41 +08:00
2021-12-14 06:12:04 +08:00

31 lines
615 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_DEVIO'):
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')