-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSConscript
More file actions
58 lines (39 loc) · 1.46 KB
/
SConscript
File metadata and controls
58 lines (39 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Import('RTT_ROOT')
Import('rtconfig')
from building import *
src = []
cwd = GetCurrentDir()
list = os.listdir(cwd)
CPPPATH = [cwd, str(Dir('#'))]
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_ACCE']):
src += Glob('v_accelerometer.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_BARO']):
src += Glob('v_barometer.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_FORCE']):
src += Glob('v_force.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_GYRO']):
src += Glob('v_gyroscope.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_HR']):
src += Glob('v_heartRate.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_HUMI']):
src += Glob('v_humidity.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_LIGHT']):
src += Glob('v_light.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_MAG']):
src += Glob('v_magnetometer.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_NOISE']):
src += Glob('v_noise.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_PROX']):
src += Glob('v_proximity.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_STEP']):
src += Glob('v_stepcounter.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_TEMP']):
src += Glob('v_temperature.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_TVOC']):
src += Glob('v_tvoc.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_SPO2']):
src += Glob('v_spo2.c')
if GetDepend(['PKG_USING_VIRTUAL_SENSOR_BP']):
src += Glob('v_bloodpressure.c')
group = DefineGroup('vsensor', src, depend = ['PKG_USING_VIRTUAL_SENSOR'], CPPPATH = CPPPATH)
Return('group')