summaryrefslogtreecommitdiff
path: root/components/libc/cplusplus/SConscript
blob: a7829cea6d1aae633a1c412424f190c679111a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from building import *
import os
Import('rtconfig')

cwd     = GetCurrentDir()
src     = ['cxx_crt_init.c', 'cxx_crt.cpp']
CPPPATH = [cwd]

group = DefineGroup('CPP', src, depend=['RT_USING_CPLUSPLUS'], 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')