diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-04-19 14:51:29 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-04-19 14:51:29 +0200 |
commit | 1aa4335eaf1a82764a7319e2d3bf536fba63def3 (patch) | |
tree | 3747100982a442fd039659c252e3386dc45aa365 | |
parent | 8c2bc60ceb48e3a64bf83920b999801895052f61 (diff) | |
download | glibmm-1aa4335eaf1a82764a7319e2d3bf536fba63def3.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-x | tools/build_scripts/handle-built-files.py | 4 |
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) |