2016-08-10 22:30:32 +00:00
|
|
|
include("plat/build.lua")
|
|
|
|
|
|
|
|
local headers = {}
|
|
|
|
local installmap = {}
|
|
|
|
|
|
|
|
local function addheader(dir, list)
|
|
|
|
for _, f in ipairs(list) do
|
|
|
|
local b = basename(f)
|
|
|
|
headers[dir..b] = f
|
|
|
|
installmap[concatpath("$(PLATIND)/include/ansi/", dir, b)] = f
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
addheader("", filenamesof("./*.h"))
|
|
|
|
addheader("sys/", filenamesof("./sys/*.h"))
|
2018-06-22 21:43:15 +00:00
|
|
|
addheader("ack/", filenamesof("./ack/*.h"))
|
2016-08-10 22:30:32 +00:00
|
|
|
|
|
|
|
acklibrary {
|
|
|
|
name = "headers",
|
|
|
|
hdrs = headers
|
|
|
|
}
|
|
|
|
|
|
|
|
installable {
|
|
|
|
name = "pkg",
|
|
|
|
map = installmap
|
|
|
|
}
|