Wasn't exporting the plat headers; refactor to make this a little cleaner.
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ installable {
|
||||
map = {
|
||||
"+tools",
|
||||
"+libs",
|
||||
"./include+pkg",
|
||||
["$(PLATIND)/linux386/boot.o"] = "+boot"
|
||||
}
|
||||
}
|
||||
|
||||
24
plat/linux386/include/build.lua
Normal file
24
plat/linux386/include/build.lua
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user