diff options
| author | An Tao <antao2002@gmail.com> | 2020-06-02 09:43:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-01 18:43:26 -0700 |
| commit | 60e369079041680cd4e69ea19533ee2db7039612 (patch) | |
| tree | 815f40de2ee4dfe3a9ac732a8448491bd139a6e0 | |
| parent | 1f07d885f1aa269fd050ff1fe2e49c93e113b798 (diff) | |
| download | vcpkg-60e369079041680cd4e69ea19533ee2db7039612.tar.gz vcpkg-60e369079041680cd4e69ea19533ee2db7039612.zip | |
[trantor] Add new port (#11533)
* [trantor] Add new port
* Apply suggestions from code review
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* Remove unused lines.
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
| -rw-r--r-- | ports/trantor/CONTROL | 5 | ||||
| -rw-r--r-- | ports/trantor/portfile.cmake | 26 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/trantor/CONTROL b/ports/trantor/CONTROL new file mode 100644 index 000000000..20e5e15b5 --- /dev/null +++ b/ports/trantor/CONTROL @@ -0,0 +1,5 @@ +Source: trantor
+Version: v1.0.0-rc13
+Homepage: https://github.com/an-tao/trantor
+Description: A non-blocking I/O cross-platform TCP network library, using C++14.
+Build-Depends: openssl, c-ares
\ No newline at end of file diff --git a/ports/trantor/portfile.cmake b/ports/trantor/portfile.cmake new file mode 100644 index 000000000..92e6010c5 --- /dev/null +++ b/ports/trantor/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO an-tao/trantor
+ REF v1.0.0-rc13
+ SHA512 a2670944a435d5bebee5fc9f14c09aa00d1c86375207c8122d2490ea0636d535a33006ae61d532f503cf877f3d9eb6cfbbf326828e02e29a321212bad2b1606f
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+# Fix CMake files
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Trantor)
+
+# # Remove includes in debug
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/License DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+
+# Copy pdb files
+vcpkg_copy_pdbs()
|
