libdeflate: fix pdb

pull/5816/head
star9029 2 days ago
parent f4442f7364
commit 0ac9acd09e
  1. 5
      packages/l/libdeflate/xmake.lua

@ -41,6 +41,11 @@ package("libdeflate")
table.insert(configs, "-DLIBDEFLATE_BUILD_STATIC_LIB=" .. (package:config("shared") and "OFF" or "ON"))
table.insert(configs, "-DLIBDEFLATE_BUILD_SHARED_LIB=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
if package:is_plat("windows") and package:is_debug() then
local dir = package:installdir(package:config("shared") and "bin" or "lib")
os.trycp(path.join(package:buildir(), "deflate.pdb"), dir)
end
end)
on_test(function (package)

Loading…
Cancel
Save