summaryrefslogtreecommitdiff
path: root/spec/spec/build-script.yml
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-22 18:33:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:38:23 +0200
commit2a2fd6dd5aadf5a892ef1f713d2ab65605f2f4ef (patch)
tree7e8f49cd8b66d0c5bf0973ec8405b33fe38a8405 /spec/spec/build-script.yml
parent58f5f036bf85a8ded2b75c3af1fe7693b3fdead8 (diff)
spec: Add specification of build items
Diffstat (limited to 'spec/spec/build-script.yml')
-rw-r--r--spec/spec/build-script.yml87
1 files changed, 87 insertions, 0 deletions
diff --git a/spec/spec/build-script.yml b/spec/spec/build-script.yml
new file mode 100644
index 00000000..cae05629
--- /dev/null
+++ b/spec/spec/build-script.yml
@@ -0,0 +1,87 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+enabled-by: true
+links:
+- role: spec-member
+ uid: root
+- role: spec-refinement
+ spec-key: build-type
+ spec-value: script
+ uid: build
+spec-description: null
+spec-example: null
+spec-info:
+ dict:
+ attributes:
+ do-configure:
+ description: |
+ If this script shall execute, then it shall be Python code which is
+ executed via ``exec()`` in the context of the ``do_configure()``
+ method of the :file:`wscript`. A local variable ``conf`` is
+ available with the ``waf`` configuration context. A local variable
+ ``cic`` is available with the configuration item context.
+ spec-type: optional-str
+ do-build:
+ description: |
+ If this script shall execute, then it shall be Python code which is
+ executed via ``exec()`` in the context of the ``do_build()`` method
+ of the :file:`wscript`. A local variable ``bld`` is available with
+ the ``waf`` build context. A local variable ``bic`` is available
+ with the build item context.
+ spec-type: optional-str
+ prepare-configure:
+ description: |
+ If this script shall execute, then it shall be Python code which is
+ executed via ``exec()`` in the context of the ``prepare_configure()``
+ method of the :file:`wscript`. A local variable ``conf`` is
+ available with the ``waf`` configuration context. A local variable
+ ``cic`` is available with the configuration item context.
+ spec-type: optional-str
+ prepare-build:
+ description: |
+ If this script shall execute, then it shall be Python code which is
+ executed via ``exec()`` in the context of the ``prepare_build()``
+ method of the :file:`wscript`. A local variable ``bld`` is available
+ with the ``waf`` build context. A local variable ``bic`` is
+ available with the build item context.
+ spec-type: optional-str
+ stlib:
+ description: |
+ It shall be a list of external static library identifiers used to
+ link this test program, e.g. ``m`` for ``libm.a``.
+ spec-type: list-str
+ use-after:
+ description: null
+ spec-type: build-use-after-list
+ use-before:
+ description: null
+ spec-type: build-use-before-list
+ asflags:
+ description: null
+ spec-type: build-asflags
+ cflags:
+ description: null
+ spec-type: build-cflags
+ cppflags:
+ description: null
+ spec-type: build-cppflags
+ cxxflags:
+ description: null
+ spec-type: build-cxxflags
+ includes:
+ description: null
+ spec-type: build-includes
+ ldflags:
+ description: null
+ spec-type: build-ldflags
+ description: |
+ This set of attributes specifies build scripts.
+ required-attributes:
+ - do-build
+ - do-configure
+ - prepare-build
+ - prepare-configure
+spec-name: Build Script Item Type
+spec-type: build-script
+type: spec