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-04-08 12:59:55 +02:00
|
|
|
Index: glslang-8.13.3727+git4/SPIRV/CMakeLists.txt
|
2018-08-25 17:01:27 +02:00
|
|
|
===================================================================
|
2020-04-08 12:59:55 +02:00
|
|
|
--- glslang-8.13.3727+git4.orig/SPIRV/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3727+git4/SPIRV/CMakeLists.txt
|
|
|
|
@@ -35,6 +35,7 @@ set(SPVREMAP_HEADERS
|
2019-11-07 09:49:24 +01:00
|
|
|
doc.h)
|
2018-08-25 17:01:27 +02:00
|
|
|
|
|
|
|
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
2020-04-08 12:59:55 +02:00
|
|
|
+set_target_properties(SPIRV PROPERTIES SOVERSION suse10)
|
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
|
2020-04-08 12:59:55 +02:00
|
|
|
@@ -43,6 +44,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-04-08 12:59:55 +02:00
|
|
|
+ set_target_properties(SPVRemapper PROPERTIES SOVERSION suse10)
|
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-04-08 12:59:55 +02:00
|
|
|
Index: glslang-8.13.3727+git4/StandAlone/CMakeLists.txt
|
2018-08-25 17:22:09 +02:00
|
|
|
===================================================================
|
2020-04-08 12:59:55 +02:00
|
|
|
--- glslang-8.13.3727+git4.orig/StandAlone/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3727+git4/StandAlone/CMakeLists.txt
|
|
|
|
@@ -1,6 +1,7 @@
|
2018-08-25 17:22:09 +02:00
|
|
|
add_library(glslang-default-resource-limits
|
2020-04-08 12:59:55 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ResourceLimits.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/resource_limits_c.cpp)
|
|
|
|
+set_target_properties(glslang-default-resource-limits PROPERTIES SOVERSION suse10)
|
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-04-08 12:59:55 +02:00
|
|
|
Index: glslang-8.13.3727+git4/glslang/CMakeLists.txt
|
2018-08-25 17:22:09 +02:00
|
|
|
===================================================================
|
2020-04-08 12:59:55 +02:00
|
|
|
--- glslang-8.13.3727+git4.orig/glslang/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3727+git4/glslang/CMakeLists.txt
|
|
|
|
@@ -83,6 +83,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-04-08 12:59:55 +02:00
|
|
|
+set_target_properties(glslang PROPERTIES SOVERSION suse10)
|
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-04-08 12:59:55 +02:00
|
|
|
Index: glslang-8.13.3727+git4/hlsl/CMakeLists.txt
|
2018-08-25 17:01:27 +02:00
|
|
|
===================================================================
|
2020-04-08 12:59:55 +02:00
|
|
|
--- glslang-8.13.3727+git4.orig/hlsl/CMakeLists.txt
|
|
|
|
+++ glslang-8.13.3727+git4/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-04-08 12:59:55 +02:00
|
|
|
+set_target_properties(HLSL PROPERTIES SOVERSION suse10)
|
2018-08-25 17:01:27 +02:00
|
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
|
|
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|