mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 01:30:55 +08:00
[cppgraphqlgen] Expose clientgen/schemagen features (#42267)
This commit is contained in:
parent
2d84d4fe5f
commit
0b91cf32ea
@ -17,7 +17,9 @@ vcpkg_from_github(
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
clientgen GRAPHQL_BUILD_CLIENTGEN
|
||||
rapidjson GRAPHQL_USE_RAPIDJSON
|
||||
schemagen GRAPHQL_BUILD_SCHEMAGEN
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
@ -40,9 +42,19 @@ vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
vcpkg_copy_tools(
|
||||
TOOL_NAMES schemagen clientgen
|
||||
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/cppgraphqlgen)
|
||||
set(tools "")
|
||||
if ("clientgen" IN_LIST FEATURES)
|
||||
list(APPEND tools clientgen)
|
||||
endif()
|
||||
if ("schemagen" IN_LIST FEATURES)
|
||||
list(APPEND tools schemagen)
|
||||
endif()
|
||||
list(LENGTH tools num_tools)
|
||||
if (num_tools GREATER 0)
|
||||
vcpkg_copy_tools(
|
||||
TOOL_NAMES ${tools}
|
||||
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/cppgraphqlgen)
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
|
@ -1,12 +1,11 @@
|
||||
{
|
||||
"name": "cppgraphqlgen",
|
||||
"version": "4.5.7",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "C++ GraphQL schema service generator",
|
||||
"homepage": "https://github.com/microsoft/cppgraphqlgen",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"boost-program-options",
|
||||
"pegtl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
@ -21,11 +20,23 @@
|
||||
"rapidjson"
|
||||
],
|
||||
"features": {
|
||||
"clientgen": {
|
||||
"description": "Build the clientgen CLI tool.",
|
||||
"dependencies": [
|
||||
"boost-program-options"
|
||||
]
|
||||
},
|
||||
"rapidjson": {
|
||||
"description": "Build the graphqljson library with RapidJSON.",
|
||||
"dependencies": [
|
||||
"rapidjson"
|
||||
]
|
||||
},
|
||||
"schemagen": {
|
||||
"description": "Build the schemagen CLI tool.",
|
||||
"dependencies": [
|
||||
"boost-program-options"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1966,7 +1966,7 @@
|
||||
},
|
||||
"cppgraphqlgen": {
|
||||
"baseline": "4.5.7",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"cppitertools": {
|
||||
"baseline": "2.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "3ad7f8b9f23c95604d6fe6cd0710af8a4ea99176",
|
||||
"version": "4.5.7",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "6fa915d7e50edceda898664f00c7860694433fab",
|
||||
"version": "4.5.7",
|
||||
|
Loading…
x
Reference in New Issue
Block a user