[DeviceDrivers] Update SConcript file for sensor code

This commit is contained in:
Bernard Xiong 2015-02-01 08:50:54 +00:00
parent 87cc28fb8c
commit 3462537bdd
1 changed files with 2 additions and 2 deletions

View File

@ -6,10 +6,10 @@ cwd = GetCurrentDir()
src = ['sensor.cpp']
CPPPATH = [cwd, cwd + '/../include']
if GetDepend('SENSOR_USING_MPU6050'):
if GetDepend('SENSOR_USING_MPU6050') and GetDepend('RT_USING_I2C'):
src += ['mpu6050_sensor.cpp'];
if GetDepend('SENSOR_USING_BMI055'):
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)