2018-12-04 19:17:54 -08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-08-13 10:42:47 -07:00
|
|
|
REPO microsoft/cppgraphqlgen
|
2023-05-24 12:22:49 -07:00
|
|
|
REF "v${VERSION}"
|
2023-11-17 15:03:59 -08:00
|
|
|
SHA512 8079b2690ef4fba491e96ef2ed3da61d0c0b7bee3f61fa6d1fb95c771f1a8220a7b15b489b21bf9b1627e8616f95c65b43b8f63ee93cb0193edac4cb54307b3a
|
2021-01-12 19:51:46 -08:00
|
|
|
HEAD_REF main
|
2018-12-04 19:17:54 -08:00
|
|
|
)
|
|
|
|
|
2023-11-17 15:03:59 -08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
rapidjson GRAPHQL_USE_RAPIDJSON
|
|
|
|
)
|
|
|
|
|
2021-12-20 08:30:04 -08:00
|
|
|
vcpkg_cmake_configure(
|
2018-12-04 19:17:54 -08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-01-12 19:51:46 -08:00
|
|
|
OPTIONS
|
|
|
|
-DGRAPHQL_BUILD_TESTS=OFF
|
|
|
|
-DGRAPHQL_UPDATE_VERSION=OFF
|
|
|
|
-DGRAPHQL_UPDATE_SAMPLES=OFF
|
|
|
|
-DGRAPHQL_INSTALL_CONFIGURATIONS=Release
|
2023-11-17 15:03:59 -08:00
|
|
|
${FEATURE_OPTIONS}
|
2021-01-12 19:51:46 -08:00
|
|
|
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-04 19:17:54 -08:00
|
|
|
)
|
|
|
|
|
2021-12-20 08:30:04 -08:00
|
|
|
vcpkg_cmake_install()
|
2018-12-04 19:17:54 -08:00
|
|
|
|
2021-12-20 08:30:04 -08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2018-12-04 19:17:54 -08:00
|
|
|
|
2021-01-19 22:31:14 -08:00
|
|
|
vcpkg_copy_tools(
|
2021-12-20 08:30:04 -08:00
|
|
|
TOOL_NAMES schemagen clientgen
|
2021-01-19 22:31:14 -08:00
|
|
|
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/cppgraphqlgen)
|
2019-04-23 15:19:51 -07:00
|
|
|
|
2018-12-04 19:17:54 -08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-09-27 17:54:12 -07:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|