aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2018-08-28 17:14:55 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2018-08-31 01:44:03 +0200
commit09e49a8fb082486180de28f46c47fdc2179504be (patch)
tree5a2266d976fb99c00917d3f5d7ea7104670066b7 /libavcodec/x86
parentcffbeda4621b0e153016815f35a880061dfa6965 (diff)
downloadffmpeg-09e49a8fb082486180de28f46c47fdc2179504be.tar.gz
configure: <fflib>_deps: validate, reduce sensitivity
- 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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/x86')
0 files changed, 0 insertions, 0 deletions