From 05e3cf286f0081342fadfc76d65e54377aad1ba2 Mon Sep 17 00:00:00 2001 From: David Given Date: Tue, 19 Jul 2016 23:42:56 +0200 Subject: [PATCH] Saner clibrary dependency and header handling. --- first/build.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,