2018-08-25 17:01:27 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2018-08-25 15:28:25.894943233 +0200
|
|
|
|
|
|
|
|
Unversioned libraries suck!
|
|
|
|
|
2019-02-19 11:03:36 +01:00
|
|
|
I loosely remember someone or something suggested that something like semver is in place.
|
|
|
|
Diffing 7.10.2984 to 7.11.3113 however shows `nm -CD` differences on libSPIRV.so.
|
|
|
|
There is no ABI stability to expect here.
|
|
|
|
|
|
|
|
-T spv::Builder::createLoad(unsigned int, spv::MemoryAccessMask, spv::Scope)
|
|
|
|
+T spv::Builder::createLoad(unsigned int, spv::MemoryAccessMask, spv::Scope, unsigned int)
|
|
|
|
|
|
|
|
|
2018-08-25 17:01:27 +02:00
|
|
|
---
|
2018-08-25 17:22:09 +02:00
|
|
|
SPIRV/CMakeLists.txt | 2 ++
|
|
|
|
StandAlone/CMakeLists.txt | 1 +
|
|
|
|
glslang/CMakeLists.txt | 1 +
|
|
|
|
hlsl/CMakeLists.txt | 1 +
|
|
|
|
4 files changed, 5 insertions(+)
|
2018-08-25 17:01:27 +02:00
|
|
|
|
2020-01-19 12:59:37 +01:00
|
|
|
Index: glslang-8.13.3559+git20/SPIRV/CMakeLists.txt
|
2018-08-25 17:01:27 +02:00
|
|
|
===================================================================
|
2020-01-19 12:59:37 +01:00
|
|
|
--- glslang-8.13.3559+git20.orig/SPIRV/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3559+git20/SPIRV/CMakeLists.txt
|
2019-11-07 09:49:24 +01:00
|
|
|
@@ -34,6 +34,7 @@ set(SPVREMAP_HEADERS
|
|
|
|
doc.h)
|
2018-08-25 17:01:27 +02:00
|
|
|
|
|
|
|
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
2020-01-19 12:59:37 +01:00
|
|
|
+set_target_properties(SPIRV PROPERTIES SOVERSION suse9)
|
2018-08-25 17:01:27 +02:00
|
|
|
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
2020-01-19 12:59:37 +01:00
|
|
|
target_include_directories(SPIRV PUBLIC
|
2019-11-07 09:49:24 +01:00
|
|
|
@@ -42,6 +43,7 @@ target_include_directories(SPIRV PUBLIC
|
2018-08-25 17:01:27 +02:00
|
|
|
|
|
|
|
if (ENABLE_SPVREMAPPER)
|
|
|
|
add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
2020-01-19 12:59:37 +01:00
|
|
|
+ set_target_properties(SPVRemapper PROPERTIES SOVERSION suse9)
|
2018-08-25 17:01:27 +02:00
|
|
|
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
endif()
|
2020-01-19 12:59:37 +01:00
|
|
|
Index: glslang-8.13.3559+git20/StandAlone/CMakeLists.txt
|
2018-08-25 17:22:09 +02:00
|
|
|
===================================================================
|
2020-01-19 12:59:37 +01:00
|
|
|
--- glslang-8.13.3559+git20.orig/StandAlone/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3559+git20/StandAlone/CMakeLists.txt
|
2018-08-25 17:22:09 +02:00
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
add_library(glslang-default-resource-limits
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ResourceLimits.cpp)
|
2020-01-19 12:59:37 +01:00
|
|
|
+set_target_properties(glslang-default-resource-limits PROPERTIES SOVERSION suse9)
|
2018-08-25 17:22:09 +02:00
|
|
|
set_property(TARGET glslang-default-resource-limits PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET glslang-default-resource-limits PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2020-01-19 12:59:37 +01:00
|
|
|
Index: glslang-8.13.3559+git20/glslang/CMakeLists.txt
|
2018-08-25 17:22:09 +02:00
|
|
|
===================================================================
|
2020-01-19 12:59:37 +01:00
|
|
|
--- glslang-8.13.3559+git20.orig/glslang/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3559+git20/glslang/CMakeLists.txt
|
2019-11-07 09:49:24 +01:00
|
|
|
@@ -79,6 +79,7 @@ set(HEADERS
|
2018-11-12 17:55:07 +01:00
|
|
|
glslang_pch(SOURCES MachineIndependent/pch.cpp)
|
2018-08-25 17:22:09 +02:00
|
|
|
|
|
|
|
add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS})
|
2020-01-19 12:59:37 +01:00
|
|
|
+set_target_properties(glslang PROPERTIES SOVERSION suse9)
|
2018-08-25 17:22:09 +02:00
|
|
|
set_property(TARGET glslang PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
target_link_libraries(glslang OGLCompiler OSDependent)
|
2020-01-19 12:59:37 +01:00
|
|
|
Index: glslang-8.13.3559+git20/hlsl/CMakeLists.txt
|
2018-08-25 17:01:27 +02:00
|
|
|
===================================================================
|
2020-01-19 12:59:37 +01:00
|
|
|
--- glslang-8.13.3559+git20.orig/hlsl/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3559+git20/hlsl/CMakeLists.txt
|
2018-11-12 17:55:07 +01:00
|
|
|
@@ -20,6 +20,7 @@ set(HEADERS
|
|
|
|
glslang_pch(SOURCES pch.cpp)
|
2018-08-25 17:01:27 +02:00
|
|
|
|
|
|
|
add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
2020-01-19 12:59:37 +01:00
|
|
|
+set_target_properties(HLSL PROPERTIES SOVERSION suse9)
|
2018-08-25 17:01:27 +02:00
|
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
|
|
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|