From 343dbc6cfca497390a7aff418533a25cf34d63b7 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 10 Jul 2023 13:39:32 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 2 +- README.md | 3 +++ SPIRV-Tools_staticlib.patch | 47 +++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 README.md create mode 100644 SPIRV-Tools_staticlib.patch diff --git a/.gitignore b/.gitignore index cbb34b2..9dfc4c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/spirv-tools-1fbed83c8aab8517d821fcb4164c08567951938f.tar.gz +/spirv-tools-*.tar.gz /SPIRV-Tools-sdk-1.3.216.0.tar.gz /SPIRV-Tools-sdk-1.3.224.0.tar.gz /SPIRV-Tools-sdk-1.3.239.0.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..63fca29 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# spirv-tools + +The spirv-tools package \ No newline at end of file diff --git a/SPIRV-Tools_staticlib.patch b/SPIRV-Tools_staticlib.patch new file mode 100644 index 0000000..ba3d0f4 --- /dev/null +++ b/SPIRV-Tools_staticlib.patch @@ -0,0 +1,47 @@ +--- SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f/source/CMakeLists.txt ++++ SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f-new/source/CMakeLists.txt +@@ -287,7 +287,7 @@ + ${CMAKE_CURRENT_SOURCE_DIR}/software_version.cpp + PROPERTIES OBJECT_DEPENDS "${SPIRV_TOOLS_BUILD_VERSION_INC}") + +-add_library(${SPIRV_TOOLS} ${SPIRV_SOURCES}) ++add_library(${SPIRV_TOOLS} STATIC ${SPIRV_SOURCES}) + spvtools_default_compile_options(${SPIRV_TOOLS}) + target_include_directories(${SPIRV_TOOLS} + PUBLIC ${spirv-tools_SOURCE_DIR}/include + +--- SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f/source/comp/CMakeLists.txt ++++ SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f-new/source/comp/CMakeLists.txt +@@ -13,7 +13,7 @@ + # limitations under the License. + + if(SPIRV_BUILD_COMPRESSION) +- add_library(SPIRV-Tools-comp markv_codec.cpp) ++ add_library(SPIRV-Tools-comp STATIC markv_codec.cpp) + + spvtools_default_compile_options(SPIRV-Tools-comp) + target_include_directories(SPIRV-Tools-comp + +--- SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f/source/opt/CMakeLists.txt ++++ SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f-new/source/opt/CMakeLists.txt +@@ -11,7 +11,7 @@ + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. +-add_library(SPIRV-Tools-opt ++add_library(SPIRV-Tools-opt STATIC + aggressive_dead_code_elim_pass.h + basic_block.h + block_merge_pass.h +--- SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f/source/link/CMakeLists.txt ++++ SPIRV-Tools-5834719fc17d4735fce0102738b87b70255cfd5f-new/source/link/CMakeLists.txt +@@ -11,7 +11,7 @@ + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. +-add_library(SPIRV-Tools-link ++add_library(SPIRV-Tools-link STATIC + linker.cpp + ) + +