summaryrefslogtreecommitdiff
path: root/components/libc/cplusplus/cpp11/SConscript
diff options
context:
space:
mode:
authoryangjie11 <[email protected]>2023-06-12 14:32:48 +0800
committerMan, Jianting (Meco) <[email protected]>2023-06-14 08:49:33 -0400
commitc4df1d6a19c2ab9c67b42150adb81f49757b6f8c (patch)
tree39477b08669f30cceb0a73fa866f400155cae9fe /components/libc/cplusplus/cpp11/SConscript
parent49ae4ab6143ae5d3c818c6884b1e1ff8b085f1a8 (diff)
[cpp] support rt-thread CPP wrapper sub-switch macros
Diffstat (limited to 'components/libc/cplusplus/cpp11/SConscript')
-rw-r--r--components/libc/cplusplus/cpp11/SConscript18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/libc/cplusplus/cpp11/SConscript b/components/libc/cplusplus/cpp11/SConscript
new file mode 100644
index 0000000000..0d96a06269
--- /dev/null
+++ b/components/libc/cplusplus/cpp11/SConscript
@@ -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')