|
62 | 62 | } |
63 | 63 | }, |
64 | 64 | { |
65 | | - "name": "linux-base", |
66 | | - "description": "Use current Qt with Clang compiler", |
| 65 | + "name": "ninja-base", |
| 66 | + "description": "Use current Qt with Ninja", |
67 | 67 | "hidden": true, |
68 | 68 | "generator": "Ninja", |
69 | 69 | "binaryDir": "${sourceDir}/build/${presetName}", |
70 | 70 | "cacheVariables": { |
71 | 71 | "CMAKE_TOOLCHAIN_FILE": "$env{QT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", |
72 | 72 | "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/install", |
73 | 73 | "CMAKE_PREFIX_PATH": "$env{QT_DIR}/lib/cmake", |
74 | | - "CMAKE_C_COMPILER": "clang", |
75 | | - "CMAKE_CXX_COMPILER": "clang++", |
76 | 74 | "QT_QML_GENERATE_QMLLS_INI": "ON", |
77 | 75 | "CMAKE_CXX_FLAGS_DEBUG_INIT": "-DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG", |
78 | 76 | "CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT": "-DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG" |
79 | | - }, |
80 | | - "condition": { |
81 | | - "type": "equals", |
82 | | - "lhs": "${hostSystemName}", |
83 | | - "rhs": "Linux" |
| 77 | + } |
| 78 | + }, |
| 79 | + { |
| 80 | + "name": "clang-base", |
| 81 | + "displayName": "Qt Clang", |
| 82 | + "description": "Use current Qt with Clang compiler", |
| 83 | + "hidden": true, |
| 84 | + "inherits": "ninja-base", |
| 85 | + "cacheVariables": { |
| 86 | + "CMAKE_C_COMPILER": "clang", |
| 87 | + "CMAKE_CXX_COMPILER": "clang++" |
| 88 | + } |
| 89 | + }, |
| 90 | + { |
| 91 | + "name": "Qt-Clang-Debug", |
| 92 | + "displayName": "Qt Clang Debug", |
| 93 | + "description": "Use current Qt with Clang compiler (Debug)", |
| 94 | + "inherits": "clang-base", |
| 95 | + "cacheVariables": { |
| 96 | + "CMAKE_BUILD_TYPE": "Debug" |
84 | 97 | } |
85 | 98 | }, |
86 | 99 | { |
87 | 100 | "name": "compile_commands", |
88 | 101 | "displayName": "Generate compile_commands", |
89 | 102 | "description": "Use current Qt with Clang compiler (Debug)", |
90 | | - "inherits": "linux-base", |
| 103 | + "inherits": "clang-base", |
91 | 104 | "cacheVariables": { |
92 | 105 | "CMAKE_BUILD_TYPE": "Debug", |
93 | 106 | "MUSE_COMPILE_USE_UNITY": "OFF", |
94 | 107 | "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" |
95 | 108 | } |
96 | 109 | }, |
97 | 110 | { |
98 | | - "name": "Qt-Clang-Debug", |
99 | | - "displayName": "Qt Clang Debug", |
100 | | - "description": "Use current Qt with Clang compiler (Debug)", |
101 | | - "inherits": "linux-base", |
| 111 | + "name": "msvc-base", |
| 112 | + "displayName": "Qt Msvc", |
| 113 | + "description": "Use current Qt with Msvc compiler", |
| 114 | + "hidden": true, |
| 115 | + "inherits": "ninja-base", |
| 116 | + "cacheVariables": { |
| 117 | + "CMAKE_C_COMPILER": "cl.exe", |
| 118 | + "CMAKE_CXX_COMPILER": "cl.exe" |
| 119 | + }, |
| 120 | + "condition": { |
| 121 | + "type": "equals", |
| 122 | + "lhs": "${hostSystemName}", |
| 123 | + "rhs": "Windows" |
| 124 | + } |
| 125 | + }, |
| 126 | + { |
| 127 | + "name": "Qt-Msvc-Debug", |
| 128 | + "displayName": "Qt Msvc Debug", |
| 129 | + "description": "Use current Qt with Msvc compiler (Debug)", |
| 130 | + "inherits": "msvc-base", |
102 | 131 | "cacheVariables": { |
103 | 132 | "CMAKE_BUILD_TYPE": "Debug" |
104 | 133 | } |
|
0 commit comments