diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b7ea86d8a..123a3082a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -29,16 +29,10 @@ option(YUZU_USE_BUNDLED_FFMPEG "Download/Build bundled FFmpeg" "${WIN32}") | |||
| 29 | 29 | ||
| 30 | option(YUZU_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OFF) | 30 | option(YUZU_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OFF) |
| 31 | 31 | ||
| 32 | option(YUZU_ENABLE_BOXCAT "Enable the Boxcat service, a yuzu high-level implementation of BCAT" ON) | ||
| 33 | |||
| 34 | option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) | 32 | option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) |
| 35 | 33 | ||
| 36 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) | 34 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) |
| 37 | 35 | ||
| 38 | if (NOT ENABLE_WEB_SERVICE) | ||
| 39 | set(YUZU_ENABLE_BOXCAT OFF) | ||
| 40 | endif() | ||
| 41 | |||
| 42 | # Default to a Release build | 36 | # Default to a Release build |
| 43 | get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | 37 | get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) |
| 44 | if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) | 38 | if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE) |
| @@ -243,7 +237,7 @@ yuzu_find_packages() | |||
| 243 | 237 | ||
| 244 | # Qt5 requires that we find components, so it doesn't fit our pretty little find package function | 238 | # Qt5 requires that we find components, so it doesn't fit our pretty little find package function |
| 245 | if(ENABLE_QT) | 239 | if(ENABLE_QT) |
| 246 | set(QT_VERSION 5.12) | 240 | set(QT_VERSION 5.15) |
| 247 | # We want to load the generated conan qt config so that we get the QT_ROOT var so that we can use the official | 241 | # We want to load the generated conan qt config so that we get the QT_ROOT var so that we can use the official |
| 248 | # Qt5Config inside the root folder instead of the conan generated one. | 242 | # Qt5Config inside the root folder instead of the conan generated one. |
| 249 | if(EXISTS ${CMAKE_BINARY_DIR}/qtConfig.cmake) | 243 | if(EXISTS ${CMAKE_BINARY_DIR}/qtConfig.cmake) |
| @@ -345,8 +339,8 @@ if(ENABLE_QT) | |||
| 345 | set(QT_PREFIX_HINT) | 339 | set(QT_PREFIX_HINT) |
| 346 | 340 | ||
| 347 | if(YUZU_USE_BUNDLED_QT) | 341 | if(YUZU_USE_BUNDLED_QT) |
| 348 | if ((MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1930) AND ARCHITECTURE_x86_64) | 342 | if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64) |
| 349 | set(QT_BUILD qt-5.12.8-msvc2017_64) | 343 | set(QT_BUILD qt-5.15.2-msvc2019_64) |
| 350 | elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND NOT MINGW AND ARCHITECTURE_x86_64) | 344 | elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND NOT MINGW AND ARCHITECTURE_x86_64) |
| 351 | set(QT_BUILD qt5_5_15_2) | 345 | set(QT_BUILD qt5_5_15_2) |
| 352 | else() | 346 | else() |
| @@ -375,7 +369,7 @@ endif() | |||
| 375 | if (ENABLE_SDL2) | 369 | if (ENABLE_SDL2) |
| 376 | if (YUZU_USE_BUNDLED_SDL2) | 370 | if (YUZU_USE_BUNDLED_SDL2) |
| 377 | # Detect toolchain and platform | 371 | # Detect toolchain and platform |
| 378 | if ((MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1930) AND ARCHITECTURE_x86_64) | 372 | if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64) |
| 379 | set(SDL2_VER "SDL2-2.0.16") | 373 | set(SDL2_VER "SDL2-2.0.16") |
| 380 | else() | 374 | else() |
| 381 | message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable YUZU_USE_BUNDLED_SDL2 and provide your own.") | 375 | message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable YUZU_USE_BUNDLED_SDL2 and provide your own.") |
| @@ -422,11 +416,6 @@ if (CONAN_REQUIRED_LIBS) | |||
| 422 | endif() | 416 | endif() |
| 423 | include(${CMAKE_BINARY_DIR}/conan.cmake) | 417 | include(${CMAKE_BINARY_DIR}/conan.cmake) |
| 424 | 418 | ||
| 425 | set(CONAN_LIB_OPTIONS | ||
| 426 | libzip:with_openssl=False | ||
| 427 | libzip:enable_windows_crypto=False | ||
| 428 | ) | ||
| 429 | |||
| 430 | conan_check(VERSION 1.24.0 REQUIRED) | 419 | conan_check(VERSION 1.24.0 REQUIRED) |
| 431 | 420 | ||
| 432 | # Manually add iconv to fix a dep conflict between qt and sdl2 | 421 | # Manually add iconv to fix a dep conflict between qt and sdl2 |
| @@ -473,7 +462,7 @@ if (CONAN_REQUIRED_LIBS) | |||
| 473 | if(ENABLE_QT) | 462 | if(ENABLE_QT) |
| 474 | list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}") | 463 | list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}") |
| 475 | list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}") | 464 | list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}") |
| 476 | find_package(Qt5 5.12 REQUIRED COMPONENTS Widgets) | 465 | find_package(Qt5 5.15 REQUIRED COMPONENTS Widgets) |
| 477 | if (YUZU_USE_QT_WEB_ENGINE) | 466 | if (YUZU_USE_QT_WEB_ENGINE) |
| 478 | find_package(Qt5 REQUIRED COMPONENTS WebEngineCore WebEngineWidgets) | 467 | find_package(Qt5 REQUIRED COMPONENTS WebEngineCore WebEngineWidgets) |
| 479 | endif() | 468 | endif() |