mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 03:09:04 +08:00
50bffcc62d
* Install vulkan. * add gfxreconstruct * format manifest and cr changes * remove moltenvk * fix ci part 1 * fix a dep * more fixes * remove vulkan failures from CI pipeline * remove annoying stuff to deal with in static builds * fix trailing , * remove vendored cmakelists * force ci to be green * format manifest * Fix more ci issues * fix hikogui * make ci happier * add jsoncpp dep * only remove the debug folder if targeting windows * bump port-version * v db * vulkan-loader add usage * Rename vulkantools to lunarg-vulkantools * Make VMA install headers platform dependent * Remove vcpkg_check_linkage * readd vulkan-validationlayers * v db
32 lines
1.4 KiB
CMake
32 lines
1.4 KiB
CMake
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
|
|
|
|
set(vulkan_result_file "${CURRENT_BUILDTREES_DIR}/vulkan-${TARGET_TRIPLET}.cmake.log")
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}"
|
|
OPTIONS
|
|
"-DVCPKG_VULKAN_VERSION=${VERSION}"
|
|
OPTIONS_RELEASE
|
|
"-DOUTFILE=${vulkan_result_file}"
|
|
)
|
|
|
|
include("${vulkan_result_file}")
|
|
if(DETECTED_Vulkan_FOUND)
|
|
message(STATUS "Found Vulkan SDK ${DETECTED_Vulkan_VERSION} (${DETECTED_Vulkan_LIBRARIES})")
|
|
else()
|
|
set(message "The Vulkan SDK wasn't found. ")
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
string(APPEND message "Refer to Getting Started with the Windows Vulkan SDK: https://vulkan.lunarg.com/doc/sdk/latest/windows/getting_started.html")
|
|
elseif(VCPKG_TARGET_IS_OSX)
|
|
string(APPEND message "Refer to Getting Started with the MacOS Vulkan SDK: https://vulkan.lunarg.com/doc/sdk/latest/mac/getting_started.html")
|
|
elseif(VCPKG_TARGET_IS_LINUX)
|
|
string(APPEND message "Refer to Getting Started with the Linux Vulkan SDK: https://vulkan.lunarg.com/doc/sdk/latest/linux/getting_started.html")
|
|
endif()
|
|
message(FATAL_ERROR "${message}")
|
|
endif()
|
|
|
|
find_file(vulkan_license NAMES LICENSE.txt PATHS ${DETECTED_Vulkan_INCLUDE_DIRS} "${CURRENT_PORT_DIR}" PATH_SUFFIXES "..")
|
|
vcpkg_install_copyright(FILE_LIST "${vulkan_license}")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|