From 0659bf17507c88f2da8cb196303a5b6fd862f817 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Wed, 4 Oct 2023 03:04:10 +0200 Subject: [PATCH] [cppdap] new port (#34214) --- ports/cppdap/portfile.cmake | 21 +++++++++++++++++++++ ports/cppdap/vcpkg.json | 18 ++++++++++++++++++ versions/baseline.json | 4 ++++ versions/c-/cppdap.json | 9 +++++++++ 4 files changed, 52 insertions(+) create mode 100644 ports/cppdap/portfile.cmake create mode 100644 ports/cppdap/vcpkg.json create mode 100644 versions/c-/cppdap.json diff --git a/ports/cppdap/portfile.cmake b/ports/cppdap/portfile.cmake new file mode 100644 index 00000000000000..f4f08875570bd6 --- /dev/null +++ b/ports/cppdap/portfile.cmake @@ -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") diff --git a/ports/cppdap/vcpkg.json b/ports/cppdap/vcpkg.json new file mode 100644 index 00000000000000..6e9563e80a53f0 --- /dev/null +++ b/ports/cppdap/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 4707a589fca6b8..fd7dac0ec136a1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/c-/cppdap.json b/versions/c-/cppdap.json new file mode 100644 index 00000000000000..73e4394edbb431 --- /dev/null +++ b/versions/c-/cppdap.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "ab1e5e1b50226ecd6d45d53b357dac35051a8a47", + "version-semver": "1.58.0-a", + "port-version": 0 + } + ] +}