diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-04-20 19:14:49 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2020-07-01 09:51:57 -0400 |
commit | f08eed37cb69ba0d793c0f1d086eaef7f25c2ea3 (patch) | |
tree | bfebeb97c57945c43e948998f9f01240915c2022 /test cases/common | |
parent | 288d1ae5a5de13c8844635023caf27378df4919b (diff) | |
download | meson-f08eed37cb69ba0d793c0f1d086eaef7f25c2ea3.zip meson-f08eed37cb69ba0d793c0f1d086eaef7f25c2ea3.tar.gz meson-f08eed37cb69ba0d793c0f1d086eaef7f25c2ea3.tar.bz2 |
find_program: Fallback if a wrap file provide the program name
We don't need the legacy variable name system as for dependency()
fallbacks because meson.override_find_program() is largely used already,
so we can just rely on it.
Diffstat (limited to 'test cases/common')
3 files changed, 12 insertions, 0 deletions
diff --git a/test cases/common/187 find override/meson.build b/test cases/common/187 find override/meson.build index 3b8af80..b277459 100644 --- a/test cases/common/187 find override/meson.build +++ b/test cases/common/187 find override/meson.build @@ -10,3 +10,6 @@ if not gencodegen.found() endif subdir('otherdir') + +tool = find_program('sometool') +assert(tool.found()) diff --git a/test cases/common/187 find override/subprojects/sub.wrap b/test cases/common/187 find override/subprojects/sub.wrap new file mode 100644 index 0000000..17aa332 --- /dev/null +++ b/test cases/common/187 find override/subprojects/sub.wrap @@ -0,0 +1,5 @@ +[wrap-file] +directory = sub + +[provide] +program_names = sometool diff --git a/test cases/common/187 find override/subprojects/sub/meson.build b/test cases/common/187 find override/subprojects/sub/meson.build new file mode 100644 index 0000000..640f270 --- /dev/null +++ b/test cases/common/187 find override/subprojects/sub/meson.build @@ -0,0 +1,4 @@ +project('tools') + +exe = find_program('gencodegen') +meson.override_find_program('sometool', exe) |