SConscript 467 B

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