From 5cb1d00537afb9d52f89f7b3dc65e01f068fd442 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 20 Jun 2017 01:53:39 -0400 Subject: Allow excluding files from `install_subdir` The install_subdir command now accepts a new `exclude` keyword argument that allows specified files to be excluded from the installed subdirectory. --- mesonbuild/backend/ninjabackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/backend/ninjabackend.py') diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 2b292b1..a0fd90a 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -813,7 +813,7 @@ int dummy; inst_dir = sd.installable_subdir src_dir = os.path.join(self.environment.get_source_dir(), subdir) dst_dir = os.path.join(self.environment.get_prefix(), sd.install_dir) - d.install_subdirs.append([src_dir, inst_dir, dst_dir, sd.install_mode]) + d.install_subdirs.append([src_dir, inst_dir, dst_dir, sd.install_mode, sd.exclude]) def generate_tests(self, outfile): self.serialize_tests() -- cgit v1.1