summaryrefslogtreecommitdiff
path: root/components/drivers/sensors/SConscript
blob: db409cfd2be1ccb31b301f138d3ea9fc71d1eff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# SConscript for sensor framework 

from building import *

cwd = GetCurrentDir()
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')