[Chore] (3rdparty): add xxHash

This commit is contained in:
2026-02-09 13:55:05 +08:00
parent 2abdebcd96
commit 0b332bdc58
4 changed files with 12 additions and 0 deletions
+3
View File
@@ -13,3 +13,6 @@
[submodule "3rdparty/tracy"]
path = 3rdparty/tracy
url = https://github.com/wolfpld/tracy.git
[submodule "3rdparty/xxHash"]
path = 3rdparty/xxHash
url = https://github.com/Cyan4973/xxHash.git
Vendored Submodule
+1
Submodule 3rdparty/xxHash added at 1d7b2a9d21
+6
View File
@@ -108,6 +108,10 @@ set(SPIRV_CROSS_STATIC ON CACHE BOOL "Prefer static libs" FORCE)
add_subdirectory(3rdparty/glslang)
add_subdirectory(3rdparty/SPIRV-Cross)
set(XXHASH_BUILD_XXHSUM OFF)
option(BUILD_SHARED_LIBS OFF)
add_subdirectory(3rdparty/xxHash/build/cmake xxhash_build EXCLUDE_FROM_ALL)
set(TRACY_ENABLE ${MOBILEGL_ENABLE_TRACY} CACHE BOOL "Enable Tracy, this is an internal variable" FORCE)
if (TRACY_ENABLE)
@@ -209,6 +213,7 @@ set(SOURCE_FILES
MobileGL/MG_Backend/DirectVulkan/Renderer/PipelineManager.cpp
MobileGL/MG_Backend/DirectVulkan/Renderer/FrameContext.cpp
MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp
MobileGL/MG_Backend/DirectVulkan/Renderer/ProgramManager.cpp
MobileGL/MG_State/GLState/Core.cpp
MobileGL/MG_State/GLState/ErrorState/Error.cpp
@@ -242,6 +247,7 @@ set(MOBILEGL_LINK_LIBRARIES
spirv-cross-c
SPIRV-Tools-opt
SPIRV-Tools
xxHash::xxhash
)
set(MOBILEGL_INCLUDE_DIR
+2
View File
@@ -106,6 +106,8 @@
#define TRACY_ZONECOLOR_BACKEND 0x00FF00
#endif
#include "xxhash.h"
// Post-includes for significant project headers
#include "MG_Util/Debug/Log.h"
#include "MG_Util/Types.h"