aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/uwebsockets/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/uwebsockets/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/uwebsockets/portfile.cmake')
-rw-r--r--vcpkg/ports/uwebsockets/portfile.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/uwebsockets/portfile.cmake b/vcpkg/ports/uwebsockets/portfile.cmake
new file mode 100644
index 0000000..f20e7f4
--- /dev/null
+++ b/vcpkg/ports/uwebsockets/portfile.cmake
@@ -0,0 +1,23 @@
+# header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO uNetworking/uWebSockets
+ REF "v${VERSION}"
+ SHA512 a2a46ae4f92eb31c43bd717d75003db5930462a10eb7a48b80b662f77a53af4fc24cf3209857ba01a7317784469a63386731271df4edf7ab99fe748ad709387c
+ HEAD_REF master
+)
+
+file(COPY "${SOURCE_PATH}/src" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+file(RENAME "${CURRENT_PACKAGES_DIR}/include/src" "${CURRENT_PACKAGES_DIR}/include/uwebsockets")
+
+set(UWS_NO_LIBDEFLATE 1)
+if("libdeflate" IN_LIST FEATURES)
+ set(UWS_NO_LIBDEFLATE 0)
+endif()
+set(UWS_NO_ZLIB 1)
+if("zlib" IN_LIST FEATURES)
+ set(UWS_NO_ZLIB 0)
+endif()
+configure_file("${CURRENT_PORT_DIR}/unofficial-uwebsockets-config.cmake" "${CURRENT_PACKAGES_DIR}/share/unofficial-uwebsockets/unofficial-uwebsockets-config.cmake" @ONLY)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")