Seperate os.trycp calls in nana

pull/305/head
PucklaMotzer09 4 years ago committed by ruki
parent 00f89ac825
commit adbbf053eb
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 6
      packages/n/nana/xmake.lua

@ -38,7 +38,11 @@ package("nana")
import("package.tools.cmake").build(package, configs, {buildir = "build_xmake"})
os.cp("include", package:installdir())
os.trycp(path.join("build_xmake", "*." .. (package:is_plat("windows") and "lib" or "a")), package:installdir("lib"))
if package:is_plat("windows") then
os.trycp(path.join("build_xmake", "src", "*", "*.lib"), package:installdir("lib"))
else
os.trycp(path.join("build_xmake", "*.a"), package:installdir("lib"))
end
end)
on_test(function (package)

Loading…
Cancel
Save