Wasn't exporting the plat headers; refactor to make this a little cleaner.

This commit is contained in:
David Given 2016-08-14 11:01:36 +02:00
parent f253b6a169
commit b549980af2
13 changed files with 80 additions and 36 deletions

View file

@ -11,7 +11,7 @@ for _, plat in ipairs(vars.plats) do
deps = { deps = {
"h+emheaders", "h+emheaders",
"lang/cem/libcc.ansi/headers+headers", "lang/cem/libcc.ansi/headers+headers",
"plat/"..plat.."+headers", "plat/"..plat.."/include+headers",
}, },
vars = { plat = plat } vars = { plat = plat }
} }

View file

@ -52,7 +52,7 @@ for _, plat in ipairs(vars.plats) do
hdrs = {}, -- must be empty hdrs = {}, -- must be empty
deps = { deps = {
"lang/cem/libcc.ansi/headers+headers", "lang/cem/libcc.ansi/headers+headers",
"plat/"..plat.."+headers", "plat/"..plat.."/include+headers",
}, },
vars = { plat = plat } vars = { plat = plat }
} }

View file

@ -30,7 +30,7 @@ for _, plat in ipairs(vars.plats) do
hdrs = {}, -- must be empty hdrs = {}, -- must be empty
deps = { deps = {
"lang/cem/libcc.ansi/headers+headers", "lang/cem/libcc.ansi/headers+headers",
"plat/"..plat.."+headers", "plat/"..plat.."/include+headers",
"h+emheaders", "h+emheaders",
}, },
vars = { plat = plat } vars = { plat = plat }

View file

@ -19,7 +19,7 @@ for _, plat in ipairs(vars.plats) do
hdrs = {}, -- must be empty hdrs = {}, -- must be empty
deps = { deps = {
"lang/cem/libcc.ansi/headers+headers", "lang/cem/libcc.ansi/headers+headers",
"plat/"..plat.."+headers", "plat/"..plat.."/include+headers",
"h+emheaders", "h+emheaders",
}, },
vars = { plat = plat } vars = { plat = plat }

View file

@ -1,11 +0,0 @@
include("plat/build.lua")
acklibrary {
name = "headers",
hdrs = {
["ack/config.h"] = "./include/ack/config.h",
["unistd.h"] = "./include/unistd.h",
["cpm.h"] = "./include/cpm.h",
}
}

View file

@ -18,6 +18,7 @@ installable {
map = { map = {
"+tools", "+tools",
"+libs", "+libs",
"./include+pkg",
["$(PLATIND)/cpm/boot.o"] = "+boot" ["$(PLATIND)/cpm/boot.o"] = "+boot"
} }
} }

View file

@ -0,0 +1,25 @@
include("plat/build.lua")
headermap = {}
packagemap = {}
local function addheader(h)
headermap[h] = "./"..h
packagemap["$(PLATIND)/cpm/include/"..h] = "./"..h
end
addheader("ack/config.h")
addheader("cpm.h")
addheader("unistd.h")
acklibrary {
name = "headers",
hdrs = headermap
}
installable {
name = "pkg",
map = packagemap
}

View file

@ -1,11 +0,0 @@
include("plat/build.lua")
acklibrary {
name = "headers",
hdrs = {
["ack/config.h"] = "./include/ack/config.h",
["sys/ioctl.h"] = "./include/sys/ioctl.h",
["unistd.h"] = "./include/unistd.h",
}
}

View file

@ -17,6 +17,7 @@ installable {
map = { map = {
"+tools", "+tools",
"+libs", "+libs",
"./include+pkg",
["$(PLATIND)/linux386/boot.o"] = "+boot" ["$(PLATIND)/linux386/boot.o"] = "+boot"
} }
} }

View file

@ -0,0 +1,24 @@
include("plat/build.lua")
headermap = {}
packagemap = {}
local function addheader(h)
headermap[h] = "./"..h
packagemap["$(PLATIND)/linux386/include/"..h] = "./"..h
end
addheader("ack/config.h")
addheader("sys/ioctl.h")
addheader("unistd.h")
acklibrary {
name = "headers",
hdrs = headermap
}
installable {
name = "pkg",
map = packagemap
}

View file

@ -1,10 +0,0 @@
include("plat/build.lua")
acklibrary {
name = "headers",
hdrs = {
["ack/config.h"] = "./include/ack/config.h",
["unistd.h"] = "./include/unistd.h",
}
}

View file

@ -17,6 +17,7 @@ installable {
map = { map = {
"+tools", "+tools",
"+libs", "+libs",
"./include+pkg",
["$(PLATIND)/pc86/boot.o"] = "+boot" ["$(PLATIND)/pc86/boot.o"] = "+boot"
} }
} }

View file

@ -0,0 +1,24 @@
include("plat/build.lua")
headermap = {}
packagemap = {}
local function addheader(h)
headermap[h] = "./"..h
packagemap["$(PLATIND)/pc86/include/"..h] = "./"..h
end
addheader("ack/config.h")
addheader("unistd.h")
acklibrary {
name = "headers",
hdrs = headermap
}
installable {
name = "pkg",
map = packagemap
}