2022-02-11 09:12:38 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KhronosGroup/SPIRV-Reflect
|
2023-12-15 15:33:39 +08:00
|
|
|
REF "vulkan-sdk-${VERSION}"
|
2024-08-16 09:37:52 +08:00
|
|
|
SHA512 5de92dbd04424fb09f6c2a4c890572b2789017b737822d5bc8ab713aeede0796cdcc7ffe74e3ffe25cdd4c626e94bd60757e1cc625ede02b8fe3994b07588b44
|
2024-04-19 07:42:40 +08:00
|
|
|
HEAD_REF main
|
|
|
|
PATCHES
|
|
|
|
export-targets.patch
|
2022-02-11 09:12:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-04-19 07:42:40 +08:00
|
|
|
OPTIONS
|
|
|
|
-DSPIRV_REFLECT_STATIC_LIB=ON
|
|
|
|
-DSPIRV_REFLECT_EXAMPLES=OFF
|
|
|
|
-DSPIRV_REFLECT_BUILD_TESTS=OFF
|
2022-02-11 09:12:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2024-04-19 07:42:40 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-spirv-reflect)
|
|
|
|
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/spirv-reflect/spirv_reflect.h" "./include/spirv/unified1/spirv.h" "spirv.h")
|
|
|
|
|
2022-02-11 09:12:38 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2023-12-15 15:33:39 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES spirv-reflect-pp spirv-reflect AUTO_CLEAN)
|