mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 11:45:47 +00:00
[cmake] Fix QuaZip once and for all (#71)
(and core5compat) Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/71
This commit is contained in:
parent
a538126eb7
commit
108daeeb39
10 changed files with 482 additions and 38 deletions
|
@ -462,8 +462,8 @@ if (WIN32 AND NOT YUZU_USE_BUNDLED_QT AND QT_VERSION VERSION_GREATER_EQUAL 6)
|
|||
endif()
|
||||
|
||||
if (YUZU_USE_BUNDLED_QT)
|
||||
include(CopyYuzuQt6Deps)
|
||||
copy_yuzu_Qt6_deps(yuzu)
|
||||
include(CopyYuzuQt6Deps)
|
||||
copy_yuzu_Qt6_deps(yuzu)
|
||||
endif()
|
||||
|
||||
if (ENABLE_SDL2)
|
||||
|
@ -496,6 +496,6 @@ endif()
|
|||
|
||||
# Extra deps
|
||||
add_subdirectory(externals)
|
||||
target_link_libraries(yuzu PRIVATE QuaZip::QuaZip)
|
||||
target_link_libraries(yuzu PRIVATE QuaZip::QuaZip Qt6::Core5Compat)
|
||||
|
||||
create_target_directory_groups(yuzu)
|
||||
|
|
23
src/yuzu/externals/CMakeLists.txt
vendored
23
src/yuzu/externals/CMakeLists.txt
vendored
|
@ -5,9 +5,6 @@ set(BUILD_TESTING OFF)
|
|||
set(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
# QuaZip
|
||||
set(QUAZIP_QT_MAJOR_VERSION 6)
|
||||
set(QUAZIP_BZIP2 OFF)
|
||||
|
||||
include(CPM)
|
||||
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm)
|
||||
set(CPM_USE_LOCAL_PACKAGES ON)
|
||||
|
@ -18,14 +15,14 @@ CPMAddPackage(
|
|||
GIT_REPOSITORY "https://github.com/stachenov/quazip.git"
|
||||
GIT_TAG v1.5
|
||||
PATCHES
|
||||
${CMAKE_SOURCE_DIR}/.ci/patch/0001-quazip-strict.patch
|
||||
${CMAKE_SOURCE_DIR}/.ci/patch/0002-quazip-fetchcontent.patch
|
||||
)
|
||||
${CMAKE_SOURCE_DIR}/.patch/quazip/0001-strict.patch
|
||||
${CMAKE_SOURCE_DIR}/.patch/quazip/0002-oldstyle.patch
|
||||
${CMAKE_SOURCE_DIR}/.patch/quazip/0003-predecls.patch
|
||||
${CMAKE_SOURCE_DIR}/.patch/quazip/0004-qt6-only.patch
|
||||
|
||||
if (NOT MSVC AND NOT "QuaZip-Qt6" IN_LIST CPM_PACKAGES)
|
||||
message(STATUS "QUAZIP DIR: ${CPM_PACKAGES}")
|
||||
target_compile_options(QuaZip PRIVATE
|
||||
-Wno-error=shadow
|
||||
-Wno-error=missing-declarations
|
||||
)
|
||||
endif()
|
||||
# thanks to 0004-qt6-only.patch, this isn't needed,
|
||||
# but we keep it since the patch is "technically" optional
|
||||
OPTIONS
|
||||
"QUAZIP_QT_MAJOR_VERSION 6"
|
||||
"QUAZIP_BZIP2 OFF"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue