2019-04-13 14:41:25 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
2019-04-13 15:11:19 +02:00
|
|
|
Date: 2019-04-13 15:02:22.799297208 +0200
|
2019-04-13 14:41:25 +02:00
|
|
|
|
2019-04-13 15:11:19 +02:00
|
|
|
Use Vulkan system libraries instead of bundled code.
|
2019-04-13 14:41:25 +02:00
|
|
|
|
|
|
|
---
|
2020-06-11 10:16:01 +02:00
|
|
|
CMakeLists.txt | 4 +---
|
|
|
|
libraries/glslang/spirv/CMakeLists.txt | 1 +
|
|
|
|
src/CMakeLists.txt | 2 +-
|
|
|
|
3 files changed, 3 insertions(+), 4 deletions(-)
|
2019-04-13 14:41:25 +02:00
|
|
|
|
2020-06-10 21:09:37 +02:00
|
|
|
Index: gzdoom-g4.4.0/CMakeLists.txt
|
2019-04-13 14:41:25 +02:00
|
|
|
===================================================================
|
2020-06-10 21:09:37 +02:00
|
|
|
--- gzdoom-g4.4.0.orig/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.4.0/CMakeLists.txt
|
2020-06-11 10:16:01 +02:00
|
|
|
@@ -307,9 +307,7 @@ option(FORCE_INTERNAL_ASMJIT "Use intern
|
2019-04-13 14:41:25 +02:00
|
|
|
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
|
|
|
|
|
|
|
if (HAVE_VULKAN)
|
2019-08-23 15:14:20 +02:00
|
|
|
- add_subdirectory( libraries/glslang/glslang)
|
|
|
|
- add_subdirectory( libraries/glslang/spirv )
|
|
|
|
- add_subdirectory( libraries/glslang/OGLCompilersDLL )
|
2020-06-11 10:16:01 +02:00
|
|
|
+ include_directories(/usr/include/glslang/Public /usr/include/SPIRV)
|
2019-04-13 14:41:25 +02:00
|
|
|
endif()
|
|
|
|
|
2019-12-18 23:09:50 +01:00
|
|
|
if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )
|
2020-06-11 10:16:01 +02:00
|
|
|
Index: gzdoom-g4.4.0/libraries/glslang/spirv/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- gzdoom-g4.4.0.orig/libraries/glslang/spirv/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.4.0/libraries/glslang/spirv/CMakeLists.txt
|
|
|
|
@@ -50,6 +50,7 @@ set(SPVREMAP_HEADERS
|
|
|
|
doc.h)
|
|
|
|
|
|
|
|
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
|
|
|
+set_property(TARGET SPIRV OUTPUT_NAME libSPIRV-zdoom)
|
|
|
|
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
target_include_directories(SPIRV PUBLIC
|
2020-06-10 21:09:37 +02:00
|
|
|
Index: gzdoom-g4.4.0/src/CMakeLists.txt
|
2019-04-13 14:41:25 +02:00
|
|
|
===================================================================
|
2020-06-10 21:09:37 +02:00
|
|
|
--- gzdoom-g4.4.0.orig/src/CMakeLists.txt
|
|
|
|
+++ gzdoom-g4.4.0/src/CMakeLists.txt
|
|
|
|
@@ -435,7 +435,7 @@ add_custom_target( revision_check ALL
|
2019-12-18 23:09:50 +01:00
|
|
|
|
2020-06-10 21:09:37 +02:00
|
|
|
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${CMAKE_DL_LIBS}" )
|
2019-04-13 14:41:25 +02:00
|
|
|
if (HAVE_VULKAN)
|
|
|
|
- set( ZDOOM_LIBS ${ZDOOM_LIBS} "glslang" "SPIRV" "OGLCompiler")
|
|
|
|
+ set( ZDOOM_LIBS ${ZDOOM_LIBS} -lglslang -lSPIRV -lOGLCompiler)
|
|
|
|
endif()
|
2019-12-18 23:09:50 +01:00
|
|
|
include_directories( "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIRS}" "${JPEG_INCLUDE_DIR}" "${ZMUSIC_INCLUDE_DIR}" )
|
2019-04-13 14:41:25 +02:00
|
|
|
|