|
1 | 1 | { |
2 | 2 | "version": 6, |
3 | | - "cmakeMinimumRequired": { |
4 | | - "major": 3, |
5 | | - "minor": 22, |
6 | | - "patch": 0 |
7 | | - }, |
8 | 3 | "configurePresets": [ |
9 | 4 | { |
10 | 5 | "name": "debug", |
|
52 | 47 | "rhs": "Darwin" |
53 | 48 | } |
54 | 49 | } |
| 50 | + ], |
| 51 | + "buildPresets": [ |
| 52 | + { |
| 53 | + "name": "debug", |
| 54 | + "displayName": "Build Debug", |
| 55 | + "configurePreset": "debug", |
| 56 | + "configuration": "Debug" |
| 57 | + }, |
| 58 | + { |
| 59 | + "name": "release", |
| 60 | + "displayName": "Build Release", |
| 61 | + "configurePreset": "release", |
| 62 | + "configuration": "Release", |
| 63 | + "targets": [ |
| 64 | + "App" |
| 65 | + ] |
| 66 | + }, |
| 67 | + { |
| 68 | + "name": "xcode-debug", |
| 69 | + "displayName": "Build Debug (Xcode)", |
| 70 | + "configurePreset": "xcode-debug", |
| 71 | + "configuration": "Debug", |
| 72 | + "condition": { |
| 73 | + "type": "equals", |
| 74 | + "lhs": "${hostSystemName}", |
| 75 | + "rhs": "Darwin" |
| 76 | + } |
| 77 | + }, |
| 78 | + { |
| 79 | + "name": "xcode-release", |
| 80 | + "displayName": "Build Release (Xcode)", |
| 81 | + "configurePreset": "xcode-release", |
| 82 | + "configuration": "Release", |
| 83 | + "targets": [ |
| 84 | + "App" |
| 85 | + ], |
| 86 | + "condition": { |
| 87 | + "type": "equals", |
| 88 | + "lhs": "${hostSystemName}", |
| 89 | + "rhs": "Darwin" |
| 90 | + } |
| 91 | + } |
| 92 | + ], |
| 93 | + "packagePresets": [ |
| 94 | + { |
| 95 | + "name": "release", |
| 96 | + "displayName": "Distribute Release", |
| 97 | + "configurePreset": "release", |
| 98 | + "configurations": [ |
| 99 | + "Release" |
| 100 | + ] |
| 101 | + }, |
| 102 | + { |
| 103 | + "name": "xcode-release", |
| 104 | + "displayName": "Distribute Release (Xcode)", |
| 105 | + "configurePreset": "xcode-release", |
| 106 | + "configurations": [ |
| 107 | + "Release" |
| 108 | + ], |
| 109 | + "condition": { |
| 110 | + "type": "equals", |
| 111 | + "lhs": "${hostSystemName}", |
| 112 | + "rhs": "Darwin" |
| 113 | + } |
| 114 | + } |
| 115 | + ], |
| 116 | + "testPresets": [ |
| 117 | + { |
| 118 | + "name": "all", |
| 119 | + "displayName": "Test All", |
| 120 | + "configurePreset": "debug" |
| 121 | + } |
| 122 | + ], |
| 123 | + "workflowPresets": [ |
| 124 | + { |
| 125 | + "name": "dist", |
| 126 | + "displayName": "Distribution Workflow", |
| 127 | + "steps": [ |
| 128 | + { |
| 129 | + "type": "configure", |
| 130 | + "name": "release" |
| 131 | + }, |
| 132 | + { |
| 133 | + "type": "build", |
| 134 | + "name": "release" |
| 135 | + }, |
| 136 | + { |
| 137 | + "type": "package", |
| 138 | + "name": "release" |
| 139 | + } |
| 140 | + ] |
| 141 | + }, |
| 142 | + { |
| 143 | + "name": "xcode-dist", |
| 144 | + "displayName": "Distribution Workflow (Xcode)", |
| 145 | + "steps": [ |
| 146 | + { |
| 147 | + "type": "configure", |
| 148 | + "name": "xcode-release" |
| 149 | + }, |
| 150 | + { |
| 151 | + "type": "build", |
| 152 | + "name": "xcode-release" |
| 153 | + }, |
| 154 | + { |
| 155 | + "type": "package", |
| 156 | + "name": "xcode-release" |
| 157 | + } |
| 158 | + ] |
| 159 | + } |
55 | 160 | ] |
56 | 161 | } |
0 commit comments