forked from RT-Thread-packages/at_device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
198 lines (174 loc) · 6.76 KB
/
SConscript
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
from building import *
cwd = GetCurrentDir()
path = [cwd + '/inc']
src = Glob('src/*.c')
# A9G
if GetDepend(['AT_DEVICE_USING_A9G']):
path += [cwd + '/class/a9g']
src += Glob('class/a9g/at_device_a9g.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/a9g/at_socket_a9g.c')
if GetDepend(['AT_DEVICE_A9G_SAMPLE']):
src += Glob('samples/at_sample_a9g.c')
# M26/MC20
if GetDepend(['AT_DEVICE_USING_M26']):
path += [cwd + '/class/m26']
src += Glob('class/m26/at_device_m26.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/m26/at_socket_m26.c')
if GetDepend(['AT_DEVICE_M26_SAMPLE']):
src += Glob('samples/at_sample_m26.c')
# EC20
if GetDepend(['AT_DEVICE_USING_EC20']):
path += [cwd + '/class/ec20']
src += Glob('class/ec20/at_device_ec20.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/ec20/at_socket_ec20.c')
if GetDepend(['AT_DEVICE_EC20_SAMPLE']):
src += Glob('samples/at_sample_ec20.c')
# ESP8266
if GetDepend(['AT_DEVICE_USING_ESP8266']):
path += [cwd + '/class/esp8266']
src += Glob('class/esp8266/at_device_esp8266.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/esp8266/at_socket_esp8266.c')
if GetDepend(['AT_DEVICE_ESP8266_SAMPLE']):
src += Glob('samples/at_sample_esp8266.c')
# ESP32
if GetDepend(['AT_DEVICE_USING_ESP32']):
path += [cwd + '/class/esp32']
src += Glob('class/esp32/at_device_esp32.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/esp32/at_socket_esp32.c')
if GetDepend(['AT_DEVICE_ESP32_SAMPLE']):
src += Glob('samples/at_sample_esp32.c')
# MW31
if GetDepend(['AT_DEVICE_USING_MW31']):
path += [cwd + '/class/mw31']
src += Glob('class/mw31/at_device_mw31.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/mw31/at_socket_mw31.c')
if GetDepend(['AT_DEVICE_MW31_SAMPLE']):
src += Glob('samples/at_sample_mw31.c')
# RW007
if GetDepend(['AT_DEVICE_USING_RW007']):
path += [cwd + '/class/rw007']
src += Glob('class/rw007/at_device_rw007.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/rw007/at_socket_rw007.c')
if GetDepend(['AT_DEVICE_RW007_SAMPLE']):
src += Glob('samples/at_sample_rw007.c')
# SIM800C
if GetDepend(['AT_DEVICE_USING_SIM800C']):
path += [cwd + '/class/sim800c']
src += Glob('class/sim800c/at_device_sim800c.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/sim800c/at_socket_sim800c.c')
if GetDepend(['AT_DEVICE_SIM800C_SAMPLE']):
src += Glob('samples/at_sample_sim800c.c')
# SIM76XX
if GetDepend(['AT_DEVICE_USING_SIM76XX']):
path += [cwd + '/class/sim76xx']
src += Glob('class/sim76xx/at_device_sim76xx.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/sim76xx/at_socket_sim76xx.c')
if GetDepend(['AT_DEVICE_SIM76XX_SAMPLE']):
src += Glob('samples/at_sample_sim76xx.c')
# W60X
if GetDepend(['AT_DEVICE_USING_W60X']):
path += [cwd + '/class/w60x']
src += Glob('class/w60x/at_device_w60x.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/w60x/at_socket_w60x.c')
if GetDepend(['AT_DEVICE_W60X_SAMPLE']):
src += Glob('samples/at_sample_w60x.c')
# BC26
if GetDepend(['AT_DEVICE_USING_BC26']):
path += [cwd + '/class/bc26']
src += Glob('class/bc26/at_device_bc26.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/bc26/at_socket_bc26.c')
if GetDepend(['AT_DEVICE_BC26_SAMPLE']):
src += Glob('samples/at_sample_bc26.c')
# air720
if GetDepend(['AT_DEVICE_USING_AIR720']):
path += [cwd + '/class/air720']
src += Glob('class/air720/at_device_air720.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/air720/at_socket_air720.c')
if GetDepend(['AT_DEVICE_AIR720_SAMPLE']):
src += Glob('samples/at_sample_air720.c')
# ME3616
if GetDepend(['AT_DEVICE_USING_ME3616']):
path += [cwd + '/class/me3616']
src += Glob('class/me3616/at_device_me3616.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/me3616/at_socket_me3616.c')
if GetDepend(['AT_DEVICE_ME3616_SAMPLE']):
src += Glob('samples/at_sample_me3616.c')
# M6315
if GetDepend(['AT_DEVICE_USING_M6315']):
path += [cwd + '/class/m6315']
src += Glob('class/m6315/at_device_m6315.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/m6315/at_socket_m6315.c')
if GetDepend(['AT_DEVICE_M6315_SAMPLE']):
src += Glob('samples/at_sample_m6315.c')
# BC28
if GetDepend(['AT_DEVICE_USING_BC28']):
path += [cwd + '/class/bc28']
src += Glob('class/bc28/at_device_bc28.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/bc28/at_socket_bc28.c')
if GetDepend(['AT_DEVICE_BC28_SAMPLE']):
src += Glob('samples/at_sample_bc28.c')
# EC200X
if GetDepend(['AT_DEVICE_USING_EC200X']):
path += [cwd + '/class/ec200x']
src += Glob('class/ec200x/at_device_ec200x.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/ec200x/at_socket_ec200x.c')
if GetDepend(['AT_DEVICE_EC200X_SAMPLE']):
src += Glob('samples/at_sample_ec200x.c')
# N21
if GetDepend(['AT_DEVICE_USING_N21']):
path += [cwd + '/class/n21']
src += Glob('class/n21/at_device_n21.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/n21/at_socket_n21.c')
if GetDepend(['AT_DEVICE_N21_SAMPLE']):
src += Glob('samples/at_sample_n21.c')
# N58
if GetDepend(['AT_DEVICE_USING_N58']):
path += [cwd + '/class/n58']
src += Glob('class/n58/at_device_n58.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/n58/at_socket_n58.c')
if GetDepend(['AT_DEVICE_N58_SAMPLE']):
src += Glob('samples/at_sample_n58.c')
# M5311
if GetDepend(['AT_DEVICE_USING_M5311']):
path += [cwd + '/class/m5311']
src += Glob('class/m5311/at_device_m5311.c')
if GetDepend(['AT_USING_SOCKET']):
src +=Glob('class/m5311/at_socket_m5311.c')
if GetDepend(['AT_DEVICE_M5311_SAMPLE']):
src +=Glob('samples/at_sample_m5311.c')
# N720
if GetDepend(['AT_DEVICE_USING_N720']):
path += [cwd + '/class/n720']
src += Glob('class/n720/at_device_n720.c')
if GetDepend(['AT_USING_SOCKET']):
src += Glob('class/n720/at_socket_n720.c')
if GetDepend(['AT_DEVICE_N720_SAMPLE']):
src += Glob('samples/at_sample_n720.c')
# L610
if GetDepend(['AT_DEVICE_USING_L610']):
path += [cwd + '/class/l610']
src += Glob('class/l610/at_device_l610.c')
if GetDepend(['AT_USING_SOCKET']):
src +=Glob('class/l610/at_socket_l610.c')
if GetDepend(['AT_DEVICE_L610_SAMPLE']):
src +=Glob('samples/at_sample_l610.c')
group = DefineGroup('at_device', src, depend = ['PKG_USING_AT_DEVICE'], CPPPATH = path)
Return('group')