Add support for meson build system
[tinc] / src / bsd / meson.build
1 check_headers += [
2   'net/if_tap.h',
3   'net/if_tun.h',
4   'net/if_utun.h',
5   'net/tap/if_tap.h',
6   'net/tun/if_tun.h',
7 ]
8
9 check_functions += [
10   'devname',
11   'fdevname',
12 ]
13
14 src_tincd += files('device.c')
15
16 if os_name == 'darwin'
17   dep_tunemu = dependency('tunemu', required: opt_tunemu, static: static)
18   dep_pcap = dependency('pcap', required: opt_tunemu, static: static)
19
20   if dep_tunemu.found() and dep_pcap.found()
21     deps_tincd += [dep_tunemu, dep_pcap]
22     src_tincd += files('tunemu.c')
23     cdata.set('ENABLE_TUNEMU', 1)
24   endif
25 endif
26