mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[cppgraphqlgen] Add a port for Microsoft/cppgraphqlgen (#4825)
* [cppgraphqlgen] Add a port for Microsoft/cppgraphqlgen * Update hash for replacement tag * Change the github ref to a commit ID to invalidate cached downloads * Upgrade to cppgraphqlgen v0.6
This commit is contained in:
parent
ab924c1b10
commit
54e497ec6b
4
ports/cppgraphqlgen/CONTROL
Normal file
4
ports/cppgraphqlgen/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: cppgraphqlgen
|
||||
Version: 0.6
|
||||
Build-Depends: pegtl, rapidjson
|
||||
Description: C++ GraphQL schema service generator
|
27
ports/cppgraphqlgen/portfile.cmake
Normal file
27
ports/cppgraphqlgen/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Microsoft/cppgraphqlgen
|
||||
REF v0.6
|
||||
SHA512 cc2596f5cd975377fcc9432eee11973e2ff044c244c3ac13c3f45549874c2fe0ac5c48bccb96813b48a1b7c940bb54decc194d9eb358c6ae39d1288b9ce58b01
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
OPTIONS -DBUILD_TESTS=OFF -DUPDATE_SAMPLES=OFF
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/cppgraphqlgen/copyright COPYONLY)
|
||||
|
||||
vcpkg_test_cmake(PACKAGE_NAME cppgraphqlgen)
|
Loading…
x
Reference in New Issue
Block a user