Add a option to compile the dependencies only of a target.

This is useful to generate directory (and archive) of dependencies for
a particular target.
This commit is contained in:
Matthieu Gautier 2017-04-08 21:15:24 +02:00
parent a021f8e739
commit bea2d13feb
1 changed files with 5 additions and 0 deletions

View File

@ -721,6 +721,8 @@ class Builder:
dependencies = list(remove_duplicates(dependencies))
for dep in dependencies:
if self.options.build_deps_only and dep == targetDef:
continue
self.targets[dep] = _targets[dep]
def add_targets(self, targetName, targets):
@ -792,6 +794,9 @@ def parse_args():
help="Skip SSL certificate verification during download")
parser.add_argument('--skip-source-prepare', action='store_true',
help="Skip the source download part")
parser.add_argument('--build-deps-only', action='store_true',
help=("Build only the dependencies of the specified targets."))
return parser.parse_args()