Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
6babbc3f
Commit
6babbc3f
authored
6 years ago
by
William Salmon
Browse files
Options
Downloads
Patches
Plain Diff
Extended the Documentation to cover out of source builds
parent
90e9fe7f
No related branches found
No related tags found
Loading
Pipeline
#30734719
passed
6 years ago
Stage: prepare
Stage: test
Stage: post
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildstream/buildelement.py
+32
-0
32 additions, 0 deletions
buildstream/buildelement.py
buildstream/source.py
+13
-0
13 additions, 0 deletions
buildstream/source.py
with
45 additions
and
0 deletions
buildstream/buildelement.py
+
32
−
0
View file @
6babbc3f
...
...
@@ -23,6 +23,38 @@ BuildElement - Abstract class for build elements
The BuildElement class is a convenience element one can derive from for
implementing the most common case of element.
Built-in functionality
----------------------
The BuildElement base class provides built in functionality that could be overridden by the
individual plugins.
This section will give a brief summary of how some of the common features work, some of them or the variables they
use will be further detailed in the following sections.
* Location for running commands
The ``command-subdir`` variable sets where the build commands will be executed, if the directory dose not exist it
will be created, it is defined relative to the buildroot.
* Location for configuring the project
The ``conf-root`` is defined by default as ``.`` and is the location that specific build element can use to look
for build configuration files, currently autotools and cmake use this.
The configuration commands are run in ``command-subdir`` and by default ``conf-root`` is ``.`` so if
``conf-root`` is not set the configuration files in ``command-subdir`` will be used.
By setting ``conf-root`` to ``
"
%{build-root}/Source/conf_location
"
`` and your source elements ``directory`` variable
to ``Source`` then the configuration files in the directory ``conf_location`` with in your Source will be used.
However the location where your configuration command will be run will still be wherever you set your
``command-subdir`` to be.
* Install Location
You should not change the ``install-root`` variable as it is a special writeable location in the sandbox but it is
useful when writing custom install instructions as it may need to be supplied as the ``DESTDIR``, please see the
cmake build element for example.
Abstract method implementations
-------------------------------
...
...
This diff is collapsed.
Click to expand it.
buildstream/source.py
+
13
−
0
View file @
6babbc3f
...
...
@@ -20,6 +20,19 @@
Source - Base source class
==========================
Built-in functionality
----------------------
The Source base class provides built in functionality that could be overridden by the
individual plugins.
* Directory
The ``directory`` variable can be set for all sources of a type in project.conf
or per source within a element.
This sets the location with in the build root that the content of the source will be
loaded in to. If the location dose not exist it will be created.
.. _core_source_abstract_methods:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment