diff --git a/ports/netcpp/portfile.cmake b/ports/netcpp/portfile.cmake new file mode 100644 index 00000000000000..119b85f5b26461 --- /dev/null +++ b/ports/netcpp/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO index1207/netcpp + REF "v${VERSION}" + SHA512 5f4f99a65ce373f1712bf8fb90e5de4f9945f3467e6535e69fad49898fd8dae1fa534e27070d16557b05ee9fa4e3551900062f6c8220a2bd3b197cce82a57182 + HEAD_REF release +) + + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/netcpp PACKAGE_NAME netcpp) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) diff --git a/ports/netcpp/usage b/ports/netcpp/usage new file mode 100644 index 00000000000000..2a4e5273cdd86f --- /dev/null +++ b/ports/netcpp/usage @@ -0,0 +1,4 @@ +netcpp provides CMake targets: + + find_package(netcpp CONFIG REQUIRED) + target_link_libraries(main PRIVATE netcpp::netcpp) diff --git a/ports/netcpp/vcpkg.json b/ports/netcpp/vcpkg.json new file mode 100644 index 00000000000000..1bc5b9bda8b261 --- /dev/null +++ b/ports/netcpp/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "netcpp", + "version": "0.3.4", + "description": "A simple asynchronous network library", + "homepage": "https://github.com/index1207/netcpp", + "license": "MIT", + "supports": "windows", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "winsock2" + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index d7683bee988e22..74caf4004cf745 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6192,6 +6192,10 @@ "baseline": "4.3.1", "port-version": 5 }, + "netcpp": { + "baseline": "0.3.4", + "port-version": 0 + }, "netgen": { "baseline": "6.2.2401", "port-version": 2 diff --git a/versions/n-/netcpp.json b/versions/n-/netcpp.json new file mode 100644 index 00000000000000..b99baeaf762cfc --- /dev/null +++ b/versions/n-/netcpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "367142eff1e20648f9eda61fb0544233e255c806", + "version": "0.3.4", + "port-version": 0 + } + ] +}