vcpkg/ports/cppgraphqlgen/portfile.cmake
Bill Avery bc85a6310b
[cppgraphqlgen] Update to latest 4.0.0 release (#22071)
* [cppgraphqlgen] Update to latest 4.0.0 release

* [cppgraphqlgen] vcpkg x-add-version cppgraphqlgen

* [cppgraphqlgen] Replace deprecated vcpkg functions

* [cppgraphqlgen] Re-run vcpkg x-add-version

* Flag the x64-linux CI pipeline as known failure
2021-12-20 11:30:04 -05:00

35 lines
1.1 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/cppgraphqlgen
REF v4.0.0
SHA512 5e356234e9e47977077f36fdd4a811fe140559a6961b2c8f1a4cd56559df444e890da1863d6b020b1afcec81cd82f7bf91d907a635089459b98da9b74613aae0
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
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
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
vcpkg_copy_tools(
TOOL_NAMES schemagen clientgen
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/cppgraphqlgen)
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)