mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-10 20:53:45 -04:00
Merge 089b583740 into b081f800a4
This commit is contained in:
commit
be9a1e5c62
6 changed files with 30 additions and 7 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -106,3 +106,6 @@
|
|||
[submodule "externals/libretro-common"]
|
||||
path = externals/libretro-common/libretro-common
|
||||
url = https://github.com/libretro/libretro-common.git
|
||||
[submodule "dllwalker"]
|
||||
path = externals/dllwalker
|
||||
url = https://github.com/azahar-emu/dllwalker
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ cmake_policy(SET CMP0063 NEW)
|
|||
cmake_policy(SET CMP0127 NEW)
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
|
||||
|
||||
# Prefer building bundled dependencies as static instead of shared
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
|
||||
include(DownloadExternals)
|
||||
|
|
|
|||
8
externals/CMakeLists.txt
vendored
8
externals/CMakeLists.txt
vendored
|
|
@ -327,12 +327,8 @@ endif()
|
|||
# OpenSSL
|
||||
if (USE_SYSTEM_OPENSSL)
|
||||
find_package(OpenSSL 1.1)
|
||||
if (OPENSSL_FOUND)
|
||||
set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT OPENSSL_FOUND)
|
||||
set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
|
||||
else()
|
||||
# LibreSSL
|
||||
set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "")
|
||||
set(OPENSSLDIR "/etc/ssl/")
|
||||
|
|
|
|||
1
externals/dllwalker
vendored
Submodule
1
externals/dllwalker
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 0c35d5de533eb82480dce2a211112517f69010d4
|
||||
|
|
@ -48,6 +48,26 @@ if (APPLE)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND WIN32 AND MINGW)
|
||||
# TODO: Do this for all executables, not just citra_meta
|
||||
# TODO: Don't hardcode MXE directory to root?
|
||||
set(dllwalker_command "${CMAKE_SOURCE_DIR}/externals/dllwalker/dllwalker.rb"
|
||||
$<TARGET_FILE:citra_meta>
|
||||
/mxe/usr/x86_64-w64-mingw32.shared/bin/
|
||||
/mxe/usr/x86_64-w64-mingw32.shared/qt6/bin/)
|
||||
set(dll_list_filename "${CMAKE_CURRENT_BINARY_DIR}/required_dlls_list.txt")
|
||||
add_custom_command(TARGET citra_meta POST_BUILD
|
||||
COMMAND ${dllwalker_command} > ${dll_list_filename}
|
||||
)
|
||||
add_custom_command(TARGET citra_meta POST_BUILD
|
||||
COMMAND cat ${dll_list_filename} | xargs -I {} ${CMAKE_COMMAND} -E copy {} $<TARGET_FILE_DIR:citra_meta>
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "$<TARGET_FILE_DIR:citra_meta>/plugins/"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory /mxe/usr/x86_64-w64-mingw32.shared/qt6/plugins/ "$<TARGET_FILE_DIR:citra_meta>/plugins/"
|
||||
COMMAND_EXPAND_LISTS
|
||||
DEPENDS ${dll_list_filename}
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(citra_meta PRIVATE citra_common fmt)
|
||||
|
||||
if (ENABLE_QT)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ if (ENABLE_LIBRETRO)
|
|||
endif()
|
||||
|
||||
add_test(NAME tests COMMAND tests)
|
||||
if(NOT ANDROID)
|
||||
if(NOT ANDROID AND (CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME))
|
||||
catch_discover_tests(tests)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue