[Notes] [Git][BuildStream/buildstream][willsalmon/outOfSourecBuild] 2 commits: Extended the Documentation to cover out of source builds



Title: GitLab

Phil Dawson pushed to branch willsalmon/outOfSourecBuild at BuildStream / buildstream

Commits:

3 changed files:

Changes:

  • NEWS
    ... ... @@ -27,6 +27,9 @@ buildstream 1.3.1
    27 27
       o Generate Docker images from built artifacts using
    
    28 28
         `contrib/bst-docker-import` script.
    
    29 29
     
    
    30
    +  o Added Documentation on how to create out of source builds. This includes the
    
    31
    +    new the `conf-root` variable to make the process easier. And there has been
    
    32
    +    a bug fix to workspaces so they can be build in workspaces too.
    
    30 33
     
    
    31 34
     =================
    
    32 35
     buildstream 1.1.5
    

  • buildstream/buildelement.py
    ... ... @@ -23,6 +23,50 @@ BuildElement - Abstract class for build elements
    23 23
     The BuildElement class is a convenience element one can derive from for
    
    24 24
     implementing the most common case of element.
    
    25 25
     
    
    26
    +Built-in functionality
    
    27
    +----------------------
    
    28
    +
    
    29
    +The BuildElement base class provides built in functionality that could be
    
    30
    +overridden by the individual plugins.
    
    31
    +
    
    32
    +This section will give a brief summary of how some of the common features work,
    
    33
    +some of them or the variables they use will be further detailed in the following
    
    34
    +sections.
    
    35
    +
    
    36
    +Location for running commands
    
    37
    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    38
    +The ``command-subdir`` variable sets where the build commands will be executed,
    
    39
    +if the directory does not exist it will be created, it is defined relative to
    
    40
    +the buildroot.
    
    41
    +
    
    42
    +Location for configuring the project
    
    43
    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    44
    +The ``conf-root`` is defined by default as ``.`` and is the location that
    
    45
    +specific build element can use to look for build configuration files. This is
    
    46
    +used by elements such as autotools, cmake, distutils, meson, pip and qmake.
    
    47
    +
    
    48
    +The configuration commands are run in ``command-subdir`` and by default
    
    49
    +``conf-root`` is ``.`` so if ``conf-root`` is not set the configuration files
    
    50
    +in ``command-subdir`` will be used.
    
    51
    +
    
    52
    +By setting ``conf-root`` to ``"%{build-root}/Source/conf_location"`` and your
    
    53
    +source elements ``directory`` variable to ``Source`` then the configuration
    
    54
    +files in the directory ``conf_location`` with in your Source will be used.
    
    55
    +The current working directory when your configuration command is run will still
    
    56
    +be wherever you set your ``command-subdir`` to be, regardless of where the
    
    57
    +configure scripts are set with ``conf-root``.
    
    58
    +
    
    59
    +.. note::
    
    60
    +
    
    61
    +   The ``conf-root`` variable is available since :ref:`format version 17 <project_format_version>`
    
    62
    +
    
    63
    +Install Location
    
    64
    +~~~~~~~~~~~~~~~~
    
    65
    +
    
    66
    +You should not change the ``install-root`` variable as it is a special
    
    67
    +writeable location in the sandbox but it is useful when writing custom
    
    68
    +install instructions as it may need to be supplied as the ``DESTDIR``, please
    
    69
    +see the :mod:`cmake <elements.cmake>` build element for example.
    
    26 70
     
    
    27 71
     Abstract method implementations
    
    28 72
     -------------------------------
    

  • buildstream/source.py
    ... ... @@ -20,6 +20,19 @@
    20 20
     Source - Base source class
    
    21 21
     ==========================
    
    22 22
     
    
    23
    +Built-in functionality
    
    24
    +----------------------
    
    25
    +
    
    26
    +The Source base class provides built in functionality that may be overridden
    
    27
    +by individual plugins.
    
    28
    +
    
    29
    +* Directory
    
    30
    +
    
    31
    +  The ``directory`` variable can be set for all sources of a type in project.conf
    
    32
    +  or per source within a element.
    
    33
    +
    
    34
    +  This sets the location within the build root that the content of the source
    
    35
    +  will be loaded in to. If the location does not exist, it will be created.
    
    23 36
     
    
    24 37
     .. _core_source_abstract_methods:
    
    25 38
     
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]