rt-thread/components/libc/cplusplus/SConscript

18 lines
431 B
Python
Raw Normal View History

2014-11-01 09:09:21 +08:00
from building import *
import os
2021-09-03 11:38:48 +08:00
Import('rtconfig')
2014-11-01 09:09:21 +08:00
cwd = GetCurrentDir()
src = ['cxx_crt_init.c', 'cxx_crt.cpp']
CPPPATH = [cwd]
group = DefineGroup('CPP', src, depend=['RT_USING_CPLUSPLUS'], CPPPATH=CPPPATH)
2021-09-03 11:38:48 +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'))
2014-11-01 09:09:21 +08:00
2023-01-09 10:14:23 +08:00
Return('group')