[cppdap] new port (#34214)

This commit is contained in:
Frederik Carlier 2023-10-04 03:04:10 +02:00 committed by GitHub
parent e2f81f7984
commit 0659bf1750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/cppdap
REF "dap-${VERSION}"
SHA512 36f31cf7b90190820f5a5b7df679a3ca1a4f51b58a7a4c46f85c7b55b0ad9dbeba3436992b5eb8a3fd4499fc38bbf2b16f834f5f1989717f151abf13c262c747
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/cppdap")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

18
ports/cppdap/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "cppdap",
"version-semver": "1.58.0-a",
"description": "A C++11 library (\"SDK\") implementation of the Debug Adapter Protocol, providing an API for implementing a DAP client or server.",
"homepage": "https://github.com/google/cppdap",
"license": "Apache-2.0",
"dependencies": [
"nlohmann-json",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1820,6 +1820,10 @@
"baseline": "2022-10-25",
"port-version": 0
},
"cppdap": {
"baseline": "1.58.0-a",
"port-version": 0
},
"cppfs": {
"baseline": "1.3.0",
"port-version": 3

9
versions/c-/cppdap.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ab1e5e1b50226ecd6d45d53b357dac35051a8a47",
"version-semver": "1.58.0-a",
"port-version": 0
}
]
}