summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-01-24 14:09:37 +0100
committerJürg Billeter <j@bitron.ch>2019-01-24 14:38:50 +0100
commit5a351deeda89d32d1c8b559a5ebd55767ff97a22 (patch)
treee1dada9d8aed84d8aa90d925589e169593d4c86e
parent2f175f0a6959aef61a064baf68cd8341390872fc (diff)
downloadbuildstream-5a351deeda89d32d1c8b559a5ebd55767ff97a22.tar.gz
format_project.rst: Add documentation for default targets
-rw-r--r--doc/source/format_project.rst38
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/source/format_project.rst b/doc/source/format_project.rst
index c3555e0c1..f4dea333a 100644
--- a/doc/source/format_project.rst
+++ b/doc/source/format_project.rst
@@ -945,6 +945,44 @@ Host side environment variable expansion is also supported:
- '${XDG_RUNTIME_DIR}/pulse/native'
+.. _project_default_targets:
+
+Default targets
+---------------
+When running BuildStream commands from a project directory or subdirectory
+without specifying any target elements on the command line, the default targets
+of the project will be used. The default targets can be configured in the
+``defaults`` section as follows:
+
+.. code:: yaml
+
+ defaults:
+
+ # List of default target elements
+ targets:
+ - app.bst
+
+If no default targets are configured in ``project.conf``, BuildStream commands
+will default to all ``.bst`` files in the configured element path.
+
+Commands that cannot support junctions as target elements (``bst build``,
+``bst artifact push``, and ``bst artifact pull``) ignore junctions in the list
+of default targets.
+
+When running BuildStream commands from a workspace directory (that is not a
+BuildStream project directory), project default targets are not used and the
+workspace element will be used as the default target instead.
+
+``bst artifact checkout``, ``bst source checkout``, and ``bst shell`` are
+currently limited to a single target element and due to this, they currently
+do not use project default targets. However, they still use the workspace
+element as default target when run from a workspace directory.
+
+.. note::
+
+ The ``targets`` configuration is available since :ref:`format version 21 <project_format_version>`
+
+
.. _project_builtin_defaults:
Builtin defaults