mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 13:59:01 +08:00
6cb4f0cc87
* [cppgraphqlgen] Update to v4.2.0 * Run vcpkg x-add-version --all
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.2.0
|
|
SHA512 81dd9d81c7f05470b2bfd106e75b54aa79ae15085b43daab68b4ce4784c5b1885e5eb342e4c29c3131e79d566627b7cf46901311c51c18334b440f4744c44142
|
|
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)
|