From: David Given Date: Tue, 19 Jul 2016 21:42:56 +0000 (+0200) Subject: Saner clibrary dependency and header handling. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=05e3cf286f0081342fadfc76d65e54377aad1ba2;p=ack.git Saner clibrary dependency and header handling. --- diff --git a/first/build.lua b/first/build.lua index ffd163a6e..9a35c36a6 100644 --- a/first/build.lua +++ b/first/build.lua @@ -116,7 +116,7 @@ definerule("bundle", definerule("clibrary", { - srcs = { type="targets" }, + srcs = { type="targets", default={} }, hdrs = { type="targets", default={} }, deps = { type="targets", default={} }, cflags = { type="strings", default={} }, @@ -161,6 +161,7 @@ definerule("clibrary", name = e.name, cwd = e.cwd, ins = ins, + deps = concat(e.hdrs, e.deps), outleaves = { e.name..".a", unpack(basename(hdrs)) }, label = e.label, commands = commands,