diff options
| author | Daniele Nicolodi <daniele@grinta.net> | 2023-02-21 20:45:12 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-02-27 07:03:30 -0500 |
| commit | f39ccde5138aeabcbd483ca4b779954f056324e2 (patch) | |
| tree | ce244ca87dc2cb903e000c6d4d96a50023ac1fb7 /test cases/unit | |
| parent | b80f8456ec754c579dfd5c1bbb4dc4be3500e7e6 (diff) | |
| download | meson-f39ccde5138aeabcbd483ca4b779954f056324e2.tar.gz | |
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.
Diffstat (limited to 'test cases/unit')
4 files changed, 9 insertions, 0 deletions
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', |
