]> git.droids-corp.org - dpdk.git/commit
build: remove deprecated Meson functions
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 24 Jan 2022 17:49:59 +0000 (17:49 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 2 Feb 2022 17:46:53 +0000 (18:46 +0100)
commite16b972b1afe2444346016175ae086d5bea54016
tree1e0b16888c41b1c4ccb6c278eaed5f978adf818d
parentd832326ae9b1b67c2976da293a459b51297fcfa0
build: remove deprecated Meson functions

Starting in meson 0.56, the functions meson.source_root() and
meson.build_root() are deprecated and to be replaced by the [more
descriptive] functions: project_source_root()/global_source_root() and
project_build_root()/global_build_root(). Unfortunately, these new
replacement functions were only added in 0.56 release too, so to use
them we would need version checks for old/new functions to remove the
deprecation warnings.

However, the functions "current_build_dir()" and "current_source_dir()"
remain unaffected by all this, so we can bypass the versioning problem,
by saving off these values to "dpdk_source_root" and "dpdk_build_root"
in the top-level meson.build file

Bugzilla ID: 926
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Jerin Jacob <jerinj@marvell.com>
doc/api/meson.build
kernel/freebsd/meson.build
kernel/linux/kni/meson.build
meson.build