mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 06:19:22 +08:00
18 lines
407 B
Python
18 lines
407 B
Python
# SConscript for sensor framework
|
|
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = ['sensor.cpp']
|
|
CPPPATH = [cwd, cwd + '/../include']
|
|
|
|
if GetDepend('SENSOR_USING_MPU6050'):
|
|
src += ['mpu6050_sensor.cpp'];
|
|
|
|
if GetDepend('SENSOR_USING_BMI055'):
|
|
src += ['bmi055_sensor.cpp']
|
|
|
|
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|