• Avi Halachmi (:avih)'s avatar
    configure: <fflib>_deps: validate, reduce sensitivity · 09e49a8f
    Avi Halachmi (:avih) authored
    - Allow to add deps in any order rather than "in linking order".
    - Expand deps chains as required rather than just once.
    - Validate that there are no cycles.
    - Validate that [after expansion] deps are limited to other fflibs.
    - Remove expectation for a specific output order of unique().
    
    Previously when adding items to <fflib>_deps, developers were
    required to add them in linking order. This can be awkward and
    bug-prone, especially when a list is not empty, e.g. when adding
    conditional deps.
    
    It also implicitly expected unique() to keep the last instance of
    recurring items such that these lists maintain their linking order
    after removing duplicate items.
    
    This patch mainly allows to add deps in any order by keeping just
    one master list in linking order, and then reordering all the
    <fflib>_deps lists to align with the master list order.
    
    This master list is LIBRARY_LIST itself, where otherwise its order
    doesn't matter.
    
    The patch also removes a limit where these deps lists were expanded
    only once. This could have resulted in incomplete expanded lists,
    or forcing devs to add already-deducable deps to avoid this issue.
    
    Note: it is possible to deduce the master list order automatically
    from the deps lists, but in this case it's probably not worth the
    added complexity, even if minor. Maintaining one list should be OK.
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    09e49a8f
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...