diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-08 21:08:05 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-08 21:08:05 +0300 |
commit | 7f042218d87efb53eddd40d43a950520306eb526 (patch) | |
tree | bdf5544e5e46941647d0f2a57b64139bb37d79a1 /backends.py | |
parent | c3292f4dc1da02ebc0524e525f0ddb79a5d46332 (diff) | |
download | meson-7f042218d87efb53eddd40d43a950520306eb526.zip meson-7f042218d87efb53eddd40d43a950520306eb526.tar.gz meson-7f042218d87efb53eddd40d43a950520306eb526.tar.bz2 |
Some final pieces of logging.
Diffstat (limited to 'backends.py')
-rw-r--r-- | backends.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends.py b/backends.py index 0c8266e..6eb409f 100644 --- a/backends.py +++ b/backends.py @@ -14,7 +14,7 @@ import os, sys, re, pickle import interpreter, nodes -import environment +import environment, mlog from meson_install import InstallData from interpreter import InvalidArguments import shutil @@ -143,7 +143,7 @@ class Backend(): return (gen_src_deps, gen_other_deps) = self.process_dep_gens(outfile, target) self.process_target_dependencies(target, outfile) - print('Generating target', name) + mlog.log('Generating target ', mlog.bold(name), '.', sep='') self.generate_custom_generator_rules(target, outfile) outname = self.get_target_filename(target) obj_list = [] @@ -357,7 +357,7 @@ class NinjaBackend(Backend): elem.add_item('DESC', 'Generating HTML coverage report.') elem.write(outfile) if not added_rule: - print('Warning: coverage requested but neither gcovr nor lcov/genhtml found.') + mlog.log(mlog.red('Warning:'), 'coverage requested but neither gcovr nor lcov/genhtml found.') def generate_install(self, outfile): script_root = self.environment.get_script_dir() @@ -767,7 +767,7 @@ class NinjaBackend(Backend): cmd = ["&&", 'ln', '-s', '-f', basename, aliasfile] aliascmd += cmd else: - print("Library versioning disabled because host does not support symlinks.") + mlog.log("Library versioning disabled because host does not support symlinks.") elem.add_item('aliasing', aliascmd) elem.write(outfile) |