mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-21 07:11:14 +08:00
[cpp] support rt-thread CPP wrapper sub-switch macros
This commit is contained in:

committed by
Man, Jianting (Meco)

parent
49ae4ab614
commit
c4df1d6a19
18
components/libc/cplusplus/cpp11/SConscript
Normal file
18
components/libc/cplusplus/cpp11/SConscript
Normal file
@@ -0,0 +1,18 @@
|
||||
from building import *
|
||||
Import('rtconfig')
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
CPPPATH = []
|
||||
|
||||
src += Glob('*.cpp') + Glob('*.c')
|
||||
if rtconfig.PLATFORM in ['armclang']:
|
||||
src += Glob('armclang/*.cpp') + Glob('armclang/*.c')
|
||||
CPPPATH += [cwd + '/armclang']
|
||||
elif rtconfig.PLATFORM in ['gcc']:
|
||||
src += Glob('gcc/*.cpp') + Glob('gcc/*.c')
|
||||
CPPPATH += [cwd + '/gcc']
|
||||
|
||||
group = DefineGroup('CPP', src, depend=['RT_USING_CPLUSPLUS11'], CPPPATH=CPPPATH)
|
||||
|
||||
Return('group')
|
Reference in New Issue
Block a user