smart-green-house/rtt-uart-nb/rt-thread/components/drivers/sensors/SConscript

15 lines
326 B
Python
Raw Permalink Normal View History

2023-10-28 18:00:47 +08:00
# SConscript for sensor framework
from building import *
cwd = GetCurrentDir()
src = ['sensor.c']
CPPPATH = [cwd, cwd + '/../include']
if GetDepend('RT_USING_SENSOR_CMD'):
src += ['sensor_cmd.c']
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
Return('group')