|
|
@ -11,14 +11,20 @@ package("lsquic") |
|
|
|
add_configs("fiu", {description = "Use Fault Injection in Userspace (FIU)", default = false, type = "boolean"}) |
|
|
|
add_configs("fiu", {description = "Use Fault Injection in Userspace (FIU)", default = false, type = "boolean"}) |
|
|
|
|
|
|
|
|
|
|
|
add_deps("cmake") |
|
|
|
add_deps("cmake") |
|
|
|
add_deps("zlib", "boringssl", "ls-qpack", "ls-hpack") |
|
|
|
add_deps("zlib", "boringssl", "ls-qpack") |
|
|
|
|
|
|
|
|
|
|
|
add_includedirs("include/lsquic") |
|
|
|
add_includedirs("include/lsquic") |
|
|
|
|
|
|
|
|
|
|
|
on_load("windows", function (package) |
|
|
|
on_load(function (package) |
|
|
|
if not package:is_precompiled() then |
|
|
|
if package:is_plat("windows") and (not package:is_precompiled()) then |
|
|
|
package:add("deps", "strawberry-perl") |
|
|
|
package:add("deps", "strawberry-perl") |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local configs = {} |
|
|
|
|
|
|
|
if package:config("shared") then |
|
|
|
|
|
|
|
configs.pic = true |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
package:add("deps", "ls-hpack", {configs = configs}) |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
on_install("windows|!arm64", "linux", "macosx", function (package) |
|
|
|
on_install("windows|!arm64", "linux", "macosx", function (package) |
|
|
|