mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 15:23:33 +08:00
9ac8b47eb2
fix the confilcts with sensor v1
20 lines
485 B
Python
20 lines
485 B
Python
# SConscript for sensor framework
|
|
|
|
from building import *
|
|
import os
|
|
|
|
src = []
|
|
|
|
if GetDepend('RT_USING_SENSOR_V2'):
|
|
src += [os.path.join('v2', 'sensor.c')]
|
|
if GetDepend('RT_USING_SENSOR_CMD'):
|
|
src += [os.path.join('v2', 'sensor_cmd.c')]
|
|
else:
|
|
src += [os.path.join('v1', 'sensor.c')]
|
|
if GetDepend('RT_USING_SENSOR_CMD'):
|
|
src += [os.path.join('v1', 'sensor_cmd.c')]
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SENSOR'])
|
|
|
|
Return('group')
|