diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce46a2c2b..45bd03a65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -13,6 +13,7 @@ project(yuzu) | |||
| 13 | option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) | 13 | option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) |
| 14 | 14 | ||
| 15 | option(ENABLE_QT "Enable the Qt frontend" ON) | 15 | option(ENABLE_QT "Enable the Qt frontend" ON) |
| 16 | option(ENABLE_QT_TRANSLATION "Enable translations for the Qt frontend" OFF) | ||
| 16 | CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_QT;MSVC" OFF) | 17 | CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_QT;MSVC" OFF) |
| 17 | 18 | ||
| 18 | option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON) | 19 | option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON) |
| @@ -158,15 +159,15 @@ macro(yuzu_find_packages) | |||
| 158 | # Capitalization matters here. We need the naming to match the generated paths from Conan | 159 | # Capitalization matters here. We need the naming to match the generated paths from Conan |
| 159 | set(REQUIRED_LIBS | 160 | set(REQUIRED_LIBS |
| 160 | # Cmake Pkg Prefix Version Conan Pkg | 161 | # Cmake Pkg Prefix Version Conan Pkg |
| 161 | "Boost 1.71 boost/1.72.0" | 162 | "Boost 1.73 boost/1.73.0" |
| 162 | "Catch2 2.11 catch2/2.11.0" | 163 | "Catch2 2.13 catch2/2.13.0" |
| 163 | "fmt 7.0 fmt/7.0.1" | 164 | "fmt 7.0 fmt/7.0.3" |
| 164 | # can't use until https://github.com/bincrafters/community/issues/1173 | 165 | # can't use until https://github.com/bincrafters/community/issues/1173 |
| 165 | #"libzip 1.5 libzip/1.5.2@bincrafters/stable" | 166 | #"libzip 1.5 libzip/1.5.2@bincrafters/stable" |
| 166 | "lz4 1.8 lz4/1.9.2" | 167 | "lz4 1.8 lz4/1.9.2" |
| 167 | "nlohmann_json 3.7 nlohmann_json/3.7.3" | 168 | "nlohmann_json 3.8 nlohmann_json/3.8.0" |
| 168 | "ZLIB 1.2 zlib/1.2.11" | 169 | "ZLIB 1.2 zlib/1.2.11" |
| 169 | "zstd 1.4 zstd/1.4.4" | 170 | "zstd 1.4 zstd/1.4.5" |
| 170 | ) | 171 | ) |
| 171 | 172 | ||
| 172 | foreach(PACKAGE ${REQUIRED_LIBS}) | 173 | foreach(PACKAGE ${REQUIRED_LIBS}) |
| @@ -209,7 +210,7 @@ if(ENABLE_QT) | |||
| 209 | set(QT_PREFIX_HINT) | 210 | set(QT_PREFIX_HINT) |
| 210 | if(YUZU_USE_BUNDLED_QT) | 211 | if(YUZU_USE_BUNDLED_QT) |
| 211 | if ((MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1930) AND ARCHITECTURE_x86_64) | 212 | if ((MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1930) AND ARCHITECTURE_x86_64) |
| 212 | set(QT_VER qt-5.12.0-msvc2017_64) | 213 | set(QT_VER qt-5.12.8-msvc2017_64) |
| 213 | else() | 214 | else() |
| 214 | message(FATAL_ERROR "No bundled Qt binaries for your toolchain. Disable YUZU_USE_BUNDLED_QT and provide your own.") | 215 | message(FATAL_ERROR "No bundled Qt binaries for your toolchain. Disable YUZU_USE_BUNDLED_QT and provide your own.") |
| 215 | endif() | 216 | endif() |
| @@ -224,6 +225,10 @@ if(ENABLE_QT) | |||
| 224 | if (YUZU_USE_QT_WEB_ENGINE) | 225 | if (YUZU_USE_QT_WEB_ENGINE) |
| 225 | find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets) | 226 | find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets) |
| 226 | endif() | 227 | endif() |
| 228 | |||
| 229 | if (ENABLE_QT_TRANSLATION) | ||
| 230 | find_package(Qt5 REQUIRED COMPONENTS LinguistTools ${QT_PREFIX_HINT}) | ||
| 231 | endif() | ||
| 227 | if (NOT Qt5_FOUND) | 232 | if (NOT Qt5_FOUND) |
| 228 | list(APPEND CONAN_REQUIRED_LIBS "qt/5.14.1@bincrafters/stable") | 233 | list(APPEND CONAN_REQUIRED_LIBS "qt/5.14.1@bincrafters/stable") |
| 229 | endif() | 234 | endif() |
| @@ -451,7 +456,7 @@ endif() | |||
| 451 | # against all the src files. This should be used before making a pull request. | 456 | # against all the src files. This should be used before making a pull request. |
| 452 | # ======================================================================= | 457 | # ======================================================================= |
| 453 | 458 | ||
| 454 | set(CLANG_FORMAT_POSTFIX "-6.0") | 459 | set(CLANG_FORMAT_POSTFIX "-10") |
| 455 | find_program(CLANG_FORMAT | 460 | find_program(CLANG_FORMAT |
| 456 | NAMES clang-format${CLANG_FORMAT_POSTFIX} | 461 | NAMES clang-format${CLANG_FORMAT_POSTFIX} |
| 457 | clang-format | 462 | clang-format |