Browse Source
[dynarmic, qt] fix build with QuaZip <=1.4 and fmt v9 (#2755)
[dynarmic, qt] fix build with QuaZip <=1.4 and fmt v9 (#2755)
Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2755pull/2757/head
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
14 changed files with 108 additions and 55 deletions
-
55.patch/mcl/0001-assert-macro.patch
-
42CMakeModules/FindDiscordRPC.cmake
-
10src/common/logging/log.h
-
3src/dynarmic/externals/cpmfile.json
-
5src/dynarmic/src/dynarmic/backend/arm64/emit_arm64.cpp
-
5src/dynarmic/src/dynarmic/backend/riscv64/emit_riscv64.cpp
-
2src/dynarmic/src/dynarmic/backend/x64/a32_emit_x64.cpp
-
2src/dynarmic/src/dynarmic/backend/x64/a64_emit_x64.cpp
-
2src/dynarmic/src/dynarmic/backend/x64/emit_x64.cpp
-
8src/dynarmic/src/dynarmic/ir/opcodes.h
-
1src/qt_common/config/shared_translation.h
-
2src/qt_common/qt_compat.h
-
15src/qt_common/util/compress.cpp
-
11src/qt_common/util/content.cpp
@ -0,0 +1,55 @@ |
|||||
|
diff --git a/include/mcl/assert.hpp b/include/mcl/assert.hpp
|
||||
|
index f77dbe7..9ec0b9c 100644
|
||||
|
--- a/include/mcl/assert.hpp
|
||||
|
+++ b/include/mcl/assert.hpp
|
||||
|
@@ -23,8 +23,11 @@ template<typename... Ts>
|
||||
|
|
||||
|
} // namespace mcl::detail |
||||
|
|
||||
|
+#ifndef UNREACHABLE
|
||||
|
#define UNREACHABLE() ASSERT_FALSE("Unreachable code!") |
||||
|
+#endif
|
||||
|
|
||||
|
+#ifndef ASSERT
|
||||
|
#define ASSERT(expr) \ |
||||
|
[&] { \ |
||||
|
if (std::is_constant_evaluated()) { \ |
||||
|
@@ -37,7 +40,9 @@ template<typename... Ts>
|
||||
|
} \ |
||||
|
} \ |
||||
|
}() |
||||
|
+#endif
|
||||
|
|
||||
|
+#ifndef ASSERT_MSG
|
||||
|
#define ASSERT_MSG(expr, ...) \ |
||||
|
[&] { \ |
||||
|
if (std::is_constant_evaluated()) { \ |
||||
|
@@ -50,13 +55,24 @@ template<typename... Ts>
|
||||
|
} \ |
||||
|
} \ |
||||
|
}() |
||||
|
+#endif
|
||||
|
|
||||
|
+#ifndef ASSERT_FALSE
|
||||
|
#define ASSERT_FALSE(...) ::mcl::detail::assert_terminate("false", __VA_ARGS__) |
||||
|
+#endif
|
||||
|
|
||||
|
#if defined(NDEBUG) || defined(MCL_IGNORE_ASSERTS) |
||||
|
-# define DEBUG_ASSERT(expr) ASSUME(expr)
|
||||
|
-# define DEBUG_ASSERT_MSG(expr, ...) ASSUME(expr)
|
||||
|
+# ifndef DEBUG_ASSERT
|
||||
|
+# define DEBUG_ASSERT(expr) ASSUME(expr)
|
||||
|
+# endif
|
||||
|
+# ifndef DEBUG_ASSERT_MSG
|
||||
|
+# define DEBUG_ASSERT_MSG(expr, ...) ASSUME(expr)
|
||||
|
+# endif
|
||||
|
#else |
||||
|
-# define DEBUG_ASSERT(expr) ASSERT(expr)
|
||||
|
-# define DEBUG_ASSERT_MSG(expr, ...) ASSERT_MSG(expr, __VA_ARGS__)
|
||||
|
+# ifndef DEBUG_ASSERT
|
||||
|
+# define DEBUG_ASSERT(expr) ASSERT(expr)
|
||||
|
+# endif
|
||||
|
+# ifndef DEBUG_ASSERT_MSG
|
||||
|
+# define DEBUG_ASSERT_MSG(expr, ...) ASSERT_MSG(expr, __VA_ARGS__)
|
||||
|
+# endif
|
||||
|
#endif |
||||
@ -1,27 +1,33 @@ |
|||||
|
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project |
||||
|
# SPDX-License-Identifier: GPL-3.0-or-later |
||||
|
|
||||
# SPDX-FileCopyrightText: 2022 Alexandre Bouvier <contact@amb.tf> |
# SPDX-FileCopyrightText: 2022 Alexandre Bouvier <contact@amb.tf> |
||||
# |
# |
||||
# SPDX-License-Identifier: GPL-3.0-or-later |
# SPDX-License-Identifier: GPL-3.0-or-later |
||||
|
|
||||
find_path(DiscordRPC_INCLUDE_DIR discord_rpc.h) |
|
||||
|
find_package(DiscordRPC CONFIG QUIET) |
||||
|
|
||||
find_library(DiscordRPC_LIBRARY discord-rpc) |
|
||||
|
if (NOT DiscordRPC_FOUND) |
||||
|
find_path(DiscordRPC_INCLUDE_DIR discord_rpc.h) |
||||
|
find_library(DiscordRPC_LIBRARY discord-rpc) |
||||
|
|
||||
include(FindPackageHandleStandardArgs) |
|
||||
find_package_handle_standard_args(DiscordRPC |
|
||||
REQUIRED_VARS |
|
||||
DiscordRPC_LIBRARY |
|
||||
DiscordRPC_INCLUDE_DIR |
|
||||
) |
|
||||
|
include(FindPackageHandleStandardArgs) |
||||
|
find_package_handle_standard_args(DiscordRPC |
||||
|
REQUIRED_VARS |
||||
|
DiscordRPC_LIBRARY |
||||
|
DiscordRPC_INCLUDE_DIR |
||||
|
) |
||||
|
|
||||
if (DiscordRPC_FOUND AND NOT TARGET DiscordRPC::discord-rpc) |
|
||||
add_library(DiscordRPC::discord-rpc UNKNOWN IMPORTED) |
|
||||
set_target_properties(DiscordRPC::discord-rpc PROPERTIES |
|
||||
IMPORTED_LOCATION "${DiscordRPC_LIBRARY}" |
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${DiscordRPC_INCLUDE_DIR}" |
|
||||
|
if (DiscordRPC_FOUND AND NOT TARGET DiscordRPC::discord-rpc) |
||||
|
add_library(DiscordRPC::discord-rpc UNKNOWN IMPORTED) |
||||
|
set_target_properties(DiscordRPC::discord-rpc PROPERTIES |
||||
|
IMPORTED_LOCATION "${DiscordRPC_LIBRARY}" |
||||
|
INTERFACE_INCLUDE_DIRECTORIES "${DiscordRPC_INCLUDE_DIR}" |
||||
|
) |
||||
|
endif() |
||||
|
|
||||
|
mark_as_advanced( |
||||
|
DiscordRPC_INCLUDE_DIR |
||||
|
DiscordRPC_LIBRARY |
||||
) |
) |
||||
endif() |
endif() |
||||
|
|
||||
mark_as_advanced( |
|
||||
DiscordRPC_INCLUDE_DIR |
|
||||
DiscordRPC_LIBRARY |
|
||||
) |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue