2024-03-17 07:02:35 +08:00
|
|
|
# SConscript for sensor framework
|
2014-11-01 09:09:52 +08:00
|
|
|
|
|
|
|
from building import *
|
2024-03-17 07:02:35 +08:00
|
|
|
import os
|
|
|
|
|
|
|
|
src = []
|
2014-11-01 09:09:52 +08:00
|
|
|
|
2024-03-17 07:02:35 +08:00
|
|
|
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')]
|
2014-11-01 09:09:52 +08:00
|
|
|
|
2024-03-17 07:02:35 +08:00
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SENSOR'])
|
2015-02-01 16:17:06 +08:00
|
|
|
|
2024-03-17 07:02:35 +08:00
|
|
|
Return('group')
|