summaryrefslogtreecommitdiff
path: root/bsp/gd32vf103v-eval/libraries/SConscript
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2019-08-21 22:26:25 +0800
committerguozhanxin <[email protected]>2019-08-21 22:26:56 +0800
commit47ced5be442e3df6803017cf2f8de1be4b9695ae (patch)
tree0290504be915db9752591bfd0b6401805b880b1f /bsp/gd32vf103v-eval/libraries/SConscript
parent3383f37f7930d37ae02ac453c6fe12079ec4107a (diff)
[bsp][gd32vf103v-eval]Add scons compilation support.|添加 scons 编译支持
Diffstat (limited to 'bsp/gd32vf103v-eval/libraries/SConscript')
-rw-r--r--bsp/gd32vf103v-eval/libraries/SConscript26
1 files changed, 26 insertions, 0 deletions
diff --git a/bsp/gd32vf103v-eval/libraries/SConscript b/bsp/gd32vf103v-eval/libraries/SConscript
new file mode 100644
index 0000000000..e7a4f5c3eb
--- /dev/null
+++ b/bsp/gd32vf103v-eval/libraries/SConscript
@@ -0,0 +1,26 @@
+# RT-Thread building script for component
+
+Import('rtconfig')
+Import('RTT_ROOT')
+from building import *
+
+cwd = GetCurrentDir()
+
+src = Glob('GD32VF103_standard_peripheral/Source/*.c')
+src += Glob('n22/env_Eclipse/*.c')
+src += Glob('n22/stubs/*.c')
+src += ['GD32VF103_standard_peripheral/system_gd32vf103.c',
+ 'n22/drivers/n22_func.c',
+ 'n22/env_Eclipse/start.S',
+ 'n22/env_Eclipse/entry.S']
+
+CPPPATH = [ cwd + '/GD32VF103_standard_peripheral/Include',
+ cwd + '/GD32VF103_standard_peripheral',
+ cwd + '/n22/drivers',
+ cwd + '/n22/stubs']
+
+CPPDEFINES = []
+
+group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
+
+Return('group')