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
|
|
|
|
2018-11-12 17:55:07 +01:00
|
|
|
Index: glslang-7.9.2933.g33/SPIRV/CMakeLists.txt
|
2018-08-25 17:01:27 +02:00
|
|
|
===================================================================
|
2018-11-12 17:55:07 +01:00
|
|
|
--- glslang-7.9.2933.g33.orig/SPIRV/CMakeLists.txt
|
|
|
|
+++ glslang-7.9.2933.g33/SPIRV/CMakeLists.txt
|
|
|
|
@@ -44,12 +44,14 @@ if(ENABLE_NV_EXTENSIONS)
|
2018-08-25 17:01:27 +02:00
|
|
|
endif(ENABLE_NV_EXTENSIONS)
|
|
|
|
|
|
|
|
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
2019-09-07 17:57:58 +02:00
|
|
|
+set_target_properties(SPIRV PROPERTIES SOVERSION suse7)
|
2018-08-25 17:01:27 +02:00
|
|
|
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
target_include_directories(SPIRV PUBLIC ..)
|
|
|
|
|
|
|
|
if (ENABLE_SPVREMAPPER)
|
|
|
|
add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
2019-09-07 17:57:58 +02:00
|
|
|
+ set_target_properties(SPVRemapper PROPERTIES SOVERSION suse7)
|
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()
|
2018-11-12 17:55:07 +01:00
|
|
|
Index: glslang-7.9.2933.g33/StandAlone/CMakeLists.txt
|
2018-08-25 17:22:09 +02:00
|
|
|
===================================================================
|
2018-11-12 17:55:07 +01:00
|
|
|
--- glslang-7.9.2933.g33.orig/StandAlone/CMakeLists.txt
|
|
|
|
+++ glslang-7.9.2933.g33/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)
|
2019-09-07 17:57:58 +02:00
|
|
|
+set_target_properties(glslang-default-resource-limits PROPERTIES SOVERSION suse7)
|
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)
|
|
|
|
|
2018-11-12 17:55:07 +01:00
|
|
|
Index: glslang-7.9.2933.g33/glslang/CMakeLists.txt
|
2018-08-25 17:22:09 +02:00
|
|
|
===================================================================
|
2018-11-12 17:55:07 +01:00
|
|
|
--- glslang-7.9.2933.g33.orig/glslang/CMakeLists.txt
|
|
|
|
+++ glslang-7.9.2933.g33/glslang/CMakeLists.txt
|
|
|
|
@@ -83,6 +83,7 @@ set(HEADERS
|
|
|
|
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})
|
2019-09-07 17:57:58 +02:00
|
|
|
+set_target_properties(glslang PROPERTIES SOVERSION suse7)
|
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)
|
2018-11-12 17:55:07 +01:00
|
|
|
Index: glslang-7.9.2933.g33/hlsl/CMakeLists.txt
|
2018-08-25 17:01:27 +02:00
|
|
|
===================================================================
|
2018-11-12 17:55:07 +01:00
|
|
|
--- glslang-7.9.2933.g33.orig/hlsl/CMakeLists.txt
|
|
|
|
+++ glslang-7.9.2933.g33/hlsl/CMakeLists.txt
|
|
|
|
@@ -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})
|
2019-09-07 17:57:58 +02:00
|
|
|
+set_target_properties(HLSL PROPERTIES SOVERSION suse7)
|
2018-08-25 17:01:27 +02:00
|
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
|
|
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|