Compare commits

..

9 commits

Author SHA1 Message Date
2ca36e1bd7
[doc] fix line endings and update macos
All checks were successful
eden-license / license-header (pull_request) Successful in 33s
Signed-off-by: crueter <crueter@eden-emu.dev>
2025-09-07 19:16:06 -04:00
911ace690f
[cmake] CPMUtil: formatting, git_host, and more
I promise I'm a UI developer

- mbedtls can now be used as a system package
- zycore can now be used as a system package
- cleaned up dynarmic externals
- fixed libusb incorrectly showing as bundled
- add version/tag formatting to JSON
- add custom GIT_HOST option for packages
- moved some of my repos to my new git
- slightly better version identification
- combined VUL/VH since they are codependent (using my combo vendor)

This PR succeeds #383 since it includes it

Signed-off-by: crueter <crueter@eden-emu.dev>
2025-09-07 19:16:06 -04:00
9e313227be
oops
Signed-off-by: crueter <crueter@eden-emu.dev>
2025-09-07 19:16:06 -04:00
1399f32cf3
[ci] update header script for cmake
Signed-off-by: crueter <crueter@eden-emu.dev>
2025-09-07 19:16:06 -04:00
32024e4708
[cmake] chore: clean up linking, definitions, etc
general clean up of the currently very poorly organized linking/compile
def system. This is very incomplete and needs further work, but chances
are qt_common will mess with it so I will probably merge this into
qt_common.

Signed-off-by: crueter <crueter@eden-emu.dev>
2025-09-07 19:16:06 -04:00
da0823f46f
[cmake, doc] update freebsd docs & fix ext and bundled defaults
Signed-off-by: crueter <crueter@eden-emu.dev>
2025-09-07 19:16:06 -04:00
48ee7afce1
[cmake] Fix FreeBSD building process again 2025-09-07 19:16:06 -04:00
f6e47c8c97
Fix license headers 2025-09-07 19:15:58 -04:00
8cb98b0c41
[breakpad] enable Solaris crash dumps
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2025-09-07 19:15:58 -04:00
3 changed files with 10 additions and 5 deletions

View file

@ -658,7 +658,7 @@ if(ENABLE_QT)
set_target_properties(Qt6::Platform PROPERTIES INTERFACE_COMPILE_FEATURES "")
endif()
if (WIN32 AND YUZU_CRASH_DUMPS)
if (YUZU_CRASH_DUMPS)
set(BREAKPAD_VER "breakpad-c89f9dd")
download_bundled_external("breakpad/" ${BREAKPAD_VER} "breakpad-win" BREAKPAD_PREFIX "c89f9dd")

View file

@ -251,9 +251,7 @@ if (YUZU_CRASH_DUMPS)
breakpad.cpp
breakpad.h
)
target_link_libraries(yuzu PRIVATE libbreakpad_client)
target_compile_definitions(yuzu PRIVATE YUZU_CRASH_DUMPS)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")

View file

@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
@ -8,6 +11,8 @@
#include <client/windows/handler/exception_handler.h>
#elif defined(__linux__)
#include <client/linux/handler/exception_handler.h>
#elif defined(__sun__)
#include <client/solaris/handler/exception_handler.h>
#else
#error Minidump creation not supported on this platform
#endif
@ -49,7 +54,7 @@ static void PruneDumpDirectory(const std::filesystem::path& dump_path) {
}
}
#if defined(__linux__)
#ifdef __linux__
[[noreturn]] bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, void* context,
bool succeeded) {
// Prevent time- and space-consuming core dumps from being generated, as we have
@ -63,7 +68,7 @@ void InstallCrashHandler() {
const auto dump_path = GetEdenPath(Common::FS::EdenPath::CrashDumpsDir);
PruneDumpDirectory(dump_path);
#if defined(_WIN32)
#ifdef _WIN32
// TODO: If we switch to MinGW builds for Windows, this needs to be wrapped in a C API.
static google_breakpad::ExceptionHandler eh{dump_path, nullptr, nullptr, nullptr,
google_breakpad::ExceptionHandler::HANDLER_ALL};
@ -71,6 +76,8 @@ void InstallCrashHandler() {
static google_breakpad::MinidumpDescriptor descriptor{dump_path};
static google_breakpad::ExceptionHandler eh{descriptor, nullptr, DumpCallback,
nullptr, true, -1};
#elif defined(__sun__)
static google_breakpad::ExceptionHandler eh{dump_path, nullptr, DumpCallback, nullptr, true};
#endif
}