2023-01-09 10:14:23 +08:00
|
|
|
# SConscript for sensor framework
|
2014-11-01 09:09:52 +08:00
|
|
|
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2019-02-12 10:15:26 +08:00
|
|
|
src = ['sensor.c']
|
2014-11-01 09:09:52 +08:00
|
|
|
CPPPATH = [cwd, cwd + '/../include']
|
|
|
|
|
2019-02-13 15:07:11 +08:00
|
|
|
if GetDepend('RT_USING_SENSOR_CMD'):
|
2020-12-19 16:49:11 +08:00
|
|
|
src += ['sensor_cmd.c']
|
2015-02-01 16:17:06 +08:00
|
|
|
|
2022-11-07 13:33:49 +08:00
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
2014-11-01 09:09:52 +08:00
|
|
|
|
|
|
|
Return('group')
|