mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Fix for new versions of magic_enum + cleanup
This commit is contained in:
parent
e596e9350b
commit
c13acef43f
200
externals/CMakeLists.txt
vendored
200
externals/CMakeLists.txt
vendored
@ -3,10 +3,7 @@
|
|||||||
|
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
set(BUILD_TESTING OFF)
|
set(BUILD_TESTING OFF)
|
||||||
set_directory_properties(PROPERTIES
|
set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL ON SYSTEM ON)
|
||||||
EXCLUDE_FROM_ALL ON
|
|
||||||
SYSTEM ON
|
|
||||||
)
|
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
# Silence "deprecation" warnings
|
# Silence "deprecation" warnings
|
||||||
@ -20,11 +17,6 @@ if (NOT TARGET Boost::headers)
|
|||||||
add_subdirectory(ext-boost)
|
add_subdirectory(ext-boost)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# fmtlib
|
|
||||||
if (NOT TARGET fmt::fmt)
|
|
||||||
add_subdirectory(fmt)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MSVC)
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MSVC)
|
||||||
# If it is clang and MSVC we will add a static lib
|
# If it is clang and MSVC we will add a static lib
|
||||||
# CryptoPP
|
# CryptoPP
|
||||||
@ -35,51 +27,52 @@ else()
|
|||||||
if (NOT TARGET cryptopp::cryptopp)
|
if (NOT TARGET cryptopp::cryptopp)
|
||||||
set(CRYPTOPP_INSTALL OFF)
|
set(CRYPTOPP_INSTALL OFF)
|
||||||
set(CRYPTOPP_BUILD_TESTING OFF)
|
set(CRYPTOPP_BUILD_TESTING OFF)
|
||||||
set(CRYPTOPP_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/cryptopp/)
|
set(CRYPTOPP_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/cryptopp)
|
||||||
add_subdirectory(cryptopp-cmake)
|
add_subdirectory(cryptopp-cmake)
|
||||||
file(COPY cryptopp DESTINATION cryptopp FILES_MATCHING PATTERN "*.h")
|
file(COPY cryptopp DESTINATION cryptopp FILES_MATCHING PATTERN "*.h")
|
||||||
target_include_directories(cryptopp INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/cryptopp")
|
target_include_directories(cryptopp INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/cryptopp")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
# Date
|
||||||
|
if (NOT TARGET date::date-tz)
|
||||||
|
option(BUILD_TZ_LIB "" ON)
|
||||||
|
option(USE_SYSTEM_TZ_DB "" ON)
|
||||||
|
add_subdirectory(date)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Dear ImGui
|
||||||
|
add_library(Dear_ImGui
|
||||||
|
dear_imgui/imgui.cpp
|
||||||
|
dear_imgui/imgui_demo.cpp
|
||||||
|
dear_imgui/imgui_draw.cpp
|
||||||
|
dear_imgui/imgui_internal.h
|
||||||
|
dear_imgui/imgui_tables.cpp
|
||||||
|
dear_imgui/imgui_widgets.cpp)
|
||||||
|
target_include_directories(Dear_ImGui INTERFACE dear_imgui)
|
||||||
|
|
||||||
|
# Discord RPC
|
||||||
|
if (ENABLE_DISCORD_RPC)
|
||||||
|
set(BUILD_EXAMPLES OFF)
|
||||||
|
add_subdirectory(discord-rpc)
|
||||||
|
target_include_directories(discord-rpc INTERFACE discord-rpc/include)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# FFmpeg
|
||||||
if (NOT TARGET FFmpeg::ffmpeg)
|
if (NOT TARGET FFmpeg::ffmpeg)
|
||||||
add_subdirectory(ffmpeg-core)
|
add_subdirectory(ffmpeg-core)
|
||||||
add_library(FFmpeg::ffmpeg ALIAS ffmpeg)
|
add_library(FFmpeg::ffmpeg ALIAS ffmpeg)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Zlib-Ng
|
# fmt
|
||||||
if (NOT TARGET zlib-ng::zlib)
|
if (NOT TARGET fmt::fmt)
|
||||||
set(ZLIB_ENABLE_TESTS OFF)
|
add_subdirectory(fmt)
|
||||||
set(WITH_GTEST OFF)
|
|
||||||
set(WITH_NEW_STRATEGIES ON)
|
|
||||||
set(WITH_NATIVE_INSTRUCTIONS ON)
|
|
||||||
add_subdirectory(zlib-ng)
|
|
||||||
add_library(zlib-ng::zlib ALIAS zlib)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# SDL3
|
# GCN Headers
|
||||||
if (NOT TARGET SDL3::SDL3)
|
add_subdirectory(gcn)
|
||||||
set(SDL_PIPEWIRE OFF)
|
|
||||||
add_subdirectory(sdl3)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# vulkan-headers
|
|
||||||
if (NOT TARGET Vulkan::Headers)
|
|
||||||
set(VULKAN_HEADERS_ENABLE_MODULE OFF)
|
|
||||||
add_subdirectory(vulkan-headers)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# VMA
|
|
||||||
if (NOT TARGET GPUOpen::VulkanMemoryAllocator)
|
|
||||||
add_subdirectory(vma)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# RenderDoc
|
|
||||||
if (NOT TARGET RenderDoc::API)
|
|
||||||
add_library(renderdoc INTERFACE)
|
|
||||||
target_include_directories(renderdoc INTERFACE ./renderdoc)
|
|
||||||
add_library(RenderDoc::API ALIAS renderdoc)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# glslang
|
# glslang
|
||||||
if (NOT TARGET glslang::glslang)
|
if (NOT TARGET glslang::glslang)
|
||||||
@ -95,44 +88,40 @@ if (NOT TARGET glslang::glslang)
|
|||||||
target_include_directories(SPIRV INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/glslang")
|
target_include_directories(SPIRV INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/glslang")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Robin-map
|
# half
|
||||||
if (NOT TARGET tsl::robin_map)
|
if (NOT TARGET half::half)
|
||||||
add_subdirectory(robin-map)
|
add_library(half INTERFACE)
|
||||||
endif()
|
target_include_directories(half INTERFACE half/include)
|
||||||
|
add_library(half::half ALIAS half)
|
||||||
# Xbyak
|
|
||||||
if (NOT TARGET xbyak::xbyak)
|
|
||||||
add_subdirectory(xbyak)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# MagicEnum
|
# MagicEnum
|
||||||
if (NOT TARGET magic_enum::magic_enum)
|
if (NOT TARGET magic_enum::magic_enum)
|
||||||
add_subdirectory(magic_enum)
|
add_subdirectory(magic_enum)
|
||||||
|
target_include_directories(magic_enum INTERFACE magic_enum/include/magic_enum)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Toml11
|
# pugixml
|
||||||
if (NOT TARGET toml11::toml11)
|
if (NOT TARGET pugixml::pugixml)
|
||||||
add_subdirectory(toml11)
|
add_subdirectory(pugixml)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# xxHash
|
# RenderDoc
|
||||||
if (NOT TARGET xxHash::xxhash)
|
if (NOT TARGET RenderDoc::API)
|
||||||
add_library(xxhash xxhash/xxhash.h xxhash/xxhash.c)
|
add_library(renderdoc INTERFACE)
|
||||||
target_include_directories(xxhash PUBLIC xxhash)
|
target_include_directories(renderdoc INTERFACE renderdoc)
|
||||||
add_library(xxHash::xxhash ALIAS xxhash)
|
add_library(RenderDoc::API ALIAS renderdoc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Zydis
|
# Robin-map
|
||||||
if (NOT TARGET Zydis::Zydis)
|
if (NOT TARGET tsl::robin_map)
|
||||||
option(ZYDIS_BUILD_TOOLS "" OFF)
|
add_subdirectory(robin-map)
|
||||||
option(ZYDIS_BUILD_EXAMPLES "" OFF)
|
|
||||||
add_subdirectory(zydis)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Winpthreads
|
# SDL3
|
||||||
if (WIN32)
|
if (NOT TARGET SDL3::SDL3)
|
||||||
add_subdirectory(winpthreads)
|
set(SDL_PIPEWIRE OFF)
|
||||||
target_include_directories(winpthreads INTERFACE winpthreads/include)
|
add_subdirectory(sdl3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# sirit
|
# sirit
|
||||||
@ -141,33 +130,11 @@ if (WIN32)
|
|||||||
target_compile_options(sirit PUBLIC "-Wno-error=unused-command-line-argument")
|
target_compile_options(sirit PUBLIC "-Wno-error=unused-command-line-argument")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# half
|
# Toml11
|
||||||
if (NOT TARGET half::half)
|
if (NOT TARGET toml11::toml11)
|
||||||
add_library(half INTERFACE)
|
add_subdirectory(toml11)
|
||||||
target_include_directories(half INTERFACE half/include)
|
|
||||||
add_library(half::half ALIAS half)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
|
||||||
# date
|
|
||||||
if (NOT TARGET date::date-tz)
|
|
||||||
option(BUILD_TZ_LIB "" ON)
|
|
||||||
option(USE_SYSTEM_TZ_DB "" ON)
|
|
||||||
add_subdirectory(date)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Dear ImGui
|
|
||||||
add_library(Dear_ImGui
|
|
||||||
dear_imgui/imgui.cpp
|
|
||||||
dear_imgui/imgui_demo.cpp
|
|
||||||
dear_imgui/imgui_draw.cpp
|
|
||||||
dear_imgui/imgui_internal.h
|
|
||||||
dear_imgui/imgui_tables.cpp
|
|
||||||
dear_imgui/imgui_widgets.cpp
|
|
||||||
)
|
|
||||||
target_include_directories(Dear_ImGui INTERFACE dear_imgui/)
|
|
||||||
|
|
||||||
# Tracy
|
# Tracy
|
||||||
option(TRACY_ENABLE "" ON)
|
option(TRACY_ENABLE "" ON)
|
||||||
option(TRACY_NO_CRASH_HANDLER "" ON) # Otherwise texture cache exceptions will be treaten as a crash
|
option(TRACY_NO_CRASH_HANDLER "" ON) # Otherwise texture cache exceptions will be treaten as a crash
|
||||||
@ -182,17 +149,48 @@ option(TRACY_ONLY_LOCALHOST "" ON)
|
|||||||
option(TRACY_NO_CONTEXT_SWITCH "" ON)
|
option(TRACY_NO_CONTEXT_SWITCH "" ON)
|
||||||
add_subdirectory(tracy)
|
add_subdirectory(tracy)
|
||||||
|
|
||||||
# pugixml
|
# VMA
|
||||||
if (NOT TARGET pugixml::pugixml)
|
if (NOT TARGET GPUOpen::VulkanMemoryAllocator)
|
||||||
add_subdirectory(pugixml)
|
add_subdirectory(vma)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Discord RPC
|
# vulkan-headers
|
||||||
if (ENABLE_DISCORD_RPC)
|
if (NOT TARGET Vulkan::Headers)
|
||||||
set(BUILD_EXAMPLES OFF)
|
set(VULKAN_HEADERS_ENABLE_MODULE OFF)
|
||||||
add_subdirectory(discord-rpc/)
|
add_subdirectory(vulkan-headers)
|
||||||
target_include_directories(discord-rpc INTERFACE discord-rpc/include)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# GCN Headers
|
# Winpthreads
|
||||||
add_subdirectory(gcn)
|
if (WIN32)
|
||||||
|
add_subdirectory(winpthreads)
|
||||||
|
target_include_directories(winpthreads INTERFACE winpthreads/include)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Xbyak
|
||||||
|
if (NOT TARGET xbyak::xbyak)
|
||||||
|
add_subdirectory(xbyak)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# xxHash
|
||||||
|
if (NOT TARGET xxHash::xxhash)
|
||||||
|
add_library(xxhash xxhash/xxhash.h xxhash/xxhash.c)
|
||||||
|
target_include_directories(xxhash PUBLIC xxhash)
|
||||||
|
add_library(xxHash::xxhash ALIAS xxhash)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Zlib-Ng
|
||||||
|
if (NOT TARGET zlib-ng::zlib)
|
||||||
|
set(ZLIB_ENABLE_TESTS OFF)
|
||||||
|
set(WITH_GTEST OFF)
|
||||||
|
set(WITH_NEW_STRATEGIES ON)
|
||||||
|
set(WITH_NATIVE_INSTRUCTIONS ON)
|
||||||
|
add_subdirectory(zlib-ng)
|
||||||
|
add_library(zlib-ng::zlib ALIAS zlib)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Zydis
|
||||||
|
if (NOT TARGET Zydis::Zydis)
|
||||||
|
option(ZYDIS_BUILD_TOOLS "" OFF)
|
||||||
|
option(ZYDIS_BUILD_EXAMPLES "" OFF)
|
||||||
|
add_subdirectory(zydis)
|
||||||
|
endif()
|
2
externals/magic_enum
vendored
2
externals/magic_enum
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 126539e13cccdc2e75ce770e94f3c26403099fa5
|
Subproject commit a72a0536c716fdef4f029fb43e1fd7e7b3d9ac9b
|
Loading…
Reference in New Issue
Block a user