net/cxgbe: fix build with optimization=1
[dpdk.git] / lib / port / meson.build
index 289bc47..3ab37e2 100644 (file)
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
 sources = files(
         'rte_port_ethdev.c',
         'rte_port_fd.c',
@@ -35,7 +41,8 @@ headers = files(
 )
 deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev', 'eventdev']
 
-if dpdk_conf.has('RTE_PORT_PCAP')
+if dpdk_conf.has('RTE_HAS_LIBPCAP')
+    dpdk_conf.set('RTE_PORT_PCAP', 1)
     ext_deps += pcap_dep # dependency provided in config/meson.build
 endif