forked from black-desk/ocppi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
112 lines (112 loc) · 4.69 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "debug",
"displayName": "Debug configuration",
"description": "Configure ocppi for development and debugging.",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CPM_DOWNLOAD_ALL": "ON",
"OCPPI_WITH_SPDLOG": true,
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Og -g -fsanitize=address,undefined",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_COLOR_DIAGNOSTICS": true
}
},
{
"name": "ci",
"displayName": "CI configuration",
"description": "Configure ocppi for CI.",
"binaryDir": "${sourceDir}/build-ci",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
},
"environment": {
"CPM_LOCAL_PACKAGES_ONLY": "ON"
}
},
{
"name": "ci-with-spdlog",
"inherits": "ci",
"displayName": "CI configuration with spdlog",
"description": "Configure ocppi with spdlog for CI.",
"binaryDir": "${sourceDir}/build-ci-with-spdlog",
"cacheVariables": {
"OCPPI_WITH_SPDLOG": true
}
}
],
"buildPresets": [
{
"name": "debug",
"displayName": "Debug build",
"description": "Build ocppi for development and debugging.",
"configurePreset": "debug"
},
{
"name": "ci",
"displayName": "CI build",
"description": "Build ocppi for CI.",
"configurePreset": "ci"
},
{
"name": "ci-with-spdlog",
"displayName": "CI build with spdlog",
"description": "Build ocppi for CI with spdlog.",
"configurePreset": "ci-with-spdlog"
}
],
"workflowPresets": [
{
"name": "debug",
"displayName": "Workflow for developers",
"description": "Configure, build then test for developing and debuging ocppi.",
"steps": [
{
"type": "configure",
"name": "debug"
},
{
"type": "build",
"name": "debug"
}
]
},
{
"name": "ci",
"displayName": "Workflow for CI",
"description": "Configure, build then test ocppi for CI.",
"steps": [
{
"type": "configure",
"name": "ci"
},
{
"type": "build",
"name": "ci"
}
]
},
{
"name": "ci-with-spdlog",
"displayName": "Workflow for CI with spdlog",
"description": "Configure, build then test ocppi for CI with spdlog.",
"steps": [
{
"type": "configure",
"name": "ci-with-spdlog"
},
{
"type": "build",
"name": "ci-with-spdlog"
}
]
}
]
}