diff options
Diffstat (limited to 'components/drivers/sensors/SConscript')
| -rw-r--r-- | components/drivers/sensors/SConscript | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/components/drivers/sensors/SConscript b/components/drivers/sensors/SConscript index 14a7cd2450..db409cfd2b 100644 --- a/components/drivers/sensors/SConscript +++ b/components/drivers/sensors/SConscript @@ -3,10 +3,15 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = ['sensor.cpp'] CPPPATH = [cwd, cwd + '/../include'] +if GetDepend('SENSOR_USING_MPU6050') and GetDepend('RT_USING_I2C'): + src += ['mpu6050_sensor.cpp']; + +if GetDepend('SENSOR_USING_BMI055') and GetDepend('RT_USING_I2C'): + src += ['bmi055_sensor.cpp'] + group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH) Return('group') - |
