1
0
forked from pool/spirv-tools
Jan Engelhardt 2021-09-06 05:20:46 +00:00 committed by Git OBS Bridge
parent 3c07bb08cb
commit 746f10296c
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
libSPIRV-Tools-suse21 libSPIRV-Tools-suse22
spirv-tools-devel spirv-tools-devel
requires -spirv-tools-<targettype> requires -spirv-tools-<targettype>
requires "libSPIRV-Tools-suse21-<targettype> = <version>" requires "libSPIRV-Tools-suse22-<targettype> = <version>"

View File

@ -17,7 +17,7 @@
%define _lto_cflags %nil %define _lto_cflags %nil
%define lname libSPIRV-Tools-suse21 %define lname libSPIRV-Tools-suse22
Name: spirv-tools Name: spirv-tools
Version: 2021.3 Version: 2021.3

View File

@ -19,7 +19,7 @@ Index: SPIRV-Tools-2020.6/source/CMakeLists.txt
add_library(${SPIRV_TOOLS}-shared SHARED ${SPIRV_SOURCES}) add_library(${SPIRV_TOOLS}-shared SHARED ${SPIRV_SOURCES})
spirv_tools_default_target_options(${SPIRV_TOOLS}-shared) spirv_tools_default_target_options(${SPIRV_TOOLS}-shared)
set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES CXX_VISIBILITY_PRESET hidden) set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES CXX_VISIBILITY_PRESET hidden)
+set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES SOVERSION suse21) +set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES SOVERSION suse22)
target_compile_definitions(${SPIRV_TOOLS}-shared target_compile_definitions(${SPIRV_TOOLS}-shared
PRIVATE SPIRV_TOOLS_IMPLEMENTATION PRIVATE SPIRV_TOOLS_IMPLEMENTATION
PUBLIC SPIRV_TOOLS_SHAREDLIB PUBLIC SPIRV_TOOLS_SHAREDLIB
@ -27,7 +27,7 @@ Index: SPIRV-Tools-2020.6/source/CMakeLists.txt
spirv_tools_default_target_options(${SPIRV_TOOLS}-static) spirv_tools_default_target_options(${SPIRV_TOOLS}-static)
# The static target does not have the '-static' suffix. # The static target does not have the '-static' suffix.
set_target_properties(${SPIRV_TOOLS}-static PROPERTIES OUTPUT_NAME "${SPIRV_TOOLS}") set_target_properties(${SPIRV_TOOLS}-static PROPERTIES OUTPUT_NAME "${SPIRV_TOOLS}")
+ set_target_properties(${SPIRV_TOOLS}-static PROPERTIES SOVERSION suse21) + set_target_properties(${SPIRV_TOOLS}-static PROPERTIES SOVERSION suse22)
# Create the "${SPIRV_TOOLS}" target as an alias to either "${SPIRV_TOOLS}-static" # 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. # or "${SPIRV_TOOLS}-shared" depending on the value of BUILD_SHARED_LIBS.
@ -35,7 +35,7 @@ Index: SPIRV-Tools-2020.6/source/CMakeLists.txt
set(SPIRV_TOOLS_TARGETS ${SPIRV_TOOLS}-static ${SPIRV_TOOLS}-shared) set(SPIRV_TOOLS_TARGETS ${SPIRV_TOOLS}-static ${SPIRV_TOOLS}-shared)
else() else()
add_library(${SPIRV_TOOLS} ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_SOURCES}) add_library(${SPIRV_TOOLS} ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_SOURCES})
+ set_target_properties(${SPIRV_TOOLS} PROPERTIES SOVERSION suse21) + set_target_properties(${SPIRV_TOOLS} PROPERTIES SOVERSION suse22)
spirv_tools_default_target_options(${SPIRV_TOOLS}) spirv_tools_default_target_options(${SPIRV_TOOLS})
set(SPIRV_TOOLS_TARGETS ${SPIRV_TOOLS} ${SPIRV_TOOLS}-shared) set(SPIRV_TOOLS_TARGETS ${SPIRV_TOOLS} ${SPIRV_TOOLS}-shared)
endif() endif()
@ -47,7 +47,7 @@ Index: SPIRV-Tools-2020.6/source/fuzz/CMakeLists.txt
spvtools_pch(SPIRV_TOOLS_FUZZ_SOURCES pch_source_fuzz) spvtools_pch(SPIRV_TOOLS_FUZZ_SOURCES pch_source_fuzz)
add_library(SPIRV-Tools-fuzz ${SPIRV_TOOLS_FUZZ_SOURCES}) add_library(SPIRV-Tools-fuzz ${SPIRV_TOOLS_FUZZ_SOURCES})
+ set_target_properties(SPIRV-Tools-fuzz PROPERTIES SOVERSION suse21) + set_target_properties(SPIRV-Tools-fuzz PROPERTIES SOVERSION suse22)
spvtools_default_compile_options(SPIRV-Tools-fuzz) spvtools_default_compile_options(SPIRV-Tools-fuzz)
@ -59,7 +59,7 @@ Index: SPIRV-Tools-2020.6/source/link/CMakeLists.txt
add_library(SPIRV-Tools-link ${SPIRV_TOOLS_LIBRARY_TYPE} add_library(SPIRV-Tools-link ${SPIRV_TOOLS_LIBRARY_TYPE}
linker.cpp linker.cpp
) )
+set_target_properties(SPIRV-Tools-link PROPERTIES SOVERSION suse21) +set_target_properties(SPIRV-Tools-link PROPERTIES SOVERSION suse22)
spvtools_default_compile_options(SPIRV-Tools-link) spvtools_default_compile_options(SPIRV-Tools-link)
target_include_directories(SPIRV-Tools-link target_include_directories(SPIRV-Tools-link
@ -71,7 +71,7 @@ Index: SPIRV-Tools-2020.6/source/opt/CMakeLists.txt
add_library(SPIRV-Tools-opt ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_TOOLS_OPT_SOURCES}) add_library(SPIRV-Tools-opt ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_TOOLS_OPT_SOURCES})
+set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse21) +set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse22)
spvtools_default_compile_options(SPIRV-Tools-opt) spvtools_default_compile_options(SPIRV-Tools-opt)
target_include_directories(SPIRV-Tools-opt target_include_directories(SPIRV-Tools-opt
PUBLIC PUBLIC
@ -83,7 +83,7 @@ Index: SPIRV-Tools-2020.6/source/reduce/CMakeLists.txt
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
PRIVATE ${spirv-tools_BINARY_DIR} PRIVATE ${spirv-tools_BINARY_DIR}
) )
+set_target_properties(SPIRV-Tools-reduce PROPERTIES SOVERSION suse21) +set_target_properties(SPIRV-Tools-reduce PROPERTIES SOVERSION suse22)
# The reducer reuses a lot of functionality from the SPIRV-Tools library. # The reducer reuses a lot of functionality from the SPIRV-Tools library.
target_link_libraries(SPIRV-Tools-reduce target_link_libraries(SPIRV-Tools-reduce
PUBLIC ${SPIRV_TOOLS_FULL_VISIBILITY} PUBLIC ${SPIRV_TOOLS_FULL_VISIBILITY}