|
@@ -1,4 +1,5 @@
|
|
package("uwebsockets")
|
|
package("uwebsockets")
|
|
|
|
+ set_kind("library", {headeronly = true})
|
|
set_homepage("https://github.com/uNetworking")
|
|
set_homepage("https://github.com/uNetworking")
|
|
set_description("Simple, secure & standards compliant web server for the most demanding of applications.")
|
|
set_description("Simple, secure & standards compliant web server for the most demanding of applications.")
|
|
set_license("Apache-2.0")
|
|
set_license("Apache-2.0")
|
|
@@ -10,16 +11,12 @@ package("uwebsockets")
|
|
add_versions("v20.61.0", "94778209571f832740fe1a4f19dbc059990b6acc34b8789f39cda6a158178d1f")
|
|
add_versions("v20.61.0", "94778209571f832740fe1a4f19dbc059990b6acc34b8789f39cda6a158178d1f")
|
|
add_versions("v20.60.0", "eb72223768f93d40038181653ee5b59a53736448a6ff4e8924fd56b2fcdc00db")
|
|
add_versions("v20.60.0", "eb72223768f93d40038181653ee5b59a53736448a6ff4e8924fd56b2fcdc00db")
|
|
|
|
|
|
- add_configs("ssl", {description = "Select ssl library", default = nil, type = "string", values = {"openssl", "wolfssl", "boringssl"}})
|
|
|
|
- add_configs("uv", {description = "Enable libuv", default = false, type = "boolean"})
|
|
|
|
- add_configs("uring", {description = "Enable liburing", default = false, type = "boolean"})
|
|
|
|
- add_configs("quic", {description = "Enable lsquic", default = false, type = "boolean", readonly = true})
|
|
|
|
-
|
|
|
|
add_configs("zip", {description = "Enable libzip", default = false, type = "boolean"})
|
|
add_configs("zip", {description = "Enable libzip", default = false, type = "boolean"})
|
|
add_configs("deflate", {description = "Enable libdeflate", default = false, type = "boolean"})
|
|
add_configs("deflate", {description = "Enable libdeflate", default = false, type = "boolean"})
|
|
|
|
|
|
|
|
+ add_deps("usockets")
|
|
|
|
+
|
|
on_load(function (package)
|
|
on_load(function (package)
|
|
- package:add("deps", "usockets", {configs = {ssl = package:config("ssl"), uv = package:config("uv"), uring = package:config("uring"), quic = package:config("quic")}})
|
|
|
|
if package:config("zip") then
|
|
if package:config("zip") then
|
|
package:add("deps", "libzip")
|
|
package:add("deps", "libzip")
|
|
if package:config("deflate") then
|
|
if package:config("deflate") then
|