-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakePresets.json
266 lines (265 loc) · 7.11 KB
/
CMakePresets.json
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "configuration-ok",
"hidden": true,
"environment": {
"PRESET_IN_USE": "1"
}
},
{"name": "cross-no-directory-reqs",
"displayName": "STM32 G4 OT-3 cross-compilation with no directory specifications",
"description": "Build application firmware for OT-3 systems that use STM32",
"generator": "Unix Makefiles",
"toolchainFile": "${sourceDir}/cmake/STM32CortexM4GCCCrossToolchain.cmake",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_MODULE_PATH": "${sourceDir}/cmake;${sourceDir}/common/cmake",
"CMAKE_FIND_APPBUNDLE": "NEVER",
"ARM_ARCH_TYPE": "cortex-m4",
"FIRMWARE_DESTINATION_PREFIX": "/usr/lib/firmware/"
},
"inherits": "configuration-ok"
},
{
"name": "cross",
"displayName": "STM32 G4 OT-3 cross-compilation",
"description": "Build application firmware for OT-3 systems that use STM32, for flashing onto boards",
"installDir": "${sourceDir}/dist",
"binaryDir": "${sourceDir}/build-cross",
"inherits": "cross-no-directory-reqs"
},
{
"name": "host",
"displayName": "STM32 OT-3 host compilation for tests",
"description": "Build libraries and test executables for OT-3 systems that use STM32",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build-host",
"cacheVariables": {
"CMAKE_FIND_APPBUNDLE": "NEVER",
"CMAKE_EXPORT_COMPILE_COMMANDS": true
},
"inherits": "configuration-ok"
},
{
"name": "host-gcc10",
"inherits": [
"host",
"configuration-ok"
],
"displayName": "STM32 module host builds forcing g++",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc-10",
"CMAKE_CXX_COMPILER": "g++-10"
}
},
{
"name": "host-gcc10-python",
"inherits": [
"host-gcc10",
"configuration-ok"
],
"displayName": "STM32 firmware host builds with gcc10 and python"
}
],
"buildPresets": [
{
"name": "all-application-firmware",
"displayName": "all application hex binaries",
"description": "Build all the hex binaries that will go on the OT3 filesystem.",
"configurePreset": "cross-no-directory-reqs",
"jobs": 4,
"targets": ["firmware-applications"]
},
{
"name": "firmware-g4",
"displayName": "All G4 Firmwares",
"description": "Environment to build all g4 firmware - see firmware-l5",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"firmware-applications",
"firmware-images"
]
},
{
"name": "pipettes",
"displayName": "pipettes binaries",
"description": "Build the pipettes cross binary",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"pipettes-images"
]
},
{
"name": "pipettes-rev1",
"inherits": ["pipettes"]
},
{
"name": "pipettes-single",
"inherits": ["pipettes"],
"displayName": "pipettes single binary",
"description": "Build the single channel pipettes cross binary",
"targets": [
"pipettes-single-images"
]
},
{
"name": "pipettes-multi",
"inherits": ["pipettes"],
"displayName": "pipettes multi binary",
"description": "Build the multi channel pipettes cross binary",
"targets": [
"pipettes-multi-images"
]
},
{
"name": "pipettes-96",
"inherits": ["pipettes"],
"displayName": "pipettes 96 channel binary",
"description": "Build the 96 channel pipettes cross binary",
"targets": [
"pipettes-96-images"
]
},
{
"name": "gripper",
"displayName": "gripper binary",
"description": "Build the gripper cross binary",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"gripper"
]
},
{
"name": "hepa-uv",
"displayName": "hepa-uv binary",
"description": "Build the hepa-uv cross binary",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"hepa-uv"
]
},
{
"name": "gantry",
"displayName": "gantry binaries",
"description": "build the gantry binary targets",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"gantry-images"
]
},
{
"name": "gantry-x",
"displayName": "x axis binary",
"description": "build the x axis binary target",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"gantry-x-images"
]
},
{
"name": "gantry-y",
"displayName": "y axis binary",
"description": "build the y axis binary target",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"gantry-y-images"
]
},
{
"name": "head",
"displayName": "head binary",
"description": "build the head binary targets",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"head-images"
]
},
{
"name": "rear-panel",
"displayName": "rear-panel binary",
"description": "build the rear binary targets",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"rear-panel-images"
]
},
{
"name": "tests",
"displayName": "tests",
"description": "build and run all tests",
"configurePreset": "host",
"jobs": 4,
"targets": [
"build-and-test"
]
},
{
"name": "bootloader",
"displayName": "bootloader binary",
"description": "build the bootloader binary targets",
"configurePreset": "cross",
"jobs": 4,
"targets": [
"bootloader-head-applications",
"bootloader-gantry-x-applications",
"bootloader-gantry-y-applications",
"bootloader-gripper-applications",
"bootloader-pipettes-single-applications",
"bootloader-pipettes-multi-applications",
"bootloader-pipettes-96-applications",
"bootloader-hepa-uv-applications"
]
},
{
"name": "simulators",
"displayName": "simulators",
"description": "build the simulators",
"configurePreset": "host",
"jobs": 4,
"targets": [
"bootloader-simulator",
"head-simulator",
"gantry-x-simulator",
"gantry-y-simulator",
"pipettes-single-simulator",
"pipettes-multi-simulator",
"pipettes-96-simulator",
"gripper-simulator"
]
},
{
"name": "simulators-gcc10",
"displayName": "simulators gcc10",
"description": "build the simulators using gcc10 (osx)",
"configurePreset": "host-gcc10",
"jobs": 4,
"targets": [
"state-manager-setup",
"bootloader-simulator",
"head-simulator",
"gantry-x-simulator",
"gantry-y-simulator",
"pipettes-single-simulator",
"pipettes-multi-simulator",
"pipettes-96-simulator",
"gripper-simulator"
]
}
]
}