X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fpcap%2Fmeson.build;h=54246095b2848f9863bac298d2e3079a1bcbcc21;hb=b5674be414638f80bc66b465ece89401ba37512f;hp=b680710aa03eb7c0bdc2411147b482df4b52caed;hpb=268fa581b1ffbd3077279c18f5a86992b747a9c0;p=dpdk.git diff --git a/drivers/net/pcap/meson.build b/drivers/net/pcap/meson.build index b680710aa0..54246095b2 100644 --- a/drivers/net/pcap/meson.build +++ b/drivers/net/pcap/meson.build @@ -2,8 +2,16 @@ # Copyright(c) 2017 Intel Corporation if not dpdk_conf.has('RTE_PORT_PCAP') - build = false - reason = 'missing dependency, "libpcap"' + build = false + reason = 'missing dependency, "libpcap"' endif -sources = files('rte_eth_pcap.c') + +sources = files( + 'pcap_ethdev.c', + 'pcap_osdep_@0@.c'.format(exec_env), +) + ext_deps += pcap_dep +if is_windows + ext_deps += cc.find_library('iphlpapi', required: true) +endif