add iverilog (#1732)

* add iverilog

* add iverilog for mingw

* add iverilog for mingw

* remove mingw

* add iverilog for windows

* add iverilog for windows
pull/1734/head
ruki 2 years ago committed by GitHub
parent 9eca8b24f6
commit 73e9b8786a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      packages/i/iverilog/xmake.lua

@ -0,0 +1,35 @@
package("iverilog")
set_kind("toolchain")
set_homepage("https://steveicarus.github.io/iverilog/")
set_description("Icarus Verilog")
if is_plat("windows") then
add_urls("https://github.com/xmake-mirror/iverilog-windows/releases/download/$(version)/iverilog-$(version).zip")
add_versions("2022.6.11", "6ce9411bf9468c43df70ae777e6727d47ae4f56413e772455fa93356597b6b7b")
else
add_urls("https://github.com/steveicarus/iverilog.git")
add_versions("2023.1.7", "45bd0968c3d6d5b96a7ac7c2c1b0557cc229e568")
add_deps("autoconf", "automake", "libtool", "flex", "bison", "gperf")
end
on_install("windows", function (package)
os.cp("*", package:installdir())
end)
on_install("macosx", "linux", function (package)
local configs = {}
os.vrunv("sh", {"./autoconf.sh"})
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
io.writefile("hello.vl", [[
module main();
initial
begin
$display("Hi there");
$finish ;
end
endmodule]])
os.vrunv("iverilog", {"hello.vl"})
end)
Loading…
Cancel
Save