diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2020-10-18 10:07:16 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2021-01-21 11:21:33 +0100 |
commit | 1c8d1092ed5a16e6a16f80b25528a87a24de85fa (patch) | |
tree | 90958020c14a1b844fa2c6f6ebd73edf7f0b6353 | |
parent | cc34b78d9064bc9866242417f2051f83e92b74e7 (diff) |
Support building build tools recipes
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/640>
-rw-r--r-- | cerbero/commands/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cerbero/commands/build.py b/cerbero/commands/build.py index e5569a0c..c7a73940 100644 --- a/cerbero/commands/build.py +++ b/cerbero/commands/build.py @@ -44,6 +44,8 @@ class Build(Command): ArgparseArgument('--jobs', '-j', action='store', type=int, default=0, help=_('How many recipes to build concurrently. ' '0 = number of CPUs.')), + ArgparseArgument('--build-tools', '-b', action='store_true', + default=False, help=_('Runs the build command for the build tools of this config.')), ] if force is None: args.append( @@ -67,6 +69,8 @@ class Build(Command): self.force = args.force if self.no_deps is None: self.no_deps = args.no_deps + if args.build_tools: + config = config.build_tools_config self.runargs(config, args.recipe, args.missing_files, self.force, self.no_deps, dry_run=args.dry_run, offline=args.offline, deps_only=self.deps_only, jobs=args.jobs) |