1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2018 Luca Boccassi <bluca@debian.org>
13 deps = ['bus_vdev', 'gso', 'hash']
15 cflags += '-DTAP_MAX_QUEUES=16'
17 # To maintain the compatibility with the make build system
18 # tap_autoconf.h file is still generated.
19 # input array for meson symbol search:
20 # [ "MACRO to define if found", "header for the search",
21 # "enum/define", "symbol to search" ]
24 [ 'HAVE_TC_FLOWER', 'linux/pkt_cls.h',
25 'TCA_FLOWER_UNSPEC' ],
26 [ 'HAVE_TC_VLAN_ID', 'linux/pkt_cls.h',
27 'TCA_FLOWER_KEY_VLAN_PRIO' ],
28 [ 'HAVE_TC_BPF', 'linux/pkt_cls.h',
30 [ 'HAVE_TC_BPF_FD', 'linux/pkt_cls.h',
32 [ 'HAVE_TC_ACT_BPF', 'linux/tc_act/tc_bpf.h',
33 'TCA_ACT_BPF_UNSPEC' ],
34 [ 'HAVE_TC_ACT_BPF_FD', 'linux/tc_act/tc_bpf.h',
37 config = configuration_data()
39 config.set(arg[0], cc.has_header_symbol(arg[1], arg[2]))
41 configure_file(output : 'tap_autoconf.h', configuration : config)