|
|
|
@ -8,7 +8,7 @@ package("usockets") |
|
|
|
|
|
|
|
|
|
add_versions("v0.8.8", "d14d2efe1df767dbebfb8d6f5b52aa952faf66b30c822fbe464debaa0c5c0b17") |
|
|
|
|
|
|
|
|
|
add_configs("ssl", {description = "Select ssl library", default = nil, type = "string", values = {"openssl", "wolfssl", "boringssl"}}) |
|
|
|
|
add_configs("ssl", {description = "Select ssl library", default = nil, type = "string", values = {"openssl", "openssl3", "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"}) |
|
|
|
@ -17,7 +17,7 @@ package("usockets") |
|
|
|
|
local ssl = package:config("ssl") |
|
|
|
|
if ssl then |
|
|
|
|
package:add("deps", ssl) |
|
|
|
|
if ssl == "openssl" or ssl == "boringssl" then |
|
|
|
|
if ssl == "openssl" or ssl == "openssl3" or ssl == "boringssl" then |
|
|
|
|
package:add("defines", "LIBUS_USE_OPENSSL") |
|
|
|
|
elseif ssl == "wolfssl" then |
|
|
|
|
package:add("defines", "LIBUS_USE_WOLFSSL") |
|
|
|
|