diff options
| author | IronsDu <irons.du@gmail.com> | 2021-05-14 02:07:01 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-13 11:07:01 -0700 |
| commit | eba919784de3c4fbf2be79a5a8f7fdb9dcd8927f (patch) | |
| tree | 7a6ac1c88e6e72ef406f5a04ccd2d3de11cae6e1 /ports | |
| parent | 6a274ad4b370b3b729d3af6227f57257ec708b43 (diff) | |
| download | vcpkg-eba919784de3c4fbf2be79a5a8f7fdb9dcd8927f.tar.gz vcpkg-eba919784de3c4fbf2be79a5a8f7fdb9dcd8927f.zip | |
[bsio] Add new port (#17789)
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* add the port of bsio library
* Update portfile.cmake
Format vcpkg_cmake_configure
* add the port of bsio library
Co-authored-by: duzhongwei <duzhongwei@querycap.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/bsio/portfile.cmake | 19 | ||||
| -rw-r--r-- | ports/bsio/vcpkg.json | 13 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/bsio/portfile.cmake b/ports/bsio/portfile.cmake new file mode 100644 index 000000000..f88038d87 --- /dev/null +++ b/ports/bsio/portfile.cmake @@ -0,0 +1,19 @@ +#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ArkNX/bsio
+ REF v1.0.0
+ SHA512 28b895b823d84203f4cec531ddd5bb49dc915e9a4eb26e064834d1e999b98e512b37d361e59029eb6d7e44fe99ba81f9c5729f119eab7eb928de1a1374f0b7df
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -Dbsio_BUILD_EXAMPLES=OFF
+)
+vcpkg_cmake_install()
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
diff --git a/ports/bsio/vcpkg.json b/ports/bsio/vcpkg.json new file mode 100644 index 000000000..fe8fad416 --- /dev/null +++ b/ports/bsio/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "bsio", + "version": "1.0.0", + "description": "networking library, ans support HTTP/WebSocket, based on asio.", + "homepage": "https://github.com/ArkNX/bsio", + "dependencies": [ + "asio", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |
