diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-09-03 23:44:38 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-09-03 23:52:56 +0200 |
commit | 7b0de4aa0ea6675c9c15aef34db58056a5cdfb5f (patch) | |
tree | 93a1d439666dac6f97823e9e9bd1eb6ff1a6ae92 /libmpv | |
parent | fc68c9269d04d02d53628e75a8bc060aa7e7a5ca (diff) | |
download | mpv-7b0de4aa0ea6675c9c15aef34db58056a5cdfb5f.tar.bz2 mpv-7b0de4aa0ea6675c9c15aef34db58056a5cdfb5f.tar.xz |
build: add a check_program check
This wraps waf's find_program in our own check boilerplate code so that it
can be used in the declarative dependencies section of the wscript.
Can be used like this:
}, {
'name': 'sed',
'desc': 'sed program',
'func': check_program('sed', 'SED'),
}, {
First argument is the program name, and the second is the waf variable name
where the program path will be stored. In this example we will be able to
refer to sed with ${{SED}} when creating waf Tasks in wscript_build.
/cc @giselher: I think you need this for wayland-scanner.
Diffstat (limited to 'libmpv')
0 files changed, 0 insertions, 0 deletions