mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 19:17:55 +08:00
312613241a
Fixes #37077 - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [x] The "supports" clause reflects platforms that may be fixed by this new version. - [x] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [x] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
39 lines
1.4 KiB
CMake
39 lines
1.4 KiB
CMake
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO DragonJoker/RenderGraph
|
|
REF v${VERSION}
|
|
HEAD_REF master
|
|
SHA512 00b15faf541a1fc163c10ddae9061355dca44ce5fbb379f80c3c8d4f554b6815dec8167a868dd5227d3ef49444867f124c025153db3fbe80e4a2bd27a739b74e
|
|
)
|
|
|
|
vcpkg_from_github(OUT_SOURCE_PATH CMAKE_SOURCE_PATH
|
|
REPO DragonJoker/CMakeUtils
|
|
REF d66b1c5e964368e036fbfd70a22e84077a7de236
|
|
HEAD_REF master
|
|
SHA512 040c6886675894b4bdb89e9ef5f9f24b669c5644aec88082d06429cb0d47bb041e72517921518b85e02f124058db6182f57e74568d08b1b2316b1992b01f1a3a
|
|
)
|
|
|
|
get_filename_component(SRC_PATH "${CMAKE_SOURCE_PATH}" DIRECTORY)
|
|
if (EXISTS "${SRC_PATH}/CMake")
|
|
file(REMOVE_RECURSE "${SRC_PATH}/CMake")
|
|
endif()
|
|
file(RENAME "${CMAKE_SOURCE_PATH}" "${SRC_PATH}/CMake")
|
|
set(CMAKE_SOURCE_PATH "${SRC_PATH}/CMake")
|
|
file(COPY "${CMAKE_SOURCE_PATH}" DESTINATION "${SOURCE_PATH}")
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DPROJECTS_USE_PRECOMPILED_HEADERS=ON
|
|
-DCRG_UNITY_BUILD=ON
|
|
-DCRG_BUILD_STATIC=${BUILD_STATIC}
|
|
-DVULKAN_HEADERS_INCLUDE_DIRS=${CURRENT_INSTALLED_DIR}/include
|
|
)
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/RenderGraph)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|