aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-07-20 14:02:15 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-20 17:02:15 +0300
commit9c2724bce5c6a904d1bffdb55921071163812a0e (patch)
tree57cd3503d9b72839162fee20154559bee181e472 /mesonbuild/backend/ninjabackend.py
parent4200afc74d1e6ba6d117e900799d0d82a85bae8a (diff)
downloadmeson-9c2724bce5c6a904d1bffdb55921071163812a0e.zip
meson-9c2724bce5c6a904d1bffdb55921071163812a0e.tar.gz
meson-9c2724bce5c6a904d1bffdb55921071163812a0e.tar.bz2
Add optional progress bar when generating build.ninja
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index b57a783..ce5565f 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -32,7 +32,7 @@ from .. import compilers
from ..compilers import Compiler, CompilerArgs, CCompiler, VisualStudioLikeCompiler, FortranCompiler
from ..linkers import ArLinker
from ..mesonlib import (
- File, LibType, MachineChoice, MesonException, OrderedSet, PerMachine
+ File, LibType, MachineChoice, MesonException, OrderedSet, PerMachine, ProgressBar
)
from ..mesonlib import get_compiler_for_source, has_path_sep
from .backends import CleanTrees
@@ -294,7 +294,7 @@ int dummy;
self.build_elements = []
self.generate_phony()
self.add_build_comment(NinjaComment('Build rules for targets'))
- for t in self.build.get_targets().values():
+ for t in ProgressBar(self.build.get_targets().values(), desc='Generating targets'):
self.generate_target(t)
self.add_build_comment(NinjaComment('Test rules'))
self.generate_tests()
@@ -903,7 +903,7 @@ int dummy;
r.write(outfile)
def write_builds(self, outfile):
- for b in self.build_elements:
+ for b in ProgressBar(self.build_elements, desc='Writing build.ninja'):
b.write(outfile)
def generate_phony(self):