summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-08-21 12:53:08 +0100
committerJames Ennis <james.ennis@codethink.co.uk>2019-08-27 12:12:13 +0100
commita8d68c9d313252454a9f92e00b8758a0d2d674ef (patch)
tree7a281115717bba5edd5813eb2d223702918091bc
parente23509cfc73edc63dcf40a466c706c5db986f79f (diff)
downloadbuildstream-a8d68c9d313252454a9f92e00b8758a0d2d674ef.tar.gz
element.py: Add _add_build_dependency() method
This method explicitly adds a build dependency to an Element instance's __build_dependency list. This is required when determining the build dependencies of an artifact
-rw-r--r--src/buildstream/element.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 78fee5dff..c44af942b 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2366,6 +2366,16 @@ class Element(Plugin):
assert self.__artifact, "{}: has no Artifact object".format(self.name)
return self.__artifact
+ # _add_build_dependency()
+ #
+ # Add a build dependency to the Element
+ #
+ # Args:
+ # (Element): The Element to add as a build dependency
+ #
+ def _add_build_dependency(self, dependency):
+ self.__build_dependencies.append(dependency)
+
#############################################################
# Private Local Methods #
#############################################################