初始提交
This commit is contained in:
17
Project/Src/rt-thread/components/drivers/sensors/SConscript
Normal file
17
Project/Src/rt-thread/components/drivers/sensors/SConscript
Normal file
@@ -0,0 +1,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')
|
||||
Reference in New Issue
Block a user