-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakePresets.json
116 lines (116 loc) · 2.74 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "default",
"description": "Sets prefix, build, and install directories as well as common options",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/builds/${presetName}",
"cacheVariables": {
"HERMES_BUILD_EXAMPLES": true,
"HERMES_LOGGING": true,
"HERMES_LOGGING_FMT_HEADER_ONLY": false,
"HERMES_MARGO_COMPATIBLE_RPCS": false
},
"warnings": {
"dev": true,
"deprecated": true
}
},
{
"name": "release",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-DNDEBUG -O3"
}
},
{
"name": "debug",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -fdiagnostics-color=always -fno-inline -fstack-protector-all"
}
},
{
"name": "coverage",
"hidden": true,
"inherits": "debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Coverage",
"CMAKE_CXX_FLAGS_COVERAGE": "-Og -g --coverage -fkeep-static-functions",
"CMAKE_C_FLAGS_COVERAGE": "-Og -g --coverage -fkeep-static-functions",
"CMAKE_EXE_LINKER_FLAGS_COVERAGE": "--coverage",
"CMAKE_SHARED_LINKER_FLAGS_COVERAGE": "--coverage",
"CMAKE_MAP_IMPORTED_CONFIG_COVERAGE": "Coverage;RelWithDebInfo;Release;Debug;"
}
},
{
"name": "ci",
"hidden": true,
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install"
}
},
{
"name": "default-debug",
"displayName": "Default hermes (debug)",
"inherits": [
"default",
"debug"
]
},
{
"name": "default-coverage",
"displayName": "Default hermes (coverage)",
"inherits": [
"default",
"coverage"
]
},
{
"name": "default-release",
"displayName": "Default hermes (release)",
"inherits": [
"default",
"release"
]
},
{
"name": "ci-debug",
"displayName": "Default hermes (debug, CI flags)",
"inherits": [
"ci",
"default",
"debug"
]
},
{
"name": "ci-coverage",
"displayName": "Default hermes (coverage, CI flags)",
"inherits": [
"ci",
"default",
"coverage"
]
},
{
"name": "ci-release",
"displayName": "Default hermes (release, CI flags)",
"inherits": [
"ci",
"default",
"release"
]
}
]
}