mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 05:17:50 +08:00
e6a604d207
* [cppgraphqlgen] Build the latest v3.x release * vcpkg x-add-version --all * [cppgraphqlgen] Build latest main release * vcpkg x-add-version --all * Add a license field to vcpkg.json * vcpkg x-add-version --all --overwrite-version * Remove v3.7.1 which can't be committed separately
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO microsoft/cppgraphqlgen
|
|
REF v4.1.1
|
|
SHA512 20987f03719558cec2fac8aee5a94e59c5e833a318361aef802f39bc369af141fef0c7f2d3bb35324d44d289843564c2f7e890419f871bfd8e5d7d5de53b363e
|
|
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)
|