net/pcap: move OS-dependent code to separate files
[dpdk.git] / drivers / net / pcap / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 if is_windows
5     build = false
6     reason = 'not supported on Windows'
7     subdir_done()
8 endif
9
10 if not dpdk_conf.has('RTE_PORT_PCAP')
11     build = false
12     reason = 'missing dependency, "libpcap"'
13 endif
14 sources = files(
15         'pcap_ethdev.c',
16         'pcap_osdep_@0@.c'.format(exec_env),
17 )
18 ext_deps += pcap_dep