diff options
| author | Michael Forney <mforney@mforney.org> | 2019-09-19 20:40:57 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-09-19 20:41:23 -0700 |
| commit | 71e6699d92b216d83f39c6b99ad97f6ee74cc69f (patch) | |
| tree | c575a8b8404f46f8cc5fad26d231ae3de0a4e98f /ninja.lua | |
| parent | a9a4415ee61ed549c46742238fb930e3760edae3 (diff) | |
Use table to control waylandproto outputs
Diffstat (limited to 'ninja.lua')
| -rw-r--r-- | ninja.lua | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -359,16 +359,16 @@ function yacc(name, gram) }) end -function waylandproto(proto, client, server, code, args) +function waylandproto(proto, outs, args) proto = '$srcdir/'..proto - code = '$outdir/'..code - if client then - build('waylandproto', '$outdir/'..client, proto, {type='client-header'}) + if outs.client then + build('waylandproto', '$outdir/'..outs.client, proto, {type='client-header'}) end - if server then - build('waylandproto', '$outdir/'..server, proto, {type='server-header'}) + if outs.server then + build('waylandproto', '$outdir/'..outs.server, proto, {type='server-header'}) end - if code then + if outs.code then + local code = '$outdir/'..outs.code build('waylandproto', code, proto, {type='code'}) cc(code, {'pkg/wayland/headers'}, args) end |
