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!
|
|
|
|
|
|
|
|
---
|
2019-01-07 23:00:25 +01:00
|
|
|
source/CMakeLists.txt | 2 ++
|
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 +
|
|
|
|
5 files changed, 6 insertions(+)
|
2016-06-13 12:20:39 +02:00
|
|
|
|
2019-11-07 10:13:06 +01:00
|
|
|
Index: spirv-tools-2019.5~git157/source/CMakeLists.txt
|
2016-06-13 12:20:39 +02:00
|
|
|
===================================================================
|
2019-11-07 10:13:06 +01:00
|
|
|
--- spirv-tools-2019.5~git157.orig/source/CMakeLists.txt
|
|
|
|
+++ spirv-tools-2019.5~git157/source/CMakeLists.txt
|
2019-06-04 15:30:47 +02:00
|
|
|
@@ -336,6 +336,7 @@ set_source_files_properties(
|
2018-11-10 13:25:08 +01:00
|
|
|
spvtools_pch(SPIRV_SOURCES pch_source)
|
2016-06-13 12:20:39 +02:00
|
|
|
|
2017-02-02 12:04:34 +01:00
|
|
|
add_library(${SPIRV_TOOLS} ${SPIRV_SOURCES})
|
2020-04-08 13:53:45 +02:00
|
|
|
+set_target_properties(${SPIRV_TOOLS} PROPERTIES SOVERSION suse17)
|
2017-02-02 12:04:34 +01:00
|
|
|
spvtools_default_compile_options(${SPIRV_TOOLS})
|
|
|
|
target_include_directories(${SPIRV_TOOLS}
|
2019-11-07 10:13:06 +01:00
|
|
|
PUBLIC
|
|
|
|
@@ -349,6 +350,7 @@ spvtools_check_symbol_exports(${SPIRV_TO
|
2019-01-07 23:00:25 +01:00
|
|
|
add_dependencies( ${SPIRV_TOOLS} core_tables enum_string_mapping extinst_tables )
|
2018-03-08 01:36:56 +01:00
|
|
|
|
|
|
|
add_library(${SPIRV_TOOLS}-shared SHARED ${SPIRV_SOURCES})
|
2020-04-08 13:53:45 +02:00
|
|
|
+set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES SOVERSION suse17)
|
2018-03-08 01:36:56 +01:00
|
|
|
spvtools_default_compile_options(${SPIRV_TOOLS}-shared)
|
|
|
|
target_include_directories(${SPIRV_TOOLS}-shared
|
2019-11-07 10:13:06 +01:00
|
|
|
PUBLIC
|
|
|
|
Index: spirv-tools-2019.5~git157/source/fuzz/CMakeLists.txt
|
2017-02-02 12:04:34 +01:00
|
|
|
===================================================================
|
2019-11-07 10:13:06 +01:00
|
|
|
--- spirv-tools-2019.5~git157.orig/source/fuzz/CMakeLists.txt
|
|
|
|
+++ spirv-tools-2019.5~git157/source/fuzz/CMakeLists.txt
|
|
|
|
@@ -146,6 +146,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})
|
2020-04-08 13:53:45 +02:00
|
|
|
+ set_target_properties(SPIRV-Tools-fuzz PROPERTIES SOVERSION suse17)
|
2019-06-04 15:30:47 +02:00
|
|
|
|
|
|
|
spvtools_default_compile_options(SPIRV-Tools-fuzz)
|
|
|
|
target_compile_definitions(SPIRV-Tools-fuzz PUBLIC -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_USE_UNALIGNED=0)
|
2019-11-07 10:13:06 +01:00
|
|
|
Index: spirv-tools-2019.5~git157/source/link/CMakeLists.txt
|
2017-08-07 18:37:37 +02:00
|
|
|
===================================================================
|
2019-11-07 10:13:06 +01:00
|
|
|
--- spirv-tools-2019.5~git157.orig/source/link/CMakeLists.txt
|
|
|
|
+++ spirv-tools-2019.5~git157/source/link/CMakeLists.txt
|
2017-11-17 14:56:14 +01:00
|
|
|
@@ -14,6 +14,7 @@
|
|
|
|
add_library(SPIRV-Tools-link
|
|
|
|
linker.cpp
|
|
|
|
)
|
2020-04-08 13:53:45 +02:00
|
|
|
+set_target_properties(SPIRV-Tools-link PROPERTIES SOVERSION suse17)
|
2017-11-17 14:56:14 +01:00
|
|
|
|
|
|
|
spvtools_default_compile_options(SPIRV-Tools-link)
|
|
|
|
target_include_directories(SPIRV-Tools-link
|
2019-11-07 10:13:06 +01:00
|
|
|
Index: spirv-tools-2019.5~git157/source/opt/CMakeLists.txt
|
2017-11-17 14:56:14 +01:00
|
|
|
===================================================================
|
2019-11-07 10:13:06 +01:00
|
|
|
--- spirv-tools-2019.5~git157.orig/source/opt/CMakeLists.txt
|
|
|
|
+++ spirv-tools-2019.5~git157/source/opt/CMakeLists.txt
|
|
|
|
@@ -231,6 +231,7 @@ spvtools_pch(SPIRV_TOOLS_OPT_SOURCES pch
|
2018-11-10 13:25:08 +01:00
|
|
|
|
|
|
|
add_library(SPIRV-Tools-opt ${SPIRV_TOOLS_OPT_SOURCES})
|
2016-06-13 12:20:39 +02:00
|
|
|
|
2020-04-08 13:53:45 +02:00
|
|
|
+set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse17)
|
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
|
|
|
|
Index: spirv-tools-2019.5~git157/source/reduce/CMakeLists.txt
|
2019-01-07 23:00:25 +01:00
|
|
|
===================================================================
|
2019-11-07 10:13:06 +01:00
|
|
|
--- spirv-tools-2019.5~git157.orig/source/reduce/CMakeLists.txt
|
|
|
|
+++ spirv-tools-2019.5~git157/source/reduce/CMakeLists.txt
|
2019-06-04 15:30:47 +02:00
|
|
|
@@ -83,6 +83,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}
|
|
|
|
)
|
2020-04-08 13:53:45 +02:00
|
|
|
+set_target_properties(SPIRV-Tools-reduce PROPERTIES SOVERSION suse17)
|
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
|
|
|
|
PUBLIC ${SPIRV_TOOLS}
|