[copypp] New port #35309 (#35310)

* [copypp] New port #35309

* update version. #35309

Signed-off-by: i-curve <i-curve@qq.com>

* [copypp] modify the style as suggested #35309

Signed-off-by: i-curve <i-curve@qq.com>

* [copypp] update the version (#35309)

* [copypp] modify file format (#35309)

Signed-off-by: i-curve <i-curve@qq.com>

* [copypp] update the version (#35309)

Signed-off-by: i-curve <i-curve@qq.com>

* [copypp] remove deprecated function (#35309)

Signed-off-by: i-curve <i-curve@qq.com>

* [copypp] update version (#35309)

Signed-off-by: i-curve <i-curve@qq.com>

---------

Signed-off-by: i-curve <i-curve@qq.com>
This commit is contained in:
i-curve 2023-11-29 16:42:11 +08:00 committed by GitHub
parent e347008886
commit 352d062274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,25 @@
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO i-curve/copypp
REF "v${VERSION}"
SHA512 a13a3ee105b3802f585c086846dbce7d5e9c23d11bf55fcc0c63e1a4b21fc6798f1a324cfb3da66b715dfc22a4f1f7ba51a2f4e10db331f7d4fd6b20a9be6d41
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS "-DCOPYPP_TEST=OFF"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/copypp)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

4
ports/copypp/usage Normal file
View File

@ -0,0 +1,4 @@
copypp provides CMake targets:
find_package(copypp CONFIG REQUIRED)
target_link_libraries(main PRIVATE icurve::copypp)

17
ports/copypp/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "copypp",
"version": "0.1.0",
"description": "support field copy in different c++ struct.",
"homepage": "https://github.com/i-curve/copypp",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1788,6 +1788,10 @@
"baseline": "6.4.3",
"port-version": 3
},
"copypp": {
"baseline": "0.1.0",
"port-version": 0
},
"coroutine": {
"baseline": "1.5.0",
"port-version": 5

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

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "30342b837d13819393c9f898e82f5c2cf25bed32",
"version": "0.1.0",
"port-version": 0
}
]
}