diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-01-06 15:50:45 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-02-04 21:28:32 +0200 |
commit | 15eb0014acf256f4b3b3ffaf269d681e287f9c92 (patch) | |
tree | 06cc6100de34eb307252179b940de81c22ef33ec /test cases | |
parent | 8d68fa22e0508337dd449a7dc66d70d9d15f4f8e (diff) | |
download | meson-15eb0014acf256f4b3b3ffaf269d681e287f9c92.zip meson-15eb0014acf256f4b3b3ffaf269d681e287f9c92.tar.gz meson-15eb0014acf256f4b3b3ffaf269d681e287f9c92.tar.bz2 |
interpreter: Iterate custom target outputs
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/144 custom target multiple outputs/meson.build | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test cases/common/144 custom target multiple outputs/meson.build b/test cases/common/144 custom target multiple outputs/meson.build index 6412864..382c9b2 100644 --- a/test cases/common/144 custom target multiple outputs/meson.build +++ b/test cases/common/144 custom target multiple outputs/meson.build @@ -21,8 +21,19 @@ custom_target('only-install-first', install : true, install_dir : [join_paths(get_option('prefix'), get_option('includedir')), false]) -custom_target('only-install-second', +targets = custom_target('only-install-second', output : ['second.h', 'second.sh'], command : [gen, 'second', '@OUTDIR@'], install : true, install_dir : [false, join_paths(get_option('prefix'), get_option('bindir'))]) + +paths = [] +foreach i : targets.to_list() + paths += i.full_path() +endforeach + +# Skip on Windows because paths are not identical, '/' VS '\'. +if host_machine.system() != 'windows' + assert(paths == [meson.current_build_dir() / 'second.h', + meson.current_build_dir() / 'second.sh']) +endif |