-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
80 lines (80 loc) · 2.77 KB
/
Copy pathCMakePresets.json
File metadata and controls
80 lines (80 loc) · 2.77 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"version": 6,
"cmakeMinimumRequired": {
"major": 4,
"minor": 0,
"patch": 0
},
"configurePresets": [
{
"name": "BatteryCaseController Debug",
"displayName": "Debug Build for Battery Case Controller",
"description": "Build Debug firmware for STM32G473 using ARM GCC toolchain for Battery Case Controller",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/batterycasecontroller-debug",
"toolchainFile": "${sourceDir}/cmake/ToolChain.cmake",
"environment": {
"GCC_PATH": "/usr/bin"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"HARDWARE_DIRECTORY": "${sourceDir}/hardware/batterycasecontroller",
"MODM_DBG_UI": "tui"
}
},
{
"name": "BatteryCaseController Release",
"displayName": "Release Build for Battery Case Controller",
"description": "Build Release firmware for STM32G473 using ARM GCC toolchain for Battery Case Controller",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/batterycasecontroller-release",
"toolchainFile": "${sourceDir}/cmake/ToolChain.cmake",
"environment": {
"GCC_PATH": "/usr/bin"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"HARDWARE_DIRECTORY": "${sourceDir}/hardware/batterycasecontroller",
"MODM_DBG_UI": "tui"
}
},
{
"name": "Hosted build with tests",
"displayName": "Hosted build with tests",
"description": "Build and run tests on host (e.g. x86_64 Linux or Windows)",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/hosted",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"ENABLE_TESTS": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"HARDWARE_DIRECTORY": "${sourceDir}/hardware/host",
"RUNNING_ON_HOST": "ON"
}
}
],
"buildPresets": [
{
"name": "BatteryCaseController Debug",
"configurePreset": "BatteryCaseController Debug",
"displayName": "Build BatteryCaseController Debug Firmware"
},
{
"name": "BatteryCaseController Release",
"configurePreset": "BatteryCaseController Release",
"displayName": "Build BatteryCaseController Release Firmware"
},
{
"name": "Hosted build with tests",
"configurePreset": "Hosted build with tests",
"displayName": "Build and Test on Host"
}
],
"testPresets": [
{
"name": "Hosted Test",
"configurePreset": "Hosted build with tests"
}
]
}