diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-08-12 15:33:53 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-08-31 15:05:52 +0300 |
commit | cc51e4a2d4f338b4dd49337432170b4e30ebe8d0 (patch) | |
tree | fac8b257e41be6deca3e69d99ab786636bc329b4 /doc | |
parent | 0ca33d853ec19ce8243e45295cc1acaed3724614 (diff) | |
download | buildstream-cc51e4a2d4f338b4dd49337432170b4e30ebe8d0.tar.gz |
Implement strict dependency semantics
This patch allows specifying a dependency as `strict`, e.g.:
build-depends:
- filename: element.bst
strict: true
This allows finer tuning of projects which want to leverage
the non-strict build mode; dependencies which are statically
linked to, or who's content is otherwise included verbatim in
the resulting output, should be marked `strict` to ensure these
bits get reassembled if necessary when building in non-strict
mode.
This fixes #254
Change summary:
o _loader/loadelement.pyx: Added 'strict' attribute to Dependency
o _loader/types.pyx: Added 'strict' attribute to Dependency
do the parsing work.
o _loader/metaelement.py: Added 'strict_dependencies' list
o _loader/loader.py: Resolve the 'strict_dependencies' list
o element.py: Added __strict_dependencies list, and use this
to conditionally use weak cache keys in place of names for
the purpose of building the weak cache key (in the case of
dependencies which are marked as strict).
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions