Skip to content

Commit

Permalink
packages/spirv: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rorgoroth committed Dec 21, 2024
1 parent 485b2ad commit d9e0c24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/spirv-cross-0001.patch
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ index 6860c5b..3ef7718 100644
@@ -345,7 +345,7 @@ if (SPIRV_CROSS_SHARED)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/spirv-cross-c-shared.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif()

- spirv_cross_add_library(spirv-cross-c-shared spirv_cross_c_shared SHARED
+ spirv_cross_add_library(spirv-cross-c-shared spirv_cross_c_shared STATIC
${spirv-cross-core-sources}
${spirv-cross-c-sources})

@@ -401,11 +401,6 @@ if (SPIRV_CROSS_SHARED)
endif()
endif()

- target_compile_definitions(spirv-cross-c-shared PRIVATE SPVC_EXPORT_SYMBOLS)
-
- set_target_properties(spirv-cross-c-shared PROPERTIES
- VERSION ${SPIRV_CROSS_VERSION}
- SOVERSION ${spirv-cross-abi-major})
endif()

if (SPIRV_CROSS_CLI)
--
--
2.33.0
1 change: 1 addition & 0 deletions packages/spirv-cross.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ExternalProject_Add(
CONFIGURE_COMMAND
${EXEC} cmake -H<SOURCE_DIR> -B<BINARY_DIR>
${cmake_conf_args}
-DBUILD_SHARED_LIBS=OFF
-DSPIRV_CROSS_SHARED=ON
-DSPIRV_CROSS_CLI=OFF
-DSPIRV_CROSS_ENABLE_TESTS=OFF
Expand Down

0 comments on commit d9e0c24

Please sign in to comment.