Debian Codegraph @

src/buildstream_plugins/elements/make.py

raw
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13 #
14 # Authors:
15 # Ed Baunton <[email protected]>
16
17 #
18 # This plugin was originally developped in the https://gitlab.com/BuildStream/bst-plugins-experimental/
19 # repository and was copied from a60426126e5bec2d630fcd889a9f5af13af00ea6
20 #
21
22 """
23 make - Make build element
24 =========================
25 This is a `BuildElement
26 <https://docs.buildstream.build/master/buildstream.scriptelement.html#module-buildstream.scriptelement>`_
27 implementation for using GNU make based build.
28
29 Here is the default configuration for the ``make`` element in full:
30
31 .. literalinclude:: ../../../src/buildstream_plugins/elements/make.yaml
32 :language: yaml
33
34 See `built-in functionality documentation
35 <https://docs.buildstream.build/master/buildstream.buildelement.html#core-buildelement-builtins>`_ for
36 details on common configuration options for build elements.
37 """
38
39 from buildstream import BuildElement
40
41
42 # Element implementation for the 'make' kind.
43 class MakeElement(BuildElement):
44
45 BST_MIN_VERSION = "2.0"
46
47
48 # Plugin entry point
49 def setup():
50 return MakeElement