buildtools: allow reusing dpdk-cmdline-gen.py when used a subproject
Checks
Commit Message
When DPDK is used as a subproject, allow declaring wrap files that
provide dpdk-cmdline-gen.py.
This way, find_program('dpdk-cmdline-gen.py') will return the path to
the script in the DPDK subproject source tree.
Link: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
Link: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_find_program
Cc: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: Robin Jarry <rjarry@redhat.com>
---
buildtools/subproject/meson.build | 2 ++
1 file changed, 2 insertions(+)
Comments
On Mon, Nov 20, 2023 at 05:28:15PM +0100, Robin Jarry wrote:
> When DPDK is used as a subproject, allow declaring wrap files that
> provide dpdk-cmdline-gen.py.
>
> This way, find_program('dpdk-cmdline-gen.py') will return the path to
> the script in the DPDK subproject source tree.
>
> Link: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
> Link: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_find_program
> Cc: Bruce Richardson <bruce.richardson@intel.com>
> Signed-off-by: Robin Jarry <rjarry@redhat.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
20/11/2023 17:29, Bruce Richardson:
> On Mon, Nov 20, 2023 at 05:28:15PM +0100, Robin Jarry wrote:
> > When DPDK is used as a subproject, allow declaring wrap files that
> > provide dpdk-cmdline-gen.py.
> >
> > This way, find_program('dpdk-cmdline-gen.py') will return the path to
> > the script in the DPDK subproject source tree.
> >
> > Link: https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
> > Link: https://mesonbuild.com/Reference-manual_builtin_meson.html#mesonoverride_find_program
> > Cc: Bruce Richardson <bruce.richardson@intel.com>
> > Signed-off-by: Robin Jarry <rjarry@redhat.com>
> > ---
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Applied, thanks.
@@ -19,3 +19,5 @@ else
endif
libdpdk_dep = dpdk_dep
+
+meson.override_find_program('dpdk-cmdline-gen.py', file('../dpdk-cmdline-gen.py'))