-
Notifications
You must be signed in to change notification settings - Fork 44
/
CMakePresets.json
176 lines (176 loc) · 6.33 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "debug-flags",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS": "-fno-omit-frame-pointer -fno-optimize-sibling-calls -gfull -O0",
"CMAKE_CXX_FLAGS": "-fno-omit-frame-pointer -fno-optimize-sibling-calls -gfull -O0"
}
},
{
"name": "asan-flags",
"hidden": true,
"inherits": ["debug-flags"],
"cacheVariables": {
"CMAKE_C_FLAGS": "-fno-omit-frame-pointer -fno-optimize-sibling-calls -gfull -O1 -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections",
"CMAKE_CXX_FLAGS": "-fno-omit-frame-pointer -fno-optimize-sibling-calls -gfull -O1 -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -ffunction-sections -fdata-sections"
}
},
{
"name": "release-flags",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "arm64",
"hidden": true,
"environment": {
"VCPKG_ARCH": "arm64"
},
"architecture": {
"value": "arm64",
"strategy": "external"
}
},
{
"name": "x86_64",
"hidden": true,
"environment": {
"VCPKG_ARCH": "x64"
},
"architecture": {
"value": "x64",
"strategy": "external"
}
},
{
"name": "vcpkg-common",
"hidden": true,
"binaryDir": "$env{INSTALL_DIR}/build/rellic",
"generator": "Ninja",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "$env{VCPKG_TARGET_TRIPLET}",
"CMAKE_TOOLCHAIN_FILE": "$env{CMAKE_TOOLCHAIN_FILE}",
"CMAKE_INSTALL_PREFIX": "$env{INSTALL_DIR}/install",
"RELLIC_ENABLE_TESTING": "ON"
}
},
{
"name": "vcpkg-debug",
"hidden": true,
"inherits": ["debug-flags", "vcpkg-common"]
},
{
"name": "vcpkg-release",
"hidden": true,
"inherits": ["release-flags", "vcpkg-common"]
},
{
"name": "vcpkg-asan",
"hidden": true,
"inherits": ["asan-flags", "vcpkg-common"]
},
{
"name": "vcpkg-x64-dbg",
"inherits": ["vcpkg-debug", "x86_64"],
"displayName": "Debug Build (vcpkg) (x64)",
"description": "Build a Debug version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-x64-rel",
"inherits": ["vcpkg-release", "x86_64"],
"displayName": "Release Build (vcpkg) (x64)",
"description": "Build a Release version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-x64-asan",
"inherits": ["vcpkg-asan", "x86_64"],
"displayName": "Debug ASAN Build (vcpkg) (x64)",
"description": "Build a Debug ASAN version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-arm64-dbg",
"inherits": ["vcpkg-debug", "arm64"],
"displayName": "Debug Build (vcpkg) (arm64)",
"description": "Build a Debug version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-arm64-rel",
"inherits": ["vcpkg-release", "arm64"],
"displayName": "Release Build (vcpkg) (arm64)",
"description": "Build a Release version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-arm64-asan",
"inherits": ["vcpkg-asan", "arm64"],
"displayName": "Debug ASAN Build (vcpkg) (arm64)",
"description": "Build a Debug ASAN version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
}
],
"buildPresets": [
{
"name": "build-base-debug",
"hidden": true,
"description": "Build in Debug mode",
"configuration": "Debug"
},
{
"name": "build-base-release",
"hidden": true,
"description": "Build in Release mode",
"configuration": "Release"
},
{
"name": "build-base-asan",
"hidden": true,
"description": "Build in Debug Asan mode",
"configuration": "Debug"
},
{
"name": "x64-dbg",
"configurePreset": "vcpkg-x64-dbg",
"displayName": "Build (debug) (x64)",
"inherits": ["build-base-debug"]
},
{
"name": "x64-asan",
"configurePreset": "vcpkg-x64-asan",
"displayName": "Build (debug) (ASAN) (x64)",
"inherits": ["build-base-asan"]
},
{
"name": "x64-rel",
"configurePreset": "vcpkg-x64-rel",
"displayName": "Build (release) (x64)",
"inherits": ["build-base-release"]
},
{
"name": "arm64-dbg",
"configurePreset": "vcpkg-arm64-dbg",
"displayName": "Build (debug) (arm64)",
"inherits": ["build-base-debug"]
},
{
"name": "arm64-asan",
"configurePreset": "vcpkg-arm64-asan",
"displayName": "Build (debug) (ASAN) (arm64)",
"inherits": ["build-base-asan"]
},
{
"name": "arm64-rel",
"configurePreset": "vcpkg-arm64-rel",
"displayName": "Build (release) (arm64)",
"inherits": ["build-base-release"]
}
]
}