vcpkg/ports/cppgraphqlgen/portfile.cmake
Bill Avery d856a6560e
[cppgraphqlgen] Update to v4.5.3 (#31448)
* [cppgraphqlgen] Update to v4.5.3

* Run vcpkg x-add-version --all

* Use VERSION variable in REF to stay in sync

* Run vcpkg x-add-version --overwrite-version cppgraphqlgen
2023-05-24 12:22:49 -07:00

35 lines
1.1 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/cppgraphqlgen
REF "v${VERSION}"
SHA512 0a41306862bc9f370fb369bd0cdc015fd15b95179ac2de60d8d412a26d385044177d1ca6e730e96e2ff0b0ffabcfe0246fdd3d926348641a145cd2894eb9cb7f
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)