[cmake] fix android and linux
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
b73a010065
commit
97a11fc8dc
5 changed files with 9 additions and 14 deletions
|
@ -690,7 +690,10 @@ if (ENABLE_SDL2)
|
||||||
elseif (YUZU_USE_EXTERNAL_SDL2)
|
elseif (YUZU_USE_EXTERNAL_SDL2)
|
||||||
message(STATUS "Using SDL2 from externals.")
|
message(STATUS "Using SDL2 from externals.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT YUZU_USE_EXTERNAL_SDL2)
|
||||||
find_package(SDL2 2.26.4 REQUIRED)
|
find_package(SDL2 2.26.4 REQUIRED)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# List of all FFmpeg components required
|
# List of all FFmpeg components required
|
||||||
|
|
|
@ -360,7 +360,7 @@ function(AddCIPackage)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DEFINED ARTIFACT_DIR)
|
if (DEFINED ARTIFACT_DIR)
|
||||||
include(${ARTIFACT_DIR}/${ARTIFACT_NAME}.cmake)
|
include(${ARTIFACT_DIR}/${ARTIFACT_CMAKE}.cmake)
|
||||||
|
|
||||||
# Overrides find package
|
# Overrides find package
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
|
|
2
externals/CMakeLists.txt
vendored
2
externals/CMakeLists.txt
vendored
|
@ -95,7 +95,7 @@ if (ENABLE_LIBUSB AND NOT TARGET libusb::usb)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# SDL2
|
# SDL2
|
||||||
if (NOT YUZU_USE_BUNDLED_SDL2)
|
if (YUZU_USE_EXTERNAL_SDL2)
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
# Yuzu itself needs: Atomic Audio Events Joystick Haptic Sensor Threads Timers
|
# Yuzu itself needs: Atomic Audio Events Joystick Haptic Sensor Threads Timers
|
||||||
# Since 2.0.18 Atomic+Threads required for HIDAPI/libusb (see https://github.com/libsdl-org/SDL/issues/5095)
|
# Since 2.0.18 Atomic+Threads required for HIDAPI/libusb (see https://github.com/libsdl-org/SDL/issues/5095)
|
||||||
|
|
|
@ -1251,11 +1251,7 @@ if(ENABLE_OPENSSL)
|
||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
find_package(OpenSSL REQUIRED)
|
||||||
|
|
||||||
if (OpenSSL_ADDED)
|
target_link_libraries(core PRIVATE OpenSSL::SSL OpenSSL::Crypto)
|
||||||
link_openssl(core)
|
|
||||||
else()
|
|
||||||
target_link_libraries(core PRIVATE OpenSSL::SSL)
|
|
||||||
endif()
|
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
target_sources(core PRIVATE
|
target_sources(core PRIVATE
|
||||||
hle/service/ssl/ssl_backend_securetransport.cpp)
|
hle/service/ssl/ssl_backend_securetransport.cpp)
|
||||||
|
|
|
@ -18,12 +18,8 @@ create_target_directory_groups(web_service)
|
||||||
target_include_directories(web_service PUBLIC ${cpp-jwt_SOURCE_DIR}/include)
|
target_include_directories(web_service PUBLIC ${cpp-jwt_SOURCE_DIR}/include)
|
||||||
target_link_libraries(web_service PRIVATE common network nlohmann_json::nlohmann_json httplib::httplib cpp-jwt::cpp-jwt)
|
target_link_libraries(web_service PRIVATE common network nlohmann_json::nlohmann_json httplib::httplib cpp-jwt::cpp-jwt)
|
||||||
|
|
||||||
if (OpenSSL_ADDED)
|
find_package(OpenSSL REQUIRED)
|
||||||
link_openssl(web_service)
|
target_link_libraries(web_service PRIVATE OpenSSL::SSL OpenSSL::Crypto)
|
||||||
else()
|
|
||||||
find_package(OpenSSL REQUIRED)
|
|
||||||
target_link_libraries(web_service PRIVATE OpenSSL::SSL)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (YUZU_USE_PRECOMPILED_HEADERS)
|
if (YUZU_USE_PRECOMPILED_HEADERS)
|
||||||
target_precompile_headers(web_service PRIVATE precompiled_headers.h)
|
target_precompile_headers(web_service PRIVATE precompiled_headers.h)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue