diff options
Diffstat (limited to 'VNFs/DPPD-PROX/meson.build')
-rw-r--r-- | VNFs/DPPD-PROX/meson.build | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/VNFs/DPPD-PROX/meson.build b/VNFs/DPPD-PROX/meson.build index 217a9679..48251e8d 100644 --- a/VNFs/DPPD-PROX/meson.build +++ b/VNFs/DPPD-PROX/meson.build @@ -26,6 +26,10 @@ project('dppd-prox', 'C', cc = meson.get_compiler('c') # Configure options for prox +# Grab the DPDK version here "manually" as it is not available in the dpdk_dep +# object +dpdk_version = run_command('pkg-config', '--modversion', 'libdpdk').stdout() + if get_option('bng_qinq').enabled() add_project_arguments('-DUSE_QINQ', language: 'c') endif @@ -119,6 +123,7 @@ ncurses_dep = dependency('ncurses', required: true) ncursesw_dep = dependency('ncursesw', required: true) libedit_dep = dependency('libedit', required: true) math_dep = cc.find_library('m', required : false) +dl_dep = cc.find_library('dl', required : true) deps = [dpdk_dep, tinfo_dep, @@ -128,13 +133,11 @@ deps = [dpdk_dep, ncursesw_dep, libedit_dep, math_dep, + dl_dep, lua_dep] -# Grab the DPDK version here "manually" as it is not available in the dpdk_dep -# object -dpdk_version = run_command('pkg-config', '--modversion', 'libdpdk').stdout() - # Explicitly add these to the dependency list +deps += [cc.find_library('rte_bus_pci', required: true)] deps += [cc.find_library('rte_bus_vdev', required: true)] if dpdk_version.version_compare('<20.11.0') @@ -147,7 +150,7 @@ sources = files( 'task_init.c', 'handle_aggregator.c', 'handle_nop.c', 'handle_irq.c', 'handle_arp.c', 'handle_impair.c', 'handle_lat.c', 'handle_qos.c', 'handle_qinq_decap4.c', 'handle_routing.c', 'handle_untag.c', - 'handle_mplstag.c', 'handle_qinq_decap6.c', 'rw_reg.c', + 'handle_mplstag.c', 'handle_qinq_decap6.c', 'handle_lb_qinq.c', 'handle_lb_pos.c', 'handle_lb_net.c', 'handle_qinq_encap4.c', 'handle_qinq_encap6.c', 'handle_classify.c', 'handle_l2fwd.c', 'handle_swap.c', 'handle_police.c', 'handle_acl.c', @@ -172,8 +175,11 @@ sources = files( 'stats_cons_cli.c', 'stats_parser.c', 'hash_set.c', 'prox_lua.c', 'prox_malloc.c', 'prox_ipv6.c', 'prox_compat.c', 'handle_nsh.c') +sources += files('rw_reg.c') + # Include a couple of source files depending on DPDK support -if cc.find_library('rte_pmd_aesni', required: false).found() +if cc.find_library('rte_crypto_ipsec_mb', required: false).found() + add_project_arguments('-DRTE_LIBRTE_PMD_AESNI_MB', language: 'c') sources += files('handle_esp.c') else warning('Building w/o IPSEC support') |