mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 06:39:58 +00:00
Add support for linking against system opus
This commit is contained in:
parent
e242f16986
commit
78759d98dc
2 changed files with 5 additions and 3 deletions
|
@ -33,6 +33,8 @@ option(ENABLE_CUBEB "Enables the cubeb audio backend" ON)
|
||||||
|
|
||||||
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
|
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
|
||||||
|
|
||||||
|
option(YUZU_USE_BUNDLED_OPUS "Compile bundled opus" ON)
|
||||||
|
|
||||||
# Default to a Release build
|
# Default to a Release build
|
||||||
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||||
if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
|
if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
|
||||||
|
|
6
externals/CMakeLists.txt
vendored
6
externals/CMakeLists.txt
vendored
|
@ -116,8 +116,8 @@ if (ENABLE_WEB_SERVICE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Opus
|
# Opus
|
||||||
find_package(opus 1.3)
|
if (YUZU_USE_BUNDLED_OPUS)
|
||||||
if (NOT opus_FOUND)
|
|
||||||
message(STATUS "opus 1.3 or newer not found, falling back to externals")
|
|
||||||
add_subdirectory(opus EXCLUDE_FROM_ALL)
|
add_subdirectory(opus EXCLUDE_FROM_ALL)
|
||||||
|
else()
|
||||||
|
find_package(opus 1.3 REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue