pull/3898/head
star9029 7 months ago
parent aaef7b6067
commit f796cb5bb3
  1. 2
      packages/l/ls-hpack/xmake.lua
  2. 12
      packages/l/lsquic/xmake.lua

@ -14,8 +14,6 @@ package("ls-hpack")
io.writefile("xmake.lua", [[ io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release") add_rules("mode.debug", "mode.release")
set_symbols("none")
add_requires("xxhash") add_requires("xxhash")
add_packages("xxhash") add_packages("xxhash")

@ -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)

Loading…
Cancel
Save