ack/plat/build.lua
2016-07-26 23:35:30 +02:00

47 lines
728 B
Lua

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
)