Skip to content

Improve optional lib support

Bruce Richardson dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 7 repliesIn review
  2. v21 patch 7 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3build: track mandatory rather than optional libslib/meson.build+24 -460 replies
2/3build: remove 5 libs from mandatory listapp/test/meson.build lib/meson.build+2 -72 replies
3/3build: RFC - add support for optional dependenciesdrivers/meson.build lib/meson.build+14 -03 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchMorten Brørup
1/3A-b
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] Improve optional lib support

This patchset builds on the previous v1 and v2, and the discussion which followed about what libraries should be optional. While still a long way to go from the position suggested in the v2 discussion, this set moves us a bit further along the road.

The first patch is a direct v3 from previous versions, changing the tracking from a list of optional libs to a list of mandatory ones. The second patch then knocks off another 5 libs off the mandatory list - all are libs which should have few dependencies in other components, but which some common sample apps like l3fwd depend upon. It should be possible to make other libs optional in future, but to do so likely requires code-changes to #ifdef out support in places.

To that end, patch 3 is an RFC to add support for "optional libs" to the build system. For now, nothing uses this, but it may be useful if someone does want to take on the task of removing a hard dependency from one component on another and making it optional.

Bruce Richardson (3):
build: track mandatory rather than optional libs
build: remove 5 libs from mandatory list
build: RFC - add support for optional dependencies

 app/test/meson.build |  4 +--
 drivers/meson.build  |  7 +++++
 lib/meson.build      | 72 ++++++++++++++++----------------------------
 3 files changed, 35 insertions(+), 48 deletions(-)

--
2.40.1