summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2021-04-19 14:54:46 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2021-04-19 14:54:46 +0200
commit5d9a6941742f08c6a3672252cf62bd7317a1f1f6 (patch)
tree6b14912235769f74b708ee080ec0ab9701f92b79
parentf40371dae96ae340b752a985621598439f09ad40 (diff)
downloadglibmm-5d9a6941742f08c6a3672252cf62bd7317a1f1f6.tar.gz
Meson build: Make quiet installations possible
* tools/build_scripts/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/build_scripts/handle-built-files.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/build_scripts/handle-built-files.py b/tools/build_scripts/handle-built-files.py
index 1b23f166..862ab5f7 100755
--- a/tools/build_scripts/handle-built-files.py
+++ b/tools/build_scripts/handle-built-files.py
@@ -99,6 +99,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)
@@ -106,7 +107,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)