diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-04-11 21:44:20 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-04-15 13:32:38 +0530 |
commit | 0e6a332d0cf8538c5f62a3def646c477c0d772b5 (patch) | |
tree | 87564ad8813451aeb87da0d69cc9f4ffc4305d22 /docs/markdown/snippets | |
parent | f489aa77e54bb6ed508e81478cd5c71218a981aa (diff) | |
download | meson-0e6a332d0cf8538c5f62a3def646c477c0d772b5.zip meson-0e6a332d0cf8538c5f62a3def646c477c0d772b5.tar.gz meson-0e6a332d0cf8538c5f62a3def646c477c0d772b5.tar.bz2 |
Document that override_find_program works on configure_file [skip ci]
Also link to the release notes snippet from the Reference manual
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/find-override.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/snippets/find-override.md b/docs/markdown/snippets/find-override.md index dd8fe9b..ef3a4a2 100644 --- a/docs/markdown/snippets/find-override.md +++ b/docs/markdown/snippets/find-override.md @@ -25,3 +25,13 @@ genprog = find_program('mycodegen') Now `genprog` points to the custom script. If the dependency had come from the system, then it would point to the system version. + +You can also use the return value of `configure_file()` to override +a program in the same way as above: + +```meson +prog_script = configure_file(input : 'script.sh.in', + output : 'script.sh', + configuration : cdata) +meson.override_find_program('mycodegen', prog_script) +``` |