[glibmm/glibmm-2-66] Meson build: Make quiet installations possible



commit 5d9a6941742f08c6a3672252cf62bd7317a1f1f6
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Apr 19 14:54:46 2021 +0200

    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.

 tools/build_scripts/handle-built-files.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]