-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
167 lines (167 loc) · 5.25 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"description": "base project for other configurations.",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Debug;Release;RelWithDebInfo"
},
"environment": {
"VCPKG_ROOT": "$penv{VCPKG_ROOT}"
}
},
{
"name": "windows-x64",
"displayName": "Windows x64 Debug",
"description": "Sets windows platform and debug build type for x64 arch",
"inherits": "base",
"generator": "Visual Studio 17 2022",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "linux-x64",
"displayName": "Linux x64",
"description": "Sets linux platform for x64 arch",
"inherits": "base",
"generator": "Ninja Multi-Config",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "base-android",
"hidden": true,
"inherits": "base",
"generator": "Ninja Multi-Config",
"environment": {
"ANDROID_NDK_HOME": "$penv{ANDROID_NDK_HOME}"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "$env{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake",
"ANDROID_NDK": "$env{ANDROID_NDK_HOME}",
"ANDROID_STL": "c++_shared",
"ANDROID_NATIVE_API_LEVEL": "21",
"ANDROID_ABI": "arm64-v8a",
"ANDROID_PLATFORM": "android-21"
}
},
{
"name": "android-x64",
"inherits": "base-android",
"displayName": "Android x86_64",
"description": "Sets android platform for x86_64 arch",
"architecture": {
"value": "x86_64",
"strategy": "external"
},
"cacheVariables": {
"ANDROID_ABI": "x86_64",
"VCPKG_TARGET_TRIPLET": "x64-android"
}
},
{
"name": "android-arm64",
"inherits": "base-android",
"displayName": "Android ARM64",
"description": "Sets android platform for arm64-v8a arch",
"architecture": {
"value": "arm64-v8a",
"strategy": "external"
},
"cacheVariables": {
"ANDROID_ABI": "arm64-v8a",
"VCPKG_TARGET_TRIPLET": "arm64-android"
}
},
{
"name": "android-arm",
"inherits": "base-android",
"displayName": "Android ARM32",
"description": "Sets android platform for armeabi-v7a arch",
"architecture": {
"value": "armeabi-v7a",
"strategy": "external"
},
"cacheVariables": {
"ANDROID_ABI": "armeabi-v7a",
"VCPKG_TARGET_TRIPLET": "arm-neon-android"
}
}
],
"buildPresets": [
{
"name": "windows-x64",
"displayName": "Windows x64",
"configurePreset": "windows-x64"
},
{
"name": "linux-x64",
"displayName": "Linux x64",
"configurePreset": "linux-x64"
},
{
"name": "android-x64",
"displayName": "Android x86_64",
"configurePreset": "android-x64"
},
{
"name": "android-arm",
"displayName": "Android ARM32",
"configurePreset": "android-arm"
},
{
"name": "android-arm64",
"displayName": "Android ARM64",
"configurePreset": "android-arm64"
}
],
"testPresets": [
{
"name": "base-tests",
"hidden": true,
"output": {
"outputOnFailure": true
}
},
{
"name": "windows-tests",
"inherits": "base-tests",
"configurePreset": "windows-x64"
},
{
"name": "linux-tests",
"inherits": "base-tests",
"configurePreset": "linux-x64"
}
]
}