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
|
2021-06-03 12:40:41 -07:00
|
|
|
REF v3.6.0
|
|
|
|
SHA512 148751b1db1b3e917e74ef93fe3533a29153f0b5d1a20544eda32d0376e2c6f5cfc2d60fbc9d077d595e7072d0b6a36dbf8f2524903db40b576ee48196b2c3e8
|
2021-01-12 19:51:46 -08:00
|
|
|
HEAD_REF main
|
2018-12-04 19:17:54 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-01-08 16:03:57 -05:00
|
|
|
PREFER_NINJA
|
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
|
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
|
2021-01-19 22:31:14 -08:00
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES schemagen
|
|
|
|
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(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|