improve verilator (#1743)

pull/1744/head
ruki 2 years ago committed by GitHub
parent 3038a8aead
commit 61efa4f3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      packages/v/verilator/xmake.lua

@ -10,19 +10,19 @@ package("verilator")
-- wait for next release with cmake
-- add_versions("v5.004", "7d193a09eebefdbec8defaabfc125663f10cf6ab0963ccbefdfe704a8a4784d2")
if is_plat("windows") then
add_deps("winflexbison", {kind = "library"})
else
add_deps("flex", {kind = "library"})
add_deps("bison")
end
add_deps("python 3.x", {kind = "binary"})
if is_plat("windows") then
add_deps("cmake")
else
add_deps("autoconf", "automake", "libtool")
end
on_load(function (package)
if not package:is_precompiled() then
if package:is_plat("windows") then
package:add("deps", "cmake")
package:add("deps", "winflexbison", {kind = "library"})
else
package:add("deps", "flex", {kind = "library"})
package:add("deps", "bison")
package:add("deps", "autoconf", "automake", "libtool")
end
package:add("deps", "python 3.x", {kind = "binary"})
end
end)
on_install("windows", function (package)
import("package.tools.cmake")

Loading…
Cancel
Save