diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets')
4 files changed, 57 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/portfile.cmake new file mode 100644 index 0000000..bc78596 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/portfile.cmake @@ -0,0 +1,4 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) + +vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project") +vcpkg_cmake_build() diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt new file mode 100644 index 0000000..9a09081 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.30) +project(uwebsockets-test CXX) + +find_package(unofficial-uwebsockets CONFIG REQUIRED) + +add_executable(main main.cxx) +target_link_libraries(main PRIVATE + $<TARGET_NAME:unofficial::uwebsockets::uwebsockets> +) diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx new file mode 100644 index 0000000..1c64685 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx @@ -0,0 +1,10 @@ +#include <string> +#include <uwebsockets/App.h> + +int main() +{ + uWS::App().get("/hello", [](auto *res, auto *req) { + res->end("Hello World!"); + }); + return 0; +} diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/vcpkg.json new file mode 100644 index 0000000..17fa450 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/vcpkg.json @@ -0,0 +1,34 @@ +{ + "name": "vcpkg-ci-uwebsockets", + "version-string": "ci", + "description": "Port to test features of uwebsockets within CI", + "homepage": "https://github.com/microsoft/vcpkg", + "license": "MIT", + "dependencies": [ + { + "name": "uwebsockets", + "default-features": false + }, + { + "name": "vcpkg-cmake", + "host": true + } + ], + "default-features": [ + "all" + ], + "features": { + "all": { + "description": "Test all features", + "dependencies": [ + { + "name": "uwebsockets", + "features": [ + "ssl", + "zlib" + ] + } + ] + } + } +} |