build: upgrade fmt and SDL2

Update fmt library to version 11.0.2 and make necessary adjustments:
- Replace fmt/format.h includes with fmt/ranges.h
- Add const qualifiers to formatter::format functions
- Update CMake to require fmt version 11

Additional dependency updates:
- Update SDL2 bundled version from 2.28.2 to 2.32.0
- Update catch2 to version 3.7.1
- Update vcpkg baseline to ca846b21276c9a3171074ac8d2b4f6516894a7d0
This commit is contained in:
Zephyron 2025-02-16 13:38:05 +10:00 committed by Mike Lothian
parent a525f2e317
commit fbe41afca4
75 changed files with 77 additions and 77 deletions

View File

@ -318,7 +318,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
# Enforce the search mode of non-required packages for better and shorter failure messages
find_package(Boost REQUIRED context)
find_package(enet MODULE)
find_package(fmt REQUIRED)
find_package(fmt 11 REQUIRED)
find_package(lz4 REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(Opus MODULE)
@ -405,7 +405,7 @@ if (ENABLE_SDL2)
if (YUZU_USE_BUNDLED_SDL2)
# Detect toolchain and platform
if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64)
set(SDL2_VER "SDL2-2.28.2")
set(SDL2_VER "SDL2-2.32.0")
else()
message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable YUZU_USE_BUNDLED_SDL2 and provide your own.")
endif()

2
externals/vcpkg vendored

@ -1 +1 @@
Subproject commit c82f74667287d3dc386bce81e44964370c91a289
Subproject commit ca846b21276c9a3171074ac8d2b4f6516894a7d0

View File

@ -152,7 +152,7 @@ android {
externalNativeBuild {
cmake {
version = "4.0.1"
version = "3.31.6"
path = file("../../../CMakeLists.txt")
}
}

View File

@ -8,7 +8,7 @@
#include <chrono>
#include <memory>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/common_types.h"

View File

@ -4,7 +4,7 @@
#include <string>
#include <utility>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/dynamic_library.h"

View File

@ -8,7 +8,7 @@
#include <cstddef>
#include <string>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/common_types.h"

View File

@ -7,7 +7,7 @@
#include <mutex>
#include <thread>
#include <fmt/format.h>
#include <fmt/ranges.h>
#ifdef _WIN32
#include <windows.h> // For OutputDebugStringW

View File

@ -5,7 +5,7 @@
#include <type_traits>
#include <fmt/format.h>
#include <fmt/ranges.h>
// adapted from https://github.com/fmtlib/fmt/issues/2704
// a generic formatter for enum classes

View File

@ -6,7 +6,7 @@
#include <algorithm>
#include <string_view>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <fmt/ranges.h>
#include "common/logging/formatter.h"

View File

@ -3,7 +3,7 @@
#include <cstdlib>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/fs/fs.h"
#include "common/fs/path_util.h"

View File

@ -5,7 +5,7 @@
#include <compare>
#include <type_traits>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"

View File

@ -5,7 +5,7 @@
#include <optional>
#include <random>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/tiny_mt.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2017 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "core/arm/dynarmic/arm_dynarmic_32.h"
#include "core/arm/dynarmic/dynarmic_cp15.h"

View File

@ -11,7 +11,7 @@
#include <string>
#include <variant>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "common/common_types.h"
#include "core/crypto/partition_data_manager.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/fs/path_util.h"
#include "core/file_sys/bis_factory.h"
#include "core/file_sys/registered_cache.h"

View File

@ -4,7 +4,7 @@
#pragma once
#include <array>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "common/common_types.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "core/file_sys/system_archive/ng_word.h"
#include "core/file_sys/vfs/vfs_vector.h"

View File

@ -4,7 +4,7 @@
#include <cstring>
#include <random>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"

View File

@ -3,7 +3,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "common/common_types.h"

View File

@ -6,7 +6,7 @@
#include <cstdlib>
#include <cstring>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/logging/log.h"
#include "common/scope_exit.h"

View File

@ -4,7 +4,7 @@
#include <utility>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "core/core.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/service/ipc_helpers.h"

View File

@ -5,7 +5,7 @@
#include <array>
#include <chrono>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/intrusive_list.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/logging/log.h"
#include "common/settings.h"

View File

@ -6,7 +6,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/microprofile.h"
#include "common/socket_types.h"

View File

@ -9,7 +9,7 @@
#include <sstream>
#include <thread>
#include <fmt/chrono.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"
#include "common/fs/path_util.h"

View File

@ -6,7 +6,7 @@
#include <iomanip>
#include <fmt/chrono.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <nlohmann/json.hpp>
#include "common/fs/file.h"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <algorithm>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "hid_core/frontend/emulated_devices.h"
#include "hid_core/frontend/input_converter.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/param_package.h"
#include "input_common/drivers/camera.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2014 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <libusb.h>
#include "common/logging/log.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/param_package.h"
#include "common/polyfill_ranges.h"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <thread>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <math.h>
#include "common/param_package.h"

View File

@ -3,7 +3,7 @@
#include <cstring>
#include <sstream>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs_types.h"

View File

@ -3,7 +3,7 @@
#include <random>
#include <boost/asio.hpp>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/param_package.h"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include <cstring>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/fs/file.h"
#include "common/fs/fs.h"

View File

@ -7,7 +7,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/backend/glasm/reg_alloc.h"
#include "shader_recompiler/stage.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/backend/glasm/reg_alloc.h"
#include "shader_recompiler/exception.h"

View File

@ -5,7 +5,7 @@
#include <bitset>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/bit_cast.h"
#include "common/bit_field.h"

View File

@ -7,7 +7,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/backend/glsl/var_alloc.h"
#include "shader_recompiler/stage.h"

View File

@ -4,7 +4,7 @@
#include <string>
#include <string_view>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/backend/glsl/var_alloc.h"
#include "shader_recompiler/exception.h"

View File

@ -8,7 +8,7 @@
#include <boost/container/static_vector.hpp>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/div_ceil.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/exception.h"
#include "shader_recompiler/frontend/ir/attribute.h"

View File

@ -3,7 +3,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"

View File

@ -3,7 +3,7 @@
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/frontend/ir/condition.h"

View File

@ -5,7 +5,7 @@
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "shader_recompiler/frontend/ir/flow_test.h"

View File

@ -3,7 +3,7 @@
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/frontend/ir/flow_test.h"

View File

@ -4,7 +4,7 @@
#pragma once
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"

View File

@ -6,7 +6,7 @@
#include <algorithm>
#include <array>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/polyfill_ranges.h"
#include "shader_recompiler/frontend/ir/type.h"

View File

@ -3,7 +3,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
namespace Shader::IR {

View File

@ -4,7 +4,7 @@
#include <map>
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "shader_recompiler/frontend/ir/basic_block.h"
#include "shader_recompiler/frontend/ir/program.h"

View File

@ -3,7 +3,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "shader_recompiler/exception.h"

View File

@ -5,7 +5,7 @@
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_funcs.h"
#include "shader_recompiler/exception.h"

View File

@ -7,7 +7,7 @@
#include <string>
#include <utility>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/polyfill_ranges.h"
#include "shader_recompiler/exception.h"

View File

@ -3,7 +3,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "shader_recompiler/exception.h"

View File

@ -3,7 +3,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
namespace Shader::Maxwell {

View File

@ -8,7 +8,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <boost/intrusive/list.hpp>

View File

@ -3,7 +3,7 @@
#include <string_view>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/logging/log.h"

View File

@ -5,7 +5,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/alignment.h"
#include "common/assert.h"

View File

@ -5,7 +5,7 @@
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "video_core/surface.h"
#include "video_core/texture_cache/types.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/assert.h"
#include "common/settings.h"

View File

@ -10,7 +10,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/fs/file.h"

View File

@ -3,7 +3,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "network/verify_user.h"
#include "web_service/web_backend.h"

View File

@ -5,7 +5,7 @@
#include <mutex>
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#ifdef __GNUC__
#pragma GCC diagnostic push

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <QIcon>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/scm_rev.h"
#include "ui_aboutdialog.h"
#include "yuzu/about_dialog.h"

View File

@ -3,7 +3,7 @@
#include <algorithm>
#include <thread>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <nlohmann/json.hpp>
#include "common/assert.h"

View File

@ -3,7 +3,7 @@
#include <algorithm>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "yuzu/compatibility_list.h"

View File

@ -8,7 +8,7 @@
#include <utility>
#include <vector>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <QAbstractButton>
#include <QCheckBox>

View File

@ -6,7 +6,7 @@
#include <QMenu>
#include <QMessageBox>
#include <QTimer>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "configuration/qt_config.h"
#include "hid_core/frontend/emulated_controller.h"

View File

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/fs/fs.h"
#include "common/fs/path_util.h"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <array>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "yuzu/debugger/wait_tree.h"
#include "yuzu/uisettings.h"

View File

@ -9,7 +9,7 @@
#include <QNetworkReply>
#include <discord_rpc.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/string_util.h"

View File

@ -13,7 +13,7 @@
#include <QMenu>
#include <QThreadPool>
#include <QToolButton>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/common_types.h"
#include "common/logging/log.h"
#include "core/core.h"

View File

@ -8,7 +8,7 @@
#define SDL_MAIN_HANDLED
#include <SDL.h>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <glad/glad.h>
#include "common/logging/log.h"
#include "common/scm_rev.h"

View File

@ -5,7 +5,7 @@
#include <memory>
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/scm_rev.h"

View File

@ -5,7 +5,7 @@
#include <memory>
#include <string>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include "common/logging/log.h"
#include "common/scm_rev.h"

View File

@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "yuzu",
"builtin-baseline": "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3",
"builtin-baseline": "ca846b21276c9a3171074ac8d2b4f6516894a7d0",
"version": "1.0",
"dependencies": [
"boost-algorithm",
@ -55,7 +55,7 @@
"overrides": [
{
"name": "catch2",
"version": "3.3.1"
"version": "3.7.1"
},
{
"name": "fmt",