aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/portfile.cmake4
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/CMakeLists.txt9
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/project/main.cxx10
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-uwebsockets/vcpkg.json34
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"
+ ]
+ }
+ ]
+ }
+ }
+}