mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Disable 3rdparty FAudio if the SDL version is not available
This commit is contained in:
parent
b579e45ed7
commit
553e4b28bf
25
3rdparty/CMakeLists.txt
vendored
25
3rdparty/CMakeLists.txt
vendored
@ -222,21 +222,28 @@ set(FAUDIO_TARGET 3rdparty_dummy_lib)
|
|||||||
if(USE_FAUDIO)
|
if(USE_FAUDIO)
|
||||||
# FAudio depends on SDL2
|
# FAudio depends on SDL2
|
||||||
find_package(SDL2)
|
find_package(SDL2)
|
||||||
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.12)
|
if (USE_SYSTEM_FAUDIO)
|
||||||
message(WARNING
|
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.12)
|
||||||
"-- RPCS3: FAudio requires SDL 2.0.9 or newer. Please note, this warning"
|
message(WARNING
|
||||||
"can also be displayed with SDL2 versions between 2.0.9-2.0.12, as the"
|
"-- RPCS3: System FAudio requires SDL 2.0.9 or newer. Please note, this warning"
|
||||||
"CMake config files are not correctly installed. Since a valid SDL2"
|
"can also be displayed with SDL2 versions between 2.0.9-2.0.12, as the"
|
||||||
">=2.0.9 version cannot be found, building with FAudio will be skipped.")
|
"CMake config files are not correctly installed. Since a valid SDL2"
|
||||||
set(USE_FAUDIO False)
|
">=2.0.9 version cannot be found, building with FAudio will be skipped.")
|
||||||
else()
|
set(USE_FAUDIO False)
|
||||||
if (USE_SYSTEM_FAUDIO)
|
else()
|
||||||
message(STATUS "RPCS3: Using system FAudio")
|
message(STATUS "RPCS3: Using system FAudio")
|
||||||
find_package(FAudio REQUIRED CONFIGS FAudioConfig.cmake FAudio-config.cmake)
|
find_package(FAudio REQUIRED CONFIGS FAudioConfig.cmake FAudio-config.cmake)
|
||||||
add_library(3rdparty_FAudio INTERFACE)
|
add_library(3rdparty_FAudio INTERFACE)
|
||||||
target_link_libraries(3rdparty_FAudio INTERFACE FAudio)
|
target_link_libraries(3rdparty_FAudio INTERFACE FAudio)
|
||||||
target_compile_definitions(3rdparty_FAudio INTERFACE -DHAVE_FAUDIO)
|
target_compile_definitions(3rdparty_FAudio INTERFACE -DHAVE_FAUDIO)
|
||||||
set(FAUDIO_TARGET 3rdparty_FAudio)
|
set(FAUDIO_TARGET 3rdparty_FAudio)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.24.0)
|
||||||
|
message(WARNING
|
||||||
|
"-- RPCS3: 3rdparty FAudio requires SDL 2.24.0 or newer. Since a valid SDL2"
|
||||||
|
">=2.24.0 version cannot be found, building with FAudio will be skipped.")
|
||||||
|
set(USE_FAUDIO False)
|
||||||
else()
|
else()
|
||||||
message(STATUS "RPCS3: Using builtin FAudio")
|
message(STATUS "RPCS3: Using builtin FAudio")
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared library")
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared library")
|
||||||
|
Loading…
Reference in New Issue
Block a user