-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
125 lines (125 loc) · 3.08 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
{
"version": 3,
"configurePresets": [
{
"name": "defaults",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install"
},
{
"name": "host",
"description": "Build Postmaster for host",
"inherits": "defaults",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Debug;RelWithDebInfo",
"EMIL_BUILD_TESTS": true
}
},
{
"name": "stm32",
"hidden": true,
"inherits": "defaults",
"generator": "Ninja Multi-Config",
"environment": {
"CMAKE_TOOLCHAIN_FILE": ""
},
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Debug;RelWithDebInfo;MinSizeRel",
"TARGET_MCU_VENDOR": "st"
}
},
{
"name": "stm32f407",
"description": "Build Postmaster for stm32f407",
"toolchainFile": "${sourceDir}/amp-embedded-infra-lib/cmake/toolchain-arm-gcc-m4-fpv4-sp-d16.cmake",
"inherits": "stm32",
"cacheVariables": {
"TARGET_CORTEX": "m4",
"TARGET_MCU": "stm32f407",
"TARGET_MCU_FAMILY": "stm32f4xx"
}
},
{
"name": "windows",
"description": "Build Postmaster for Windows",
"inherits": "defaults",
"toolchainFile": "${sourceDir}/amp-embedded-infra-lib/cmake/toolchain-clang-x86_64-pc-windows-msvc.cmake",
"generator": "Ninja Multi-Config",
"environment": {
"CCACHE_DEPEND": "true",
"CCACHE_COMPILERTYPE": "clang-cl"
},
"cacheVariables": {
"CMAKE_COMPILE_WARNING_AS_ERROR": "Off",
"CMAKE_CONFIGURATION_TYPES": "Debug;RelWithDebInfo"
}
},
{
"name": "flex",
"inherits": "defaults",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel"
}
}
],
"buildPresets": [
{
"name": "host-Debug",
"configuration": "Debug",
"configurePreset": "host"
},
{
"name": "host-RelWithDebInfo",
"configuration": "RelWithDebInfo",
"configurePreset": "host"
},
{
"name": "stm32f407-RelWithDebInfo",
"configuration": "RelWithDebInfo",
"configurePreset": "stm32f407"
},
{
"name": "stm32f407-MinSizeRel",
"configuration": "MinSizeRel",
"configurePreset": "stm32f407"
},
{
"name": "windows-Debug",
"configuration": "Debug",
"configurePreset": "windows"
},
{
"name": "windows-RelWithDebInfo",
"configuration": "RelWithDebInfo",
"configurePreset": "windows"
},
{
"name": "flex",
"configuration": "MinSizeRel",
"configurePreset": "flex",
"targets": ["postmaster.flex"]
}
],
"testPresets": [
{
"name": "defaults",
"hidden": true,
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
},
{
"name": "host-Debug",
"configurePreset": "host",
"configuration": "Debug",
"inherits": "defaults"
}
]
}