mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 22:28:32 +09:00
[Chore] (3rdparty): add xxHash
This commit is contained in:
@@ -13,3 +13,6 @@
|
|||||||
[submodule "3rdparty/tracy"]
|
[submodule "3rdparty/tracy"]
|
||||||
path = 3rdparty/tracy
|
path = 3rdparty/tracy
|
||||||
url = https://github.com/wolfpld/tracy.git
|
url = https://github.com/wolfpld/tracy.git
|
||||||
|
[submodule "3rdparty/xxHash"]
|
||||||
|
path = 3rdparty/xxHash
|
||||||
|
url = https://github.com/Cyan4973/xxHash.git
|
||||||
|
|||||||
+1
Submodule 3rdparty/xxHash added at 1d7b2a9d21
@@ -108,6 +108,10 @@ set(SPIRV_CROSS_STATIC ON CACHE BOOL "Prefer static libs" FORCE)
|
|||||||
add_subdirectory(3rdparty/glslang)
|
add_subdirectory(3rdparty/glslang)
|
||||||
add_subdirectory(3rdparty/SPIRV-Cross)
|
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)
|
set(TRACY_ENABLE ${MOBILEGL_ENABLE_TRACY} CACHE BOOL "Enable Tracy, this is an internal variable" FORCE)
|
||||||
|
|
||||||
if (TRACY_ENABLE)
|
if (TRACY_ENABLE)
|
||||||
@@ -209,6 +213,7 @@ set(SOURCE_FILES
|
|||||||
MobileGL/MG_Backend/DirectVulkan/Renderer/PipelineManager.cpp
|
MobileGL/MG_Backend/DirectVulkan/Renderer/PipelineManager.cpp
|
||||||
MobileGL/MG_Backend/DirectVulkan/Renderer/FrameContext.cpp
|
MobileGL/MG_Backend/DirectVulkan/Renderer/FrameContext.cpp
|
||||||
MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.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/Core.cpp
|
||||||
MobileGL/MG_State/GLState/ErrorState/Error.cpp
|
MobileGL/MG_State/GLState/ErrorState/Error.cpp
|
||||||
@@ -242,6 +247,7 @@ set(MOBILEGL_LINK_LIBRARIES
|
|||||||
spirv-cross-c
|
spirv-cross-c
|
||||||
SPIRV-Tools-opt
|
SPIRV-Tools-opt
|
||||||
SPIRV-Tools
|
SPIRV-Tools
|
||||||
|
xxHash::xxhash
|
||||||
)
|
)
|
||||||
|
|
||||||
set(MOBILEGL_INCLUDE_DIR
|
set(MOBILEGL_INCLUDE_DIR
|
||||||
|
|||||||
@@ -106,6 +106,8 @@
|
|||||||
#define TRACY_ZONECOLOR_BACKEND 0x00FF00
|
#define TRACY_ZONECOLOR_BACKEND 0x00FF00
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "xxhash.h"
|
||||||
|
|
||||||
// Post-includes for significant project headers
|
// Post-includes for significant project headers
|
||||||
#include "MG_Util/Debug/Log.h"
|
#include "MG_Util/Debug/Log.h"
|
||||||
#include "MG_Util/Types.h"
|
#include "MG_Util/Types.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user