2018-12-05 11:17:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-08-14 01:42:47 +08:00
|
|
|
REPO microsoft/cppgraphqlgen
|
2022-01-26 13:24:53 +08:00
|
|
|
REF v4.1.1
|
|
|
|
SHA512 20987f03719558cec2fac8aee5a94e59c5e833a318361aef802f39bc369af141fef0c7f2d3bb35324d44d289843564c2f7e890419f871bfd8e5d7d5de53b363e
|
2021-01-13 11:51:46 +08:00
|
|
|
HEAD_REF main
|
2018-12-05 11:17:54 +08:00
|
|
|
)
|
|
|
|
|
2021-12-21 00:30:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-12-05 11:17:54 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-01-13 11:51:46 +08:00
|
|
|
OPTIONS
|
|
|
|
-DGRAPHQL_BUILD_TESTS=OFF
|
|
|
|
-DGRAPHQL_UPDATE_VERSION=OFF
|
|
|
|
-DGRAPHQL_UPDATE_SAMPLES=OFF
|
|
|
|
-DGRAPHQL_INSTALL_CONFIGURATIONS=Release
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share
|
|
|
|
-DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/tools
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share
|
|
|
|
-DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/debug/tools
|
2018-12-05 11:17:54 +08:00
|
|
|
)
|
|
|
|
|
2021-12-21 00:30:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-12-05 11:17:54 +08:00
|
|
|
|
2021-12-21 00:30:04 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2018-12-05 11:17:54 +08:00
|
|
|
|
2021-01-20 14:31:14 +08:00
|
|
|
vcpkg_copy_tools(
|
2021-12-21 00:30:04 +08:00
|
|
|
TOOL_NAMES schemagen clientgen
|
2021-01-20 14:31:14 +08:00
|
|
|
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/cppgraphqlgen)
|
2019-04-24 06:19:51 +08:00
|
|
|
|
2018-12-05 11:17:54 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-09-28 08:54:12 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|