|
1 | 1 | { |
2 | | - "version": 5, |
3 | | - "cmakeMinimumRequired": { |
4 | | - "major": 3, |
5 | | - "minor": 21, |
6 | | - "patch": 0 |
7 | | - }, |
8 | | - "include": [ |
9 | | - "deps/vcpkg/scripts/buildtools/CMakePresets.json" |
10 | | - ], |
| 2 | + "$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json", |
| 3 | + "version": 8, |
11 | 4 | "configurePresets": [ |
12 | 5 | { |
13 | | - "name": "multi", |
14 | | - "generator": "Ninja Multi-Config", |
15 | | - "hidden": true |
| 6 | + "name": "vcpkg", |
| 7 | + "cacheVariables": { |
| 8 | + "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", |
| 9 | + "VCPKG_MANIFEST_INSTALL": "OFF", |
| 10 | + "VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkg_installed" |
| 11 | + } |
16 | 12 | }, |
17 | 13 | { |
18 | | - "name": "vcpkg-base", |
19 | | - "inherits": "multi", |
20 | | - "hidden": true, |
21 | | - "binaryDir": "${sourceDir}/build/vcpkg", |
| 14 | + "name": "default", |
| 15 | + "binaryDir": "${sourceDir}/build", |
| 16 | + "inherits": "vcpkg", |
| 17 | + "generator": "Ninja Multi-Config", |
22 | 18 | "cacheVariables": { |
23 | | - "CMAKE_TOOLCHAIN_FILE": "${sourceDir}/deps/vcpkg/scripts/buildsystems/vcpkg.cmake", |
24 | | - "VCPKG_APPLOCAL_DEPS": "OFF", |
25 | | - "VCPKG_MANIFEST_MODE": "OFF", |
26 | 19 | "INFRA_LOGGING": "ON", |
27 | 20 | "INFRA_GDAL": "ON", |
28 | 21 | "INFRA_XML": "ON", |
|
41 | 34 | } |
42 | 35 | }, |
43 | 36 | { |
44 | | - "name": "msvc", |
45 | | - "displayName": "MSVC x64", |
46 | | - "description": "64bit MSVC build", |
47 | | - "inherits": [ |
48 | | - "vcpkg-base", |
49 | | - "triplet-x64-windows-static-vs2022" |
50 | | - ], |
51 | | - "binaryDir": "${sourceDir}/build/vcpkg-msvc", |
| 37 | + "name": "mac-arm", |
| 38 | + "inherits": "default", |
52 | 39 | "cacheVariables": { |
53 | | - "VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkgs-x64-windows-static-vs2022" |
| 40 | + "VCPKG_TARGET_TRIPLET": "arm64-osx" |
54 | 41 | } |
55 | 42 | }, |
56 | 43 | { |
57 | | - "name": "msvc-asan", |
58 | | - "displayName": "MSVC x64 ASAN", |
59 | | - "description": "Vcpkg build for x64 on windows with address sanitizer (MSVC)", |
60 | | - "inherits": [ |
61 | | - "vcpkg-base", |
62 | | - "triplet-x64-windows-static-asan-vs2022" |
63 | | - ], |
64 | | - "binaryDir": "${sourceDir}/build/vcpkg-msvc-asan", |
| 44 | + "name": "mac-intel", |
| 45 | + "inherits": "default", |
65 | 46 | "cacheVariables": { |
66 | | - "VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkgs-x64-windows-static-asan-vs2022" |
| 47 | + "VCPKG_TARGET_TRIPLET": "x64-osx" |
67 | 48 | } |
68 | 49 | }, |
69 | 50 | { |
70 | | - "name": "arm64-osx", |
71 | | - "inherits": [ |
72 | | - "vcpkg-base", |
73 | | - "triplet-arm64-osx" |
74 | | - ], |
75 | | - "displayName": "Mac arm64", |
76 | | - "description": "Vcpkg build for arm64 on macOS", |
| 51 | + "name": "windows", |
| 52 | + "inherits": "default", |
| 53 | + "generator": "Visual Studio 17 2022", |
77 | 54 | "cacheVariables": { |
78 | | - "VCPKG_INSTALLED_DIR": "${sourceDir}/vcpkgs-arm64-osx", |
79 | | - "VCPKG_ALLOW_SYSTEM_LIBS": "ON" |
| 55 | + "VCPKG_TARGET_TRIPLET": "x64-windows-static", |
| 56 | + "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>" |
80 | 57 | } |
81 | 58 | }, |
82 | 59 | { |
83 | | - "name": "x64-osx", |
84 | | - "inherits": [ |
85 | | - "vcpkg-base", |
86 | | - "triplet-x64-osx" |
87 | | - ], |
88 | | - "displayName": "Mac x64", |
89 | | - "description": "Vcpkg build for x64 on mac" |
90 | | - }, |
91 | | - { |
92 | | - "name": "arm64-linux", |
93 | | - "inherits": [ |
94 | | - "vcpkg-base", |
95 | | - "triplet-arm64-linux" |
96 | | - ], |
97 | | - "displayName": "arm64 Linux Docker", |
98 | | - "description": "Vcpkg build for arm64 on macOS", |
| 60 | + "name": "linux", |
| 61 | + "inherits": "default", |
99 | 62 | "cacheVariables": { |
100 | | - "VCPKG_INSTALLED_DIR": "/usr/vcpkgs-arm64-linux" |
| 63 | + "VCPKG_TARGET_TRIPLET": "x64-linux" |
101 | 64 | } |
102 | | - } |
103 | | - ], |
104 | | - "buildPresets": [ |
105 | | - { |
106 | | - "name": "Debug Win", |
107 | | - "displayName": "Debug", |
108 | | - "configurePreset": "msvc", |
109 | | - "configuration": "Debug", |
110 | | - "inherits": [ |
111 | | - "build-win-only" |
112 | | - ] |
113 | | - }, |
114 | | - { |
115 | | - "name": "Release Win", |
116 | | - "displayName": "Release", |
117 | | - "configurePreset": "msvc", |
118 | | - "configuration": "Release", |
119 | | - "inherits": [ |
120 | | - "build-win-only" |
121 | | - ] |
122 | 65 | }, |
123 | 66 | { |
124 | | - "name": "ASAN", |
125 | | - "configurePreset": "msvc-asan", |
126 | | - "configuration": "Debug", |
127 | | - "inherits": [ |
128 | | - "build-win-only" |
129 | | - ] |
130 | | - }, |
131 | | - { |
132 | | - "name": "Debug arm OSX", |
133 | | - "displayName": "Debug", |
134 | | - "configurePreset": "arm64-osx", |
135 | | - "configuration": "Debug", |
136 | | - "inherits": [ |
137 | | - "build-mac-only" |
138 | | - ] |
139 | | - }, |
140 | | - { |
141 | | - "name": "Release arm OSX", |
142 | | - "displayName": "Release", |
143 | | - "configurePreset": "arm64-osx", |
144 | | - "configuration": "Release", |
145 | | - "inherits": [ |
146 | | - "build-mac-only" |
147 | | - ] |
148 | | - }, |
149 | | - { |
150 | | - "name": "Debug docker arm64", |
151 | | - "displayName": "Debug", |
152 | | - "configurePreset": "arm64-linux", |
153 | | - "configuration": "Debug", |
154 | | - "inherits": [ |
155 | | - "build-linux-only" |
156 | | - ] |
157 | | - }, |
158 | | - { |
159 | | - "name": "Release docker arm64", |
160 | | - "displayName": "Release", |
161 | | - "configurePreset": "arm64-linux", |
162 | | - "configuration": "Release", |
163 | | - "inherits": [ |
164 | | - "build-linux-only" |
165 | | - ] |
166 | | - } |
167 | | - ], |
168 | | - "testPresets": [ |
169 | | - { |
170 | | - "name": "default", |
171 | | - "configurePreset": "x64-windows-intel release", |
172 | | - "output": { |
173 | | - "outputOnFailure": true |
174 | | - }, |
175 | | - "execution": { |
176 | | - "noTestsAction": "error", |
177 | | - "stopOnFailure": true |
| 67 | + "name": "mac-arm-local", |
| 68 | + "inherits": "mac-arm", |
| 69 | + "environment": { |
| 70 | + "VCPKG_ROOT": "${sourceDir}/../../vcpkg" |
178 | 71 | } |
179 | 72 | } |
180 | 73 | ] |
|
0 commit comments