From c2490ed3568b268346e349a099819500be24b350 Mon Sep 17 00:00:00 2001 From: "hao.dong" Date: Mon, 6 Sep 2021 03:39:19 +0800 Subject: [PATCH] add: scons for rtt --- SConscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 SConscript diff --git a/SConscript b/SConscript new file mode 100644 index 0000000..f0ca535 --- /dev/null +++ b/SConscript @@ -0,0 +1,12 @@ +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') +path = [cwd + '/include'] + +if GetDepend('PKG_USING_CONTROLLER'): + src += Glob('src/*.c') + +group = DefineGroup('Controller', src, depend = ['PKG_USING_CONTROLLER'], CPPPATH = path) + +Return('group') \ No newline at end of file