From 108bd996ee72b16c14f0ee0ca86959b142582394 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 3 Oct 2021 14:35:30 -0400 Subject: add install_emptydir function This replaces the absolute hack of using ``` install_subdir('nonexisting', install_dir: 'share') ``` which requires you to make sure you don't accidentally or deliberately have a completely different directory with the same name in your source tree that is full of files you don't want installed. It also avoids splitting the name in two and listing them in the wrong order. You can also set the install mode of each directory component by listing them one at a time in order, and in fact create nested structures at all. Fixes #1604 Properly fixes #2904 --- mesonbuild/ast/interpreter.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mesonbuild/ast/interpreter.py') diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py index 7954b9b..ec93ff5 100644 --- a/mesonbuild/ast/interpreter.py +++ b/mesonbuild/ast/interpreter.py @@ -103,6 +103,7 @@ class AstInterpreter(InterpreterBase): 'install_man': self.func_do_nothing, 'install_data': self.func_do_nothing, 'install_subdir': self.func_do_nothing, + 'install_emptydir': self.func_do_nothing, 'configuration_data': self.func_do_nothing, 'configure_file': self.func_do_nothing, 'find_program': self.func_do_nothing, -- cgit v1.1