|
1 | 1 | { |
2 | | - "version": 3, |
| 2 | + "version": 6, |
3 | 3 | "cmakeMinimumRequired": { |
4 | 4 | "major": 3, |
5 | 5 | "minor": 21, |
|
9 | 9 | { |
10 | 10 | "name": "macos", |
11 | 11 | "displayName": "macOS", |
12 | | - "description": "Xcode project for macOS", |
13 | | - "generator": "Xcode", |
| 12 | + "description": "Ninja Build for macOS", |
| 13 | + "generator": "Ninja", |
14 | 14 | "binaryDir": "${sourceDir}/_build", |
15 | 15 | "cacheVariables": { |
16 | | - "Qt5_DIR": "/opt/homebrew/opt/qt/lib/cmake/Qt5" |
| 16 | + "CMAKE_PREFIX_PATH": "/opt/homebrew/opt/qt/lib/cmake/Qt6", |
| 17 | + "QTAPPINSTANCEMANAGER_TESTS": true, |
| 18 | + "QTAPPINSTANCEMANAGER_EXAMPLES": true |
17 | 19 | }, |
18 | 20 | "condition": { |
19 | 21 | "type": "equals", |
|
28 | 30 | "generator": "Visual Studio 17 2022", |
29 | 31 | "binaryDir": "${sourceDir}/_build", |
30 | 32 | "cacheVariables": { |
31 | | - "Qt5_DIR": "C:/Qt/5.15.2/msvc2019_64/lib/cmake/Qt5" |
| 33 | + "CMAKE_PREFIX_PATH": "C:/Qt/6.8.0/msvc2022_64", |
| 34 | + "QTAPPINSTANCEMANAGER_TESTS": true, |
| 35 | + "QTAPPINSTANCEMANAGER_EXAMPLES": true |
32 | 36 | }, |
33 | 37 | "condition": { |
34 | 38 | "type": "equals", |
|
39 | 43 | { |
40 | 44 | "name": "linux", |
41 | 45 | "displayName": "Linux", |
42 | | - "description": "Makefile for Linux", |
43 | | - "generator": "Unix Makefiles", |
| 46 | + "description": "Ninja Build for Linux", |
| 47 | + "generator": "Ninja", |
44 | 48 | "binaryDir": "${sourceDir}/_build", |
| 49 | + "cacheVariables": { |
| 50 | + "QTAPPINSTANCEMANAGER_TESTS": true, |
| 51 | + "QTAPPINSTANCEMANAGER_EXAMPLES": true |
| 52 | + }, |
45 | 53 | "condition": { |
46 | 54 | "type": "equals", |
47 | 55 | "lhs": "${hostSystemName}", |
|
54 | 62 | "name": "macos", |
55 | 63 | "displayName": "macOS", |
56 | 64 | "configurePreset": "macos", |
57 | | - "description": "Release build with Xcode for macOS", |
58 | | - "targets": ["QtAppInstanceManager"], |
| 65 | + "description": "Release build for macOS", |
| 66 | + "targets": [ |
| 67 | + "QtAppInstanceManager" |
| 68 | + ], |
59 | 69 | "configuration": "Release", |
60 | 70 | "condition": { |
61 | 71 | "type": "equals", |
|
67 | 77 | "name": "macos-test", |
68 | 78 | "displayName": "Tests for macOS", |
69 | 79 | "configurePreset": "macos", |
70 | | - "description": "Tests release build with Xcode for macOS", |
71 | | - "targets": ["QtAppInstanceManagerTests"], |
| 80 | + "description": "Tests release build for macOS", |
| 81 | + "targets": [ |
| 82 | + "QtAppInstanceManagerTests" |
| 83 | + ], |
72 | 84 | "configuration": "Release", |
73 | 85 | "condition": { |
74 | 86 | "type": "equals", |
|
80 | 92 | "name": "windows", |
81 | 93 | "displayName": "Windows", |
82 | 94 | "configurePreset": "windows", |
83 | | - "description": "Release build with Visual Studio for Windows", |
84 | | - "targets": ["QtAppInstanceManager"], |
| 95 | + "description": "Release build for Windows", |
| 96 | + "targets": [ |
| 97 | + "QtAppInstanceManager" |
| 98 | + ], |
85 | 99 | "configuration": "Release", |
86 | 100 | "condition": { |
87 | 101 | "type": "equals", |
|
93 | 107 | "name": "windows-test", |
94 | 108 | "displayName": "Tests for Windows", |
95 | 109 | "configurePreset": "windows", |
96 | | - "description": "Tests release build with Visual Studio for Windows", |
97 | | - "targets": ["QtAppInstanceManagerTests"], |
| 110 | + "description": "Tests release build for Windows", |
| 111 | + "targets": [ |
| 112 | + "QtAppInstanceManagerTests" |
| 113 | + ], |
98 | 114 | "configuration": "Release", |
99 | 115 | "condition": { |
100 | 116 | "type": "equals", |
|
107 | 123 | "displayName": "Linux", |
108 | 124 | "configurePreset": "linux", |
109 | 125 | "description": "Release build for Linux", |
110 | | - "targets": ["QtAppInstanceManager"], |
| 126 | + "targets": [ |
| 127 | + "QtAppInstanceManager" |
| 128 | + ], |
111 | 129 | "configuration": "Release", |
112 | 130 | "condition": { |
113 | 131 | "type": "equals", |
|
120 | 138 | "displayName": "Tests for Linux", |
121 | 139 | "configurePreset": "linux", |
122 | 140 | "description": "Tests release build for Linux", |
123 | | - "targets": ["QtAppInstanceManagerTests"], |
| 141 | + "targets": [ |
| 142 | + "QtAppInstanceManagerTests" |
| 143 | + ], |
124 | 144 | "configuration": "Release", |
125 | 145 | "condition": { |
126 | 146 | "type": "equals", |
|
184 | 204 | "rhs": "Windows" |
185 | 205 | } |
186 | 206 | } |
| 207 | + ], |
| 208 | + "workflowPresets": [ |
| 209 | + { |
| 210 | + "name": "macos", |
| 211 | + "displayName": "macOS", |
| 212 | + "steps": [ |
| 213 | + { |
| 214 | + "type": "configure", |
| 215 | + "name": "macos" |
| 216 | + }, |
| 217 | + { |
| 218 | + "type": "build", |
| 219 | + "name": "macos-test" |
| 220 | + }, |
| 221 | + { |
| 222 | + "type": "test", |
| 223 | + "name": "macos" |
| 224 | + } |
| 225 | + ] |
| 226 | + }, |
| 227 | + { |
| 228 | + "name": "windows", |
| 229 | + "displayName": "Windows", |
| 230 | + "steps": [ |
| 231 | + { |
| 232 | + "type": "configure", |
| 233 | + "name": "windows" |
| 234 | + }, |
| 235 | + { |
| 236 | + "type": "build", |
| 237 | + "name": "windows-test" |
| 238 | + }, |
| 239 | + { |
| 240 | + "type": "test", |
| 241 | + "name": "windows" |
| 242 | + } |
| 243 | + ] |
| 244 | + }, |
| 245 | + { |
| 246 | + "name": "linux", |
| 247 | + "displayName": "Linux", |
| 248 | + "steps": [ |
| 249 | + { |
| 250 | + "type": "configure", |
| 251 | + "name": "linux" |
| 252 | + }, |
| 253 | + { |
| 254 | + "type": "build", |
| 255 | + "name": "linux-test" |
| 256 | + }, |
| 257 | + { |
| 258 | + "type": "test", |
| 259 | + "name": "linux" |
| 260 | + } |
| 261 | + ] |
| 262 | + } |
187 | 263 | ] |
188 | 264 | } |
0 commit comments