diff options
author | Rafael Ăvila de EspĂndola <rafael@espindo.la> | 2018-08-19 08:19:11 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-09-03 21:24:01 +0300 |
commit | 07d2d88fa9bd4f3598f9212b7209f98443b636d9 (patch) | |
tree | d8abbc85c1206530cd152bdeacf2a25758e6d211 /docs/markdown/Reference-manual.md | |
parent | 862019e6de9c896e6e876c272db3e5c95393ac3c (diff) | |
download | meson-07d2d88fa9bd4f3598f9212b7209f98443b636d9.zip meson-07d2d88fa9bd4f3598f9212b7209f98443b636d9.tar.gz meson-07d2d88fa9bd4f3598f9212b7209f98443b636d9.tar.bz2 |
Allow override_find_program to use an executable.
With this it is now possible to do
foobar = executable('foobar', ...)
meson.override_find_program('foobar', foobar)
Which is convenient for a project like protobuf which produces both a
dependency and a tool. If protobuf is updated to use
override_find_program, it can be used as
protobuf_dep = dependency('protobuf', version : '>=3.3.1',
fallback : ['protobuf', 'protobuf_dep'])
protoc_prog = find_program('protoc')
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r-- | docs/markdown/Reference-manual.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index ea11f60..9762c5d 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1529,7 +1529,9 @@ the following methods. specifies that whenever `find_program` is used to find a program named `progname`, Meson should not not look it up on the system but instead return `program`, which may either be the result of - `find_program` or `configure_file`. + `find_program`, `configure_file` or `executable`. + + If `program` is an `executable`, it cannot be used during configure. - `project_version()` returns the version string specified in `project` function call. |