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

@@ -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
}