Saner clibrary dependency and header handling.
This commit is contained in:
parent
b7720c298b
commit
05e3cf286f
|
@ -116,7 +116,7 @@ definerule("bundle",
|
||||||
|
|
||||||
definerule("clibrary",
|
definerule("clibrary",
|
||||||
{
|
{
|
||||||
srcs = { type="targets" },
|
srcs = { type="targets", default={} },
|
||||||
hdrs = { type="targets", default={} },
|
hdrs = { type="targets", default={} },
|
||||||
deps = { type="targets", default={} },
|
deps = { type="targets", default={} },
|
||||||
cflags = { type="strings", default={} },
|
cflags = { type="strings", default={} },
|
||||||
|
@ -161,6 +161,7 @@ definerule("clibrary",
|
||||||
name = e.name,
|
name = e.name,
|
||||||
cwd = e.cwd,
|
cwd = e.cwd,
|
||||||
ins = ins,
|
ins = ins,
|
||||||
|
deps = concat(e.hdrs, e.deps),
|
||||||
outleaves = { e.name..".a", unpack(basename(hdrs)) },
|
outleaves = { e.name..".a", unpack(basename(hdrs)) },
|
||||||
label = e.label,
|
label = e.label,
|
||||||
commands = commands,
|
commands = commands,
|
||||||
|
|
Loading…
Reference in a new issue