Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
110 lines (110 loc) · 2.38 KB
/
Copy pathCMakePresets.json
File metadata and controls
110 lines (110 loc) · 2.38 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
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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"BUILD_TESTING": "ON",
"RM_VALIDATE_ASSETS": "ON",
"RM26_ENABLE_DEVTOOLS": "OFF"
}
},
{
"name": "dev",
"displayName": "开发构建",
"description": "启用测试的本地调试构建",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"displayName": "发布构建",
"description": "不启用开发观测接口的发布构建",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "ci",
"displayName": "CI 构建",
"description": "使用 Ninja 和 ccache 的无头持续集成构建",
"inherits": "release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache"
}
},
{
"name": "devtools",
"displayName": "开发观测构建",
"description": "显式链接 Qt HttpServer 并启用本地观测接口",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"RM26_ENABLE_DEVTOOLS": "ON"
}
}
],
"buildPresets": [
{
"name": "dev",
"configurePreset": "dev",
"configuration": "Debug",
"jobs": 8
},
{
"name": "release",
"configurePreset": "release",
"configuration": "Release",
"jobs": 8
},
{
"name": "ci",
"configurePreset": "ci",
"configuration": "Release",
"jobs": 4
},
{
"name": "devtools",
"configurePreset": "devtools",
"configuration": "RelWithDebInfo",
"jobs": 8
}
],
"testPresets": [
{
"name": "dev",
"configurePreset": "dev",
"configuration": "Debug",
"output": {
"outputOnFailure": true
}
},
{
"name": "release",
"configurePreset": "release",
"configuration": "Release",
"output": {
"outputOnFailure": true
}
},
{
"name": "ci",
"configurePreset": "ci",
"configuration": "Release",
"output": {
"outputOnFailure": true
}
}
]
}