diff --git a/ports/copypp/portfile.cmake b/ports/copypp/portfile.cmake new file mode 100644 index 00000000000..ba1157c08a4 --- /dev/null +++ b/ports/copypp/portfile.cmake @@ -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") diff --git a/ports/copypp/usage b/ports/copypp/usage new file mode 100644 index 00000000000..17bb740b9ed --- /dev/null +++ b/ports/copypp/usage @@ -0,0 +1,4 @@ +copypp provides CMake targets: + + find_package(copypp CONFIG REQUIRED) + target_link_libraries(main PRIVATE icurve::copypp) diff --git a/ports/copypp/vcpkg.json b/ports/copypp/vcpkg.json new file mode 100644 index 00000000000..db04c31a8ac --- /dev/null +++ b/ports/copypp/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 232ea0cf664..f45fe007712 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/c-/copypp.json b/versions/c-/copypp.json new file mode 100644 index 00000000000..87186d964cc --- /dev/null +++ b/versions/c-/copypp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "30342b837d13819393c9f898e82f5c2cf25bed32", + "version": "0.1.0", + "port-version": 0 + } + ] +}