2016-06-13 12:20:39 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2016-06-13 11:46:16.846841814 +0200
|
|
|
|
|
|
|
|
Unversioned libraries suck!
|
|
|
|
|
|
|
|
---
|
2020-12-08 14:32:21 +01:00
|
|
|
source/CMakeLists.txt | 3 +++
|
2019-06-04 15:30:47 +02:00
|
|
|
source/fuzz/CMakeLists.txt | 1 +
|
2019-01-07 23:00:25 +01:00
|
|
|
source/link/CMakeLists.txt | 1 +
|
|
|
|
source/opt/CMakeLists.txt | 1 +
|
|
|
|
source/reduce/CMakeLists.txt | 1 +
|
2020-12-08 14:32:21 +01:00
|
|
|
5 files changed, 7 insertions(+)
|
2016-06-13 12:20:39 +02:00
|
|
|
|
2020-12-08 14:32:21 +01:00
|
|
|
Index: SPIRV-Tools-2020.6/source/CMakeLists.txt
|
2016-06-13 12:20:39 +02:00
|
|
|
===================================================================
|
2020-12-08 14:32:21 +01:00
|
|
|
--- SPIRV-Tools-2020.6.orig/source/CMakeLists.txt
|
|
|
|
+++ SPIRV-Tools-2020.6/source/CMakeLists.txt
|
|
|
|
@@ -367,6 +367,7 @@ endfunction()
|
2018-03-08 01:36:56 +01:00
|
|
|
add_library(${SPIRV_TOOLS}-shared SHARED ${SPIRV_SOURCES})
|
2020-12-08 14:32:21 +01:00
|
|
|
spirv_tools_default_target_options(${SPIRV_TOOLS}-shared)
|
|
|
|
set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
2021-09-06 07:20:46 +02:00
|
|
|
+set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES SOVERSION suse22)
|
2020-12-08 14:32:21 +01:00
|
|
|
target_compile_definitions(${SPIRV_TOOLS}-shared
|
|
|
|
PRIVATE SPIRV_TOOLS_IMPLEMENTATION
|
|
|
|
PUBLIC SPIRV_TOOLS_SHAREDLIB
|
|
|
|
@@ -377,6 +378,7 @@ if(SPIRV_TOOLS_BUILD_STATIC)
|
|
|
|
spirv_tools_default_target_options(${SPIRV_TOOLS}-static)
|
|
|
|
# The static target does not have the '-static' suffix.
|
|
|
|
set_target_properties(${SPIRV_TOOLS}-static PROPERTIES OUTPUT_NAME "${SPIRV_TOOLS}")
|
2021-09-06 07:20:46 +02:00
|
|
|
+ set_target_properties(${SPIRV_TOOLS}-static PROPERTIES SOVERSION suse22)
|
2020-12-08 14:32:21 +01:00
|
|
|
|
|
|
|
# Create the "${SPIRV_TOOLS}" target as an alias to either "${SPIRV_TOOLS}-static"
|
|
|
|
# or "${SPIRV_TOOLS}-shared" depending on the value of BUILD_SHARED_LIBS.
|
|
|
|
@@ -389,6 +391,7 @@ if(SPIRV_TOOLS_BUILD_STATIC)
|
|
|
|
set(SPIRV_TOOLS_TARGETS ${SPIRV_TOOLS}-static ${SPIRV_TOOLS}-shared)
|
|
|
|
else()
|
|
|
|
add_library(${SPIRV_TOOLS} ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_SOURCES})
|
2021-09-06 07:20:46 +02:00
|
|
|
+ set_target_properties(${SPIRV_TOOLS} PROPERTIES SOVERSION suse22)
|
2020-12-08 14:32:21 +01:00
|
|
|
spirv_tools_default_target_options(${SPIRV_TOOLS})
|
|
|
|
set(SPIRV_TOOLS_TARGETS ${SPIRV_TOOLS} ${SPIRV_TOOLS}-shared)
|
|
|
|
endif()
|
|
|
|
Index: SPIRV-Tools-2020.6/source/fuzz/CMakeLists.txt
|
2017-02-02 12:04:34 +01:00
|
|
|
===================================================================
|
2020-12-08 14:32:21 +01:00
|
|
|
--- SPIRV-Tools-2020.6.orig/source/fuzz/CMakeLists.txt
|
|
|
|
+++ SPIRV-Tools-2020.6/source/fuzz/CMakeLists.txt
|
|
|
|
@@ -425,6 +425,7 @@ if(SPIRV_BUILD_FUZZER)
|
2019-06-04 15:30:47 +02:00
|
|
|
spvtools_pch(SPIRV_TOOLS_FUZZ_SOURCES pch_source_fuzz)
|
2017-08-07 18:37:37 +02:00
|
|
|
|
2019-06-04 15:30:47 +02:00
|
|
|
add_library(SPIRV-Tools-fuzz ${SPIRV_TOOLS_FUZZ_SOURCES})
|
2021-09-06 07:20:46 +02:00
|
|
|
+ set_target_properties(SPIRV-Tools-fuzz PROPERTIES SOVERSION suse22)
|
2019-06-04 15:30:47 +02:00
|
|
|
|
|
|
|
spvtools_default_compile_options(SPIRV-Tools-fuzz)
|
2020-12-08 14:32:21 +01:00
|
|
|
|
|
|
|
Index: SPIRV-Tools-2020.6/source/link/CMakeLists.txt
|
2017-08-07 18:37:37 +02:00
|
|
|
===================================================================
|
2020-12-08 14:32:21 +01:00
|
|
|
--- SPIRV-Tools-2020.6.orig/source/link/CMakeLists.txt
|
|
|
|
+++ SPIRV-Tools-2020.6/source/link/CMakeLists.txt
|
2017-11-17 14:56:14 +01:00
|
|
|
@@ -14,6 +14,7 @@
|
2020-12-08 14:32:21 +01:00
|
|
|
add_library(SPIRV-Tools-link ${SPIRV_TOOLS_LIBRARY_TYPE}
|
2017-11-17 14:56:14 +01:00
|
|
|
linker.cpp
|
|
|
|
)
|
2021-09-06 07:20:46 +02:00
|
|
|
+set_target_properties(SPIRV-Tools-link PROPERTIES SOVERSION suse22)
|
2017-11-17 14:56:14 +01:00
|
|
|
|
|
|
|
spvtools_default_compile_options(SPIRV-Tools-link)
|
|
|
|
target_include_directories(SPIRV-Tools-link
|
2020-12-08 14:32:21 +01:00
|
|
|
Index: SPIRV-Tools-2020.6/source/opt/CMakeLists.txt
|
2017-11-17 14:56:14 +01:00
|
|
|
===================================================================
|
2020-12-08 14:32:21 +01:00
|
|
|
--- SPIRV-Tools-2020.6.orig/source/opt/CMakeLists.txt
|
|
|
|
+++ SPIRV-Tools-2020.6/source/opt/CMakeLists.txt
|
|
|
|
@@ -234,6 +234,7 @@ spvtools_pch(SPIRV_TOOLS_OPT_SOURCES pch
|
2018-11-10 13:25:08 +01:00
|
|
|
|
2020-12-08 14:32:21 +01:00
|
|
|
add_library(SPIRV-Tools-opt ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_TOOLS_OPT_SOURCES})
|
2016-06-13 12:20:39 +02:00
|
|
|
|
2021-09-06 07:20:46 +02:00
|
|
|
+set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse22)
|
2017-02-02 12:04:34 +01:00
|
|
|
spvtools_default_compile_options(SPIRV-Tools-opt)
|
|
|
|
target_include_directories(SPIRV-Tools-opt
|
2019-11-07 10:13:06 +01:00
|
|
|
PUBLIC
|
2020-12-08 14:32:21 +01:00
|
|
|
Index: SPIRV-Tools-2020.6/source/reduce/CMakeLists.txt
|
2019-01-07 23:00:25 +01:00
|
|
|
===================================================================
|
2020-12-08 14:32:21 +01:00
|
|
|
--- SPIRV-Tools-2020.6.orig/source/reduce/CMakeLists.txt
|
|
|
|
+++ SPIRV-Tools-2020.6/source/reduce/CMakeLists.txt
|
|
|
|
@@ -88,6 +88,7 @@ target_include_directories(SPIRV-Tools-r
|
2019-11-07 10:13:06 +01:00
|
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
2019-01-07 23:00:25 +01:00
|
|
|
PRIVATE ${spirv-tools_BINARY_DIR}
|
|
|
|
)
|
2021-09-06 07:20:46 +02:00
|
|
|
+set_target_properties(SPIRV-Tools-reduce PROPERTIES SOVERSION suse22)
|
2019-01-07 23:00:25 +01:00
|
|
|
# The reducer reuses a lot of functionality from the SPIRV-Tools library.
|
|
|
|
target_link_libraries(SPIRV-Tools-reduce
|
2020-12-08 14:32:21 +01:00
|
|
|
PUBLIC ${SPIRV_TOOLS_FULL_VISIBILITY}
|