2022-04-07 05:38:58 +08:00
|
|
|
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO DragonJoker/RenderGraph
|
2023-04-03 12:13:01 +08:00
|
|
|
REF v${VERSION}
|
2022-04-07 05:38:58 +08:00
|
|
|
HEAD_REF master
|
2024-03-05 18:12:19 +08:00
|
|
|
SHA512 00b15faf541a1fc163c10ddae9061355dca44ce5fbb379f80c3c8d4f554b6815dec8167a868dd5227d3ef49444867f124c025153db3fbe80e4a2bd27a739b74e
|
2022-04-07 05:38:58 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_from_github(OUT_SOURCE_PATH CMAKE_SOURCE_PATH
|
|
|
|
REPO DragonJoker/CMakeUtils
|
2024-03-05 18:12:19 +08:00
|
|
|
REF d66b1c5e964368e036fbfd70a22e84077a7de236
|
2022-04-07 05:38:58 +08:00
|
|
|
HEAD_REF master
|
2024-03-05 18:12:19 +08:00
|
|
|
SHA512 040c6886675894b4bdb89e9ef5f9f24b669c5644aec88082d06429cb0d47bb041e72517921518b85e02f124058db6182f57e74568d08b1b2316b1992b01f1a3a
|
2022-04-07 05:38:58 +08:00
|
|
|
)
|
|
|
|
|
2022-06-09 20:26:07 +08:00
|
|
|
get_filename_component(SRC_PATH "${CMAKE_SOURCE_PATH}" DIRECTORY)
|
|
|
|
if (EXISTS "${SRC_PATH}/CMake")
|
|
|
|
file(REMOVE_RECURSE "${SRC_PATH}/CMake")
|
2022-04-07 05:38:58 +08:00
|
|
|
endif()
|
2022-06-09 20:26:07 +08:00
|
|
|
file(RENAME "${CMAKE_SOURCE_PATH}" "${SRC_PATH}/CMake")
|
|
|
|
set(CMAKE_SOURCE_PATH "${SRC_PATH}/CMake")
|
|
|
|
file(COPY "${CMAKE_SOURCE_PATH}" DESTINATION "${SOURCE_PATH}")
|
2022-04-07 05:38:58 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2023-04-03 12:13:01 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-04-07 05:38:58 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/RenderGraph)
|
|
|
|
|
2023-04-03 12:13:01 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|