2019-09-04 07:01:58 +08:00
|
|
|
# volk is not prepared to be a DLL.
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zeux/volk
|
2024-10-19 11:58:11 +08:00
|
|
|
REF "vulkan-sdk-${VERSION}"
|
|
|
|
SHA512 bc57ab2d0408fba6d66c91eb477392e217ec5b4185db1191c9ed7750f3773c513674b0bb4f3378a0ee38038d0447aa868ca79842192c6060a6e8b33ca81552f0
|
2019-09-04 07:01:58 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-03-30 08:25:31 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DVOLK_INSTALL=ON
|
2022-11-12 01:09:23 +08:00
|
|
|
-DVULKAN_HEADERS_INSTALL_DIR=${CURRENT_INSTALLED_DIR}
|
2019-09-04 07:01:58 +08:00
|
|
|
)
|
2022-03-30 08:25:31 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-09-04 07:01:58 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-03-30 08:25:31 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/volk)
|
2019-09-04 07:01:58 +08:00
|
|
|
|
2022-03-30 08:25:31 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-04 07:01:58 +08:00
|
|
|
|
2023-08-04 21:46:11 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|