From ff534ac90334051d2400f0fa0e126bfe8a4bb075 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Tue, 4 May 2021 16:22:19 +0200 Subject: Meson build: Make quiet installations possible * tools/handle-built-files.py: Don't print names of installed files if environment variable MESON_INSTALL_QUIET is set. It is set by "meson install --quiet" in Meson 0.54.0 and newer. --- tools/handle-built-files.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/handle-built-files.py b/tools/handle-built-files.py index 150da5c..0bd66cd 100755 --- a/tools/handle-built-files.py +++ b/tools/handle-built-files.py @@ -45,6 +45,7 @@ def install_built_h_files(): built_h_dir = sys.argv[2] install_dir_root = os.path.join(os.getenv('MESON_INSTALL_DESTDIR_PREFIX'), sys.argv[3]) + quiet = bool(os.getenv('MESON_INSTALL_QUIET')) for file in sys.argv[4:]: path_h = os.path.join(built_h_dir, file) rel_dir = os.path.dirname(file) @@ -52,7 +53,8 @@ def install_built_h_files(): install_dir = os.path.join(install_dir_root, rel_dir) else: install_dir = install_dir_root - print('Installing ', path_h, ' to ', install_dir) + if not quiet: + print('Installing ', path_h, ' to ', install_dir) # Create the installation directory, if it does not exist. os.makedirs(install_dir, exist_ok=True) -- cgit v1.2.1