summaryrefslogtreecommitdiff
path: root/buildstream/data/projectconfig.yaml
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-30 21:28:26 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-08-31 12:38:25 -0400
commit62a0e325604440b5f5bc341524d9affdf7cd5b1f (patch)
tree789b938b268378863f653cbdc04767036dedc32c /buildstream/data/projectconfig.yaml
parent927e043632c50565ac8df0abec723855ba674090 (diff)
downloadbuildstream-62a0e325604440b5f5bc341524d9affdf7cd5b1f.tar.gz
project.py: Load new definitions of project version requirements
o Define the base buildstream format as BST_FORMAT_VERSION in the project module o Load and cache any required versions of plugins o Assert overall project version is supported at load time Part of a fix for issue #69
Diffstat (limited to 'buildstream/data/projectconfig.yaml')
-rw-r--r--buildstream/data/projectconfig.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/buildstream/data/projectconfig.yaml b/buildstream/data/projectconfig.yaml
index 5ebed682d..aa9605358 100644
--- a/buildstream/data/projectconfig.yaml
+++ b/buildstream/data/projectconfig.yaml
@@ -4,6 +4,29 @@
#
# name: myproject
+# Format version requirements
+#
+# Indicates the minimum required format version the
+# project requires.
+#
+required-versions:
+
+ # The minimum base BuildStream format
+ project: 0
+
+ # A minimum plugin format version for each individual
+ # plugin (as advertized by the plugin BST_FORMAT_VERSION
+ # class attributes), may be asserted here.
+ #
+ # E.g., to require version 3 of the the autotools
+ # element format:
+ #
+ # elements:
+ # autotools: 3
+ #
+ elements: {}
+ sources: {}
+
# Base project relative element path, elements will be loaded
# from this base.