From f39ccde5138aeabcbd483ca4b779954f056324e2 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Tue, 21 Feb 2023 20:45:12 +0100 Subject: mintro: Add exclude_{files, dirs} to install_subdir install_plan These are necessary for projects outside Meson itself that want to extend the 'meson install' functionality as meson-python does to assemble Python package wheels from Meson projects. Fixes #11426. --- test cases/unit/98 install all targets/excludes/excluded.txt | 1 + .../unit/98 install all targets/excludes/excluded/placeholder.txt | 1 + test cases/unit/98 install all targets/excludes/installed.txt | 1 + test cases/unit/98 install all targets/meson.build | 6 ++++++ 4 files changed, 9 insertions(+) create mode 100644 test cases/unit/98 install all targets/excludes/excluded.txt create mode 100644 test cases/unit/98 install all targets/excludes/excluded/placeholder.txt create mode 100644 test cases/unit/98 install all targets/excludes/installed.txt (limited to 'test cases') diff --git a/test cases/unit/98 install all targets/excludes/excluded.txt b/test cases/unit/98 install all targets/excludes/excluded.txt new file mode 100644 index 000000000..59b064403 --- /dev/null +++ b/test cases/unit/98 install all targets/excludes/excluded.txt @@ -0,0 +1 @@ +Excluded diff --git a/test cases/unit/98 install all targets/excludes/excluded/placeholder.txt b/test cases/unit/98 install all targets/excludes/excluded/placeholder.txt new file mode 100644 index 000000000..3b94f9157 --- /dev/null +++ b/test cases/unit/98 install all targets/excludes/excluded/placeholder.txt @@ -0,0 +1 @@ +Placeholder diff --git a/test cases/unit/98 install all targets/excludes/installed.txt b/test cases/unit/98 install all targets/excludes/installed.txt new file mode 100644 index 000000000..84376928c --- /dev/null +++ b/test cases/unit/98 install all targets/excludes/installed.txt @@ -0,0 +1 @@ +Installed diff --git a/test cases/unit/98 install all targets/meson.build b/test cases/unit/98 install all targets/meson.build index 3065b5f60..75b4590c6 100644 --- a/test cases/unit/98 install all targets/meson.build +++ b/test cases/unit/98 install all targets/meson.build @@ -94,6 +94,12 @@ install_subdir('custom_files', install_dir: get_option('datadir'), install_tag: 'custom', ) +install_subdir('excludes', + install_dir: get_option('datadir'), + install_tag: 'custom', + exclude_directories: 'excluded', + exclude_files: 'excluded.txt', +) # First is custom, 2nd is devel, 3rd has no tag custom_target('ct3', -- cgit v1.2.3