From d7cb0876f639e962b967bffee40a6a6d699690f6 Mon Sep 17 00:00:00 2001 From: chunyexixiaoyu <834670833@qq.com> Date: Fri, 24 Sep 2021 16:11:19 +0800 Subject: [PATCH] APP_Framework/Framework/:add sensor SConscript and the sensor.c file can be compiled by default --- APP_Framework/Framework/sensor/SConscript | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 APP_Framework/Framework/sensor/SConscript diff --git a/APP_Framework/Framework/sensor/SConscript b/APP_Framework/Framework/sensor/SConscript new file mode 100644 index 00000000..cf258f3b --- /dev/null +++ b/APP_Framework/Framework/sensor/SConscript @@ -0,0 +1,21 @@ +import os +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +SOURCES = [] +if GetDepend(['SUPPORT_SENSOR_FRAMEWORK']): + SOURCES = ['sensor.c'] + SOURCES +path = [cwd] +objs = [] +group = DefineGroup('sensor', SOURCES, depend = [], CPPPATH = [cwd]) +objs = objs + group +list = os.listdir(cwd) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(path, 'SConscript')) + +Return('objs')