SHA256
1
0
forked from pool/gzdoom
gzdoom/gzdoom-vulkan.patch

52 lines
2.0 KiB
Diff
Raw Normal View History

From: Jan Engelhardt <jengelh@inai.de>
Date: 2019-04-13 15:02:22.799297208 +0200
Use Vulkan/glslang/spirv system libraries instead of bundled code.
---
CMakeLists.txt | 4 +---
src/CMakeLists.txt | 2 +-
src/common/rendering/vulkan/system/vk_builders.cpp | 1 +
3 files changed, 3 insertions(+), 4 deletions(-)
Index: gzdoom-g4.8.1/CMakeLists.txt
===================================================================
--- gzdoom-g4.8.1.orig/CMakeLists.txt
+++ gzdoom-g4.8.1/CMakeLists.txt
@@ -325,9 +325,7 @@ option(FORCE_INTERNAL_ASMJIT "Use intern
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
if (HAVE_VULKAN)
- add_subdirectory( libraries/glslang/glslang)
- add_subdirectory( libraries/glslang/spirv )
- add_subdirectory( libraries/glslang/OGLCompilersDLL )
+ include_directories(/usr/include/glslang/Public /usr/include/SPIRV)
endif()
add_subdirectory( libraries/discordrpc EXCLUDE_FROM_ALL )
Index: gzdoom-g4.8.1/src/CMakeLists.txt
===================================================================
--- gzdoom-g4.8.1.orig/src/CMakeLists.txt
+++ gzdoom-g4.8.1/src/CMakeLists.txt
@@ -368,7 +368,7 @@ add_custom_target( revision_check ALL
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" "${DRPC_LIBRARIES}")
if (HAVE_VULKAN)
- set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} "glslang" "SPIRV" "OGLCompiler")
+ set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} -lglslang -lSPIRV -lOGLCompiler)
endif()
# ZMUSIC
Index: gzdoom-g4.8.1/src/common/rendering/vulkan/system/vk_builders.cpp
===================================================================
--- gzdoom-g4.8.1.orig/src/common/rendering/vulkan/system/vk_builders.cpp
+++ gzdoom-g4.8.1/src/common/rendering/vulkan/system/vk_builders.cpp
@@ -25,6 +25,7 @@
#include "renderstyle.h"
#include <ShaderLang.h>
#include <GlslangToSpv.h>
+#include <glslang/build_info.h>
static const TBuiltInResource DefaultTBuiltInResource = {
/* .MaxLights = */ 32,