yacc, ncgg; platform ncg builds now.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
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
|
||||
)
|
||||
|
||||
|
||||
@@ -1,14 +1,7 @@
|
||||
include("mach/proto/as/build.lua")
|
||||
include("plat/build.lua")
|
||||
|
||||
build_as {
|
||||
name = "as",
|
||||
arch = "i86"
|
||||
}
|
||||
|
||||
installable {
|
||||
build_plat {
|
||||
name = "pkg",
|
||||
map = {
|
||||
["$(PLATDEP)/pc86/as"] = "+as"
|
||||
}
|
||||
arch = "i86",
|
||||
plat = "pc86",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user