app: fix missing dependencies

A number of lib and driver dependencies for various apps were missed on
build because the proper macro names for their use were mismatched between
meson and make build systems. Before adding in equivalent compatibility
macros we need to ensure to add the proper dependencies to ensure a valid
build.

Fixes: 16ade738fd ("app/testpmd: build with meson")
Fixes: b5dc795a8a ("test: build app with meson as dpdk-test")
Fixes: 996ef11761 ("app: add all remaining apps to meson build")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
This commit is contained in:
Bruce Richardson 2020-10-15 16:05:47 +01:00 committed by Thomas Monjalon
parent c0a775a141
commit fac83b3ef8
3 changed files with 16 additions and 0 deletions

View File

@ -12,3 +12,6 @@ sources = files('cperf_ops.c',
'cperf_test_verify.c',
'main.c')
deps += ['cryptodev', 'net', 'security']
if dpdk_conf.has('RTE_LIBRTE_PMD_CRYPTO_SCHEDULER')
deps += 'pmd_crypto_scheduler'
endif

View File

@ -31,6 +31,18 @@ endif
if dpdk_conf.has('RTE_LIBRTE_PDUMP')
deps += 'pdump'
endif
if dpdk_conf.has('RTE_LIBRTE_BITRATESTATS')
deps += 'bitratestats'
endif
if dpdk_conf.has('RTE_LIBRTE_LATENCYSTATS')
deps += 'latencystats'
endif
if dpdk_conf.has('RTE_LIBRTE_PMD_CRYPTO_SCHEDULER')
deps += 'pmd_crypto_scheduler'
endif
if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
deps += 'pmd_bond'
endif
if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
deps += 'pmd_bnxt'
endif

View File

@ -415,6 +415,7 @@ endif
if dpdk_conf.has('RTE_LIBRTE_PMD_CRYPTO_SCHEDULER')
driver_test_names += 'cryptodev_scheduler_autotest'
test_deps += 'pmd_crypto_scheduler'
endif
foreach d:test_deps