JSON File Schema
----------------
-There's no formal schema for the "known-good" JSON file, but here is
+There's no formal schema for the "known-good" JSON file, but here is
a description of its elements. All elements are required except those
marked as optional. Please see the "known_good.json" file for
examples of all of these elements.
the processing of the repo with any environment variable. The default
is an empty list, which means that the repo is always processed.
+- build_step (optional)
+
+Specifies if the dependent repository should be built or not. This can
+have a value of 'build' or 'skip'. The dependent repositories are
+built by default.
+
Note
----
self.cmake_options = json['cmake_options'] if (
'cmake_options' in json) else []
self.ci_only = json['ci_only'] if ('ci_only' in json) else []
+ self.build_step = json['build_step'] if ('build_step' in json) else 'build'
# Absolute paths for a repo's directories
dir_top = os.path.abspath(args.dir)
self.repo_dir = os.path.join(dir_top, self.sub_dir)
repo.Checkout()
# Build the repository
- if args.do_build:
+ if args.do_build and repo.build_step == 'build':
repo.Build(repos)
# Need to restore original cwd in order for CreateHelper to find json file