-
Notifications
You must be signed in to change notification settings - Fork 45
/
CMakePresets.json
141 lines (141 loc) · 4.4 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{
"name": "release",
"displayName": "Release configuration",
"description": "Configure linglong for installing from source.",
"binaryDir": "${sourceDir}/build-release",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wno-c++20-extensions -Wno-pessimizing-move -O2",
"CMAKE_COLOR_DIAGNOSTICS": true
}
},
{
"name": "debug",
"displayName": "Debug configuration",
"description": "Configure linglong for development and debugging.",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wno-c++20-extensions -Wno-pessimizing-move -Og -g -fsanitize=undefined",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_COLOR_DIAGNOSTICS": true
}
},
{
"name": "clang-tidy",
"displayName": "clang-tidy configuration",
"description": "Configure linglong for rnning clang-tidy.",
"binaryDir": "${sourceDir}/build-clang-tidy",
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": "clang-tidy",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_COLOR_DIAGNOSTICS": true
}
}
],
"buildPresets": [
{
"name": "release",
"displayName": "Release build",
"description": "Build linglong for installing from source.",
"configurePreset": "release"
},
{
"name": "debug",
"displayName": "Debug build",
"description": "Build linglong for development and debugging.",
"configurePreset": "debug",
"jobs": 8
},
{
"name": "clang-tidy",
"displayName": "Run clang-tidy",
"description": "Build linglong with clang-tidy",
"configurePreset": "clang-tidy"
}
],
"testPresets": [
{
"name": "release",
"displayName": "Release test",
"description": "Test linglong for installing from source.",
"configurePreset": "release",
"execution": {
"stopOnFailure": true
}
},
{
"name": "debug",
"displayName": "Debug test",
"description": "Test linglong for developing and debuging.",
"configurePreset": "debug",
"execution": {
"stopOnFailure": true
},
"output": {
"debug": true
}
}
],
"workflowPresets": [
{
"name": "release",
"displayName": "Release workflow",
"description": "Configure, build then test for installing linglong from source.",
"steps": [
{
"type": "configure",
"name": "release"
},
{
"type": "build",
"name": "release"
},
{
"type": "test",
"name": "release"
}
]
},
{
"name": "debug",
"displayName": "Workflow for developers",
"description": "Configure, build then test for developing and debuging linglong.",
"steps": [
{
"type": "configure",
"name": "debug"
},
{
"type": "build",
"name": "debug"
},
{
"type": "test",
"name": "debug"
}
]
},
{
"name": "clang-tidy",
"displayName": "Workflow runs clang-tidy",
"description": "Configure and build linglong with clang-tidy.",
"steps": [
{
"type": "configure",
"name": "clang-tidy"
},
{
"type": "build",
"name": "clang-tidy"
}
]
}
]
}