]> git.droids-corp.org - dpdk.git/commit
build: add definitions for use as Meson subproject
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 6 May 2022 14:43:18 +0000 (15:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jun 2022 18:49:20 +0000 (20:49 +0200)
commitf93a605f2d6e012ef2c74bea20363ccaa8203021
tree23aaf2d3452abc584aa24645f632d261593f245e
parent36c3c4df136f6d79c0ffaddec00696f5eddaef16
build: add definitions for use as Meson subproject

To allow other projects to easily use DPDK as a subproject, add in the
necessary dependency definitions. Slightly different definitions are
necessary for static and shared builds, since for shared builds the
drivers should not be linked in, and the internal meson dependency
objects are more complete.

To use DPDK as a subproject fallback i.e. use installed DPDK if present,
otherwise the shipped one, the following meson statement can be used:

libdpdk = dependency('libdpdk', fallback: ['dpdk', 'dpdk_dep'])

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ben Magistro <koncept1@gmail.com>
Tested-by: Ben Magistro <koncept1@gmail.com>
buildtools/subproject/meson.build [new file with mode: 0644]
drivers/meson.build
lib/meson.build
meson.build