1# SConscript for sensor framework 2 3from building import * 4 5cwd = GetCurrentDir() 6src = ['sensor.cpp'] 7CPPPATH = [cwd, cwd + '/../include'] 8 9if GetDepend('SENSOR_USING_MPU6050') and GetDepend('RT_USING_I2C'): 10 src += ['mpu6050_sensor.cpp']; 11 12if GetDepend('SENSOR_USING_BMI055') and GetDepend('RT_USING_I2C'): 13 src += ['bmi055_sensor.cpp'] 14 15group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH) 16 17Return('group') 18