Don't compile header-only libraries.

This commit is contained in:
Skyth 2024-12-17 15:09:14 +03:00
parent 623898a33e
commit 7edbaf5f69
4 changed files with 7 additions and 13 deletions

View file

@ -207,11 +207,14 @@ set(SWA_THIRDPARTY_INCLUDES
"${SWA_THIRDPARTY_ROOT}/ddspp" "${SWA_THIRDPARTY_ROOT}/ddspp"
"${SWA_THIRDPARTY_ROOT}/imgui" "${SWA_THIRDPARTY_ROOT}/imgui"
"${SWA_THIRDPARTY_ROOT}/libmspack/libmspack/mspack" "${SWA_THIRDPARTY_ROOT}/libmspack/libmspack/mspack"
"${SWA_THIRDPARTY_ROOT}/miniaudio" "${SWA_THIRDPARTY_ROOT}/magic_enum/include"
"${SWA_THIRDPARTY_ROOT}/miniaudio" "${SWA_THIRDPARTY_ROOT}/miniaudio"
"${SWA_THIRDPARTY_ROOT}/stb" "${SWA_THIRDPARTY_ROOT}/stb"
"${SWA_THIRDPARTY_ROOT}/tiny-AES-c" "${SWA_THIRDPARTY_ROOT}/tiny-AES-c"
"${SWA_THIRDPARTY_ROOT}/TinySHA1" "${SWA_THIRDPARTY_ROOT}/TinySHA1"
"${SWA_THIRDPARTY_ROOT}/unordered_dense/include"
"${SWA_THIRDPARTY_ROOT}/volk"
"${SWA_THIRDPARTY_ROOT}/Vulkan-Headers/include"
"${SWA_THIRDPARTY_ROOT}/VulkanMemoryAllocator/include" "${SWA_THIRDPARTY_ROOT}/VulkanMemoryAllocator/include"
"${SWA_TOOLS_ROOT}/bc_diff" "${SWA_TOOLS_ROOT}/bc_diff"
"${SWA_TOOLS_ROOT}/ShaderRecomp/thirdparty/smol-v/source" "${SWA_TOOLS_ROOT}/ShaderRecomp/thirdparty/smol-v/source"
@ -298,7 +301,6 @@ endif()
target_link_libraries(UnleashedRecomp PRIVATE target_link_libraries(UnleashedRecomp PRIVATE
fmt::fmt fmt::fmt
libzstd_static libzstd_static
magic_enum::magic_enum
msdf-atlas-gen::msdf-atlas-gen msdf-atlas-gen::msdf-atlas-gen
nfd::nfd nfd::nfd
o1heap o1heap
@ -306,10 +308,7 @@ target_link_libraries(UnleashedRecomp PRIVATE
SDL2::SDL2-static SDL2::SDL2-static
tomlplusplus::tomlplusplus tomlplusplus::tomlplusplus
UnleashedRecompLib UnleashedRecompLib
unordered_dense::unordered_dense
volk::volk_headers
Vorbis::vorbisfile Vorbis::vorbisfile
Vulkan::Headers
xxHash::xxhash ) xxHash::xxhash )
target_include_directories(UnleashedRecomp PRIVATE target_include_directories(UnleashedRecomp PRIVATE

View file

@ -31,7 +31,7 @@
#include <xxHashMap.h> #include <xxHashMap.h>
#if defined(ASYNC_PSO_DEBUG) || defined(PSO_CACHING) #if defined(ASYNC_PSO_DEBUG) || defined(PSO_CACHING)
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#endif #endif
#include "../../tools/ShaderRecomp/ShaderRecomp/shader_common.h" #include "../../tools/ShaderRecomp/ShaderRecomp/shader_common.h"

View file

@ -1,7 +1,7 @@
#pragma once #pragma once
//#define ASYNC_PSO_DEBUG //#define ASYNC_PSO_DEBUG
//#define PSO_CACHING #define PSO_CACHING
#include "rhi/plume_render_interface.h" #include "rhi/plume_render_interface.h"

View file

@ -1,16 +1,11 @@
add_subdirectory("${SWA_THIRDPARTY_ROOT}/magic_enum")
set(MSDF_ATLAS_BUILD_STANDALONE OFF) set(MSDF_ATLAS_BUILD_STANDALONE OFF)
set(MSDF_ATLAS_USE_SKIA OFF) set(MSDF_ATLAS_USE_SKIA OFF)
set(MSDF_ATLAS_NO_ARTERY_FONT ON) set(MSDF_ATLAS_NO_ARTERY_FONT ON)
set(MSDFGEN_DISABLE_PNG ON) set(MSDFGEN_DISABLE_PNG ON)
add_subdirectory("${SWA_THIRDPARTY_ROOT}/msdf-atlas-gen")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/msdf-atlas-gen")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/nativefiledialog-extended") add_subdirectory("${SWA_THIRDPARTY_ROOT}/nativefiledialog-extended")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/ogg") add_subdirectory("${SWA_THIRDPARTY_ROOT}/ogg")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/o1heap") add_subdirectory("${SWA_THIRDPARTY_ROOT}/o1heap")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/SDL") add_subdirectory("${SWA_THIRDPARTY_ROOT}/SDL")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/unordered_dense")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/volk")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/vorbis") add_subdirectory("${SWA_THIRDPARTY_ROOT}/vorbis")
add_subdirectory("${SWA_THIRDPARTY_ROOT}/Vulkan-Headers")