2020-10-22 08:41:01 +08:00
|
|
|
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO DragonJoker/ShaderWriter
|
2022-06-11 00:59:34 +08:00
|
|
|
REF e962d383c9c418767b96d2c3e864b3800e98826f
|
2022-04-07 05:18:50 +08:00
|
|
|
HEAD_REF development
|
2022-06-11 00:59:34 +08:00
|
|
|
SHA512 7ef1d4622bb1a38f201e9325ffca0de675816e9dc6f644d2e4a900409a5045f603dda5c86a3099a99f3be70175ca7bf6aed1c4c1e25aa9b5172967e30498536d
|
2020-10-22 08:41:01 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_from_github(OUT_SOURCE_PATH CMAKE_SOURCE_PATH
|
|
|
|
REPO DragonJoker/CMakeUtils
|
2022-06-11 00:59:34 +08:00
|
|
|
REF 9fbaae40ccdc92f86989dc6875f362e7943b6a94
|
2020-10-22 08:41:01 +08:00
|
|
|
HEAD_REF master
|
2022-06-11 00:59:34 +08:00
|
|
|
SHA512 dada8ac1f9676c60f1ff5a09a9f788eb8d85eaca450407e4bf0100fbec87228f99cf66cb23de9c9358dda72c426655814cbd1ea90360ca0c63e7660c15aff22b
|
2020-10-22 08:41:01 +08:00
|
|
|
)
|
|
|
|
|
2022-04-07 05:18:50 +08:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/CMake")
|
|
|
|
file(COPY "${CMAKE_SOURCE_PATH}/" DESTINATION "${SOURCE_PATH}/CMake")
|
2020-10-22 08:41:01 +08:00
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
|
|
|
|
2022-01-26 14:26:41 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-10-22 08:41:01 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DPROJECTS_USE_PRECOMPILED_HEADERS=OFF
|
|
|
|
-DSDW_GENERATE_SOURCE=OFF
|
2021-02-04 05:01:16 +08:00
|
|
|
-DSDW_BUILD_VULKAN_LAYER=OFF
|
2020-10-22 08:41:01 +08:00
|
|
|
-DSDW_BUILD_TESTS=OFF
|
|
|
|
-DSDW_BUILD_STATIC_SDW=${BUILD_STATIC}
|
2021-04-29 23:22:26 +08:00
|
|
|
-DSDW_BUILD_STATIC_SDAST=${BUILD_STATIC}
|
2022-04-07 05:18:50 +08:00
|
|
|
-DSDW_UNITY_BUILD=ON
|
2020-10-22 08:41:01 +08:00
|
|
|
)
|
|
|
|
|
2022-06-11 00:59:34 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-01-26 14:26:41 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-06-11 00:59:34 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ShaderWriter CONFIG_PATH lib/cmake/shaderwriter)
|
2020-10-22 08:41:01 +08:00
|
|
|
|
2022-04-07 05:18:50 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|