summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2021-05-04 16:22:19 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2021-05-04 16:22:19 +0200
commitff534ac90334051d2400f0fa0e126bfe8a4bb075 (patch)
tree0748e86fd7f71d0588674b212490f03c7ee96523
parentce4f49ba8138fd87a9ffe783dbd891d2a1a0e903 (diff)
downloadsigc++-ff534ac90334051d2400f0fa0e126bfe8a4bb075.tar.gz
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.
-rwxr-xr-xtools/handle-built-files.py4
1 files changed, 3 insertions, 1 deletions
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)