build: build as both static and shared libs
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 3 Nov 2017 17:27:32 +0000 (17:27 +0000)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 30 Jan 2018 20:58:59 +0000 (21:58 +0100)
commit3e5c3d58e1dbbcdc803ca87ebf1d26129645d70a
tree188606c0ac590f4da9aa92640361b7ad3fb0d468
parent029ea64575b6ba8b7cac60b9d1ddd08cbbbb3737
build: build as both static and shared libs

This patch changes the build process to group all .o files for a driver or
library into a static archive first, and then link the .o files together
into a shared library. This eliminates the need for separate static or
shared object builds when packaging, for instance.

The "default_library" configuration option now only affects the apps and
examples, which are either linked against the static or shared library
versions depending on the value of the option.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
app/test-pmd/meson.build
drivers/meson.build
drivers/net/e1000/base/meson.build
drivers/net/fm10k/base/meson.build
drivers/net/i40e/base/meson.build
drivers/net/ixgbe/base/meson.build
examples/meson.build
lib/meson.build
meson.build