summaryrefslogtreecommitdiff
path: root/components/SConscript
blob: 88927f881c5ad082987b2c5d00c8a5ce01351f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# for module compiling
import os
Import('remove_components')
from building import *

objs = []
cwd  = GetCurrentDir()
list = os.listdir(cwd)

# In some old bsp folder, Only define RT_USING_LWIP but not define which of LWIP stack.
# For this reason, the default lwip stack will be set LWIP2.0.3.
if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP203') and not GetDepend('RT_USING_LWIP212'):
    AddDepend('RT_USING_LWIP203')

for item in list:
    if item in remove_components:
        continue

    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
        objs = objs + SConscript(os.path.join(item, 'SConscript'))

Return('objs')