ack/plat/build.lua

47 lines
728 B
Lua
Raw Normal View History

2016-07-26 21:35:30 +00:00
include("mach/proto/as/build.lua")
include("mach/proto/ncg/build.lua")
definerule("build_plat",
{
arch = { type = "string" },
plat = { type = "string" },
},
function(e)
local descr = "plat/"..e.plat.."/descr"
local as = build_as {
name = "as",
arch = e.arch
}
local ncg = build_ncg {
name = "ncg",
arch = e.arch,
}
local tools = installable {
name = "tools",
map = {
["$(PLATDEP)/"..e.arch.."/as"] = as,
["$(PLATDEP)/"..e.plat.."/ncg"] = ncg,
["$(PLATIND)/descr/"..e.plat.."/descr"] = descr,
}
}
local libraries = installable {
name = "libraries",
map = {
}
}
return installable {
name = e.name,
map = {
tools,
libraries,
}
}
end
)