-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
38 lines (27 loc) · 1.02 KB
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
set_project("fox_engine")
add_rules("mode.debug", "mode.release")
set_languages("cxx17")
if rule("mode.debug") then
add_defines("FOX_DEBUG")
end
if rule("mode.release") then
add_defines("FOX_RELEASE")
end
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.10.0+105", "df7816daf4fbba9b98b997ae24bc3f8aa1e38386")
add_includedirs("include/mono-2.0")
on_install(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)
includes("Fox")
includes("plugins")
includes("FoxEditor")
includes("sandbox")