rt-thread-official/components/drivers/sensor/SConscript

20 lines
485 B
Python
Raw Normal View History

# SConscript for sensor framework
2014-11-01 09:09:52 +08:00
from building import *
import os
src = []
2014-11-01 09:09:52 +08:00
if GetDepend('RT_USING_SENSOR_V2'):
src += [os.path.join('v2', 'sensor.c')]
if GetDepend('RT_USING_SENSOR_CMD'):
src += [os.path.join('v2', 'sensor_cmd.c')]
else:
src += [os.path.join('v1', 'sensor.c')]
if GetDepend('RT_USING_SENSOR_CMD'):
src += [os.path.join('v1', 'sensor_cmd.c')]
2014-11-01 09:09:52 +08:00
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SENSOR'])
Return('group')