summaryrefslogtreecommitdiff
path: root/components/libc/posix/io/SConscript
blob: 0771ec67be1bb8178ab603ef736098ff63a07389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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')