rt-thread/components/drivers/sensors/SConscript

18 lines
407 B
Python
Raw Normal View History

2014-11-01 09:09:52 +08:00
# SConscript for sensor framework
from building import *
cwd = GetCurrentDir()
src = ['sensor.cpp']
2014-11-01 09:09:52 +08:00
CPPPATH = [cwd, cwd + '/../include']
if GetDepend('SENSOR_USING_MPU6050'):
src += ['mpu6050_sensor.cpp'];
if GetDepend('SENSOR_USING_BMI055'):
src += ['bmi055_sensor.cpp']
2014-11-01 09:09:52 +08:00
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
Return('group')