mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 17:35:46 +00:00
[cmake, desktop] Fix <6.9 build error and quazip fetching (#67)
Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/67
This commit is contained in:
parent
d7574b2878
commit
a538126eb7
4 changed files with 34 additions and 25 deletions
|
@ -495,29 +495,7 @@ if (YUZU_ROOM)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Extra deps
|
# Extra deps
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
add_subdirectory(externals)
|
||||||
|
|
||||||
include(CPM)
|
|
||||||
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm)
|
|
||||||
set(CPM_USE_LOCAL_PACKAGES ON)
|
|
||||||
|
|
||||||
set(QUAZIP_QT_MAJOR_VERSION 6)
|
|
||||||
set(QUAZIP_BZIP2 OFF)
|
|
||||||
|
|
||||||
CPMAddPackage(
|
|
||||||
URI "gh:stachenov/quazip@1.5"
|
|
||||||
PATCHES
|
|
||||||
${CMAKE_SOURCE_DIR}/.ci/patch/0001-quazip-strict.patch
|
|
||||||
${CMAKE_SOURCE_DIR}/.ci/patch/0002-quazip-fetchcontent.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
if (NOT MSVC)
|
|
||||||
target_compile_options(QuaZip PRIVATE
|
|
||||||
-Wno-error=shadow
|
|
||||||
-Wno-error=missing-declarations
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_link_libraries(yuzu PRIVATE QuaZip::QuaZip)
|
target_link_libraries(yuzu PRIVATE QuaZip::QuaZip)
|
||||||
|
|
||||||
create_target_directory_groups(yuzu)
|
create_target_directory_groups(yuzu)
|
||||||
|
|
31
src/yuzu/externals/CMakeLists.txt
vendored
Normal file
31
src/yuzu/externals/CMakeLists.txt
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Disable tests in all externals supporting the standard option name
|
||||||
|
set(BUILD_TESTING OFF)
|
||||||
|
|
||||||
|
# Build only static externals
|
||||||
|
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)
|
||||||
|
|
||||||
|
CPMAddPackage(
|
||||||
|
NAME QuaZip-Qt6
|
||||||
|
VERSION 1.3
|
||||||
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
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()
|
|
@ -4443,7 +4443,7 @@ void GMainWindow::OnInstallFirmwareFromZIP()
|
||||||
QMessageBox::warning(this, tr("Firmware cleanup failed"),
|
QMessageBox::warning(this, tr("Firmware cleanup failed"),
|
||||||
tr("Failed to clean up extracted firmware cache.\n"
|
tr("Failed to clean up extracted firmware cache.\n"
|
||||||
"Check write permissions in the system temp directory and try again.\nOS reported error: %1")
|
"Check write permissions in the system temp directory and try again.\nOS reported error: %1")
|
||||||
.arg(ec.message()));
|
.arg(QString::fromStdString(ec.message())));
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue