pull/49/head
ruki 5 years ago
parent cd817aa49d
commit 8e1ca0ba99
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 21
      packages/m/mono/xmake.lua

@ -0,0 +1,21 @@
package("mono")
set_homepage("https://www.mono-project.com/")
set_description("Cross platform, open source .NET development framework")
set_urls("https://download.mono-project.com/sources/mono/mono-$(version).tar.xz",
{version = function (version) return version:gsub("%+", ".") end})
add_versions("6.8.0+123", "e2e42d36e19f083fc0d82f6c02f7db80611d69767112af353df2f279744a2ac5")
add_includedirs("include/mono-2.0")
on_install("macosx", "linux", function (package)
local configs = {"--disable-silent-rules", "--enable-nls=no"}
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("mono_object_get_class", {includes = "mono/metadata/object.h"}))
end)
Loading…
Cancel
Save