Saner clibrary dependency and header handling.
This commit is contained in:
parent
b7720c298b
commit
05e3cf286f
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue