Message ID | 20211018180252.14106-5-viacheslavo@nvidia.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Ferruh Yigit |
Headers | show |
Series | ethdev: introduce configurable flexible item | expand |
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index 98f3289bdf..3a8babd604 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -61,3 +61,8 @@ if dpdk_conf.has('RTE_LIB_BPF') sources += files('bpf_cmd.c') deps += 'bpf' endif +jansson_dep = dependency('jansson', required: false, method: 'pkg-config') +if jansson_dep.found() + dpdk_conf.set('RTE_HAS_JANSSON', 1) + ext_deps += jansson_dep +endif diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index e9d9db06ce..fc43bf2763 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -14,6 +14,9 @@ #include <rte_os_shim.h> #include <cmdline.h> #include <sys/queue.h> +#ifdef RTE_HAS_JANSSON +#include <jansson.h> +#endif #define RTE_PORT_ALL (~(portid_t)0x0)