2024-01-25 03:26:41 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
|
2023-12-15 15:33:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO LunarG/VulkanTools
|
|
|
|
REF "vulkan-sdk-${VERSION}"
|
2024-03-27 02:52:49 +08:00
|
|
|
SHA512 4b22a32720ae541ec28c9cafa7edd0656639840863b7dd1054a7d73648d23e11f19b7a4804a6727601ff4c6e53606016584f104b83c1afd227a6844ad0acd2d1
|
2023-12-15 15:33:39 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/via/CMakeLists.txt" "jsoncpp_static" "JsonCpp::JsonCpp")
|
|
|
|
|
|
|
|
x_vcpkg_get_python_packages(PYTHON_VERSION "3" PACKAGES jsonschema OUT_PYTHON_VAR PYTHON3)
|
|
|
|
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
|
|
|
vcpkg_add_to_path("${PYTHON3_DIR}")
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DVULKAN_HEADERS_INSTALL_DIR=${CURRENT_INSTALLED_DIR}
|
|
|
|
-DBUILD_TESTS:BOOL=OFF
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DVULKAN_LOADER_INSTALL_DIR=${CURRENT_INSTALLED_DIR}
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DVULKAN_LOADER_INSTALL_DIR=${CURRENT_INSTALLED_DIR}/debug
|
|
|
|
|
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
2024-01-25 03:26:41 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2023-12-15 15:33:39 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
|
|
|
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES vkvia vkconfig AUTO_CLEAN )
|
|
|
|
|
2024-01-25 03:26:41 +08:00
|
|
|
set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
|
2023-12-15 15:33:39 +08:00
|
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|