The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
484 B
14 lines
484 B
project('pcap test', 'c') |
|
|
|
pcap_dep = dependency('pcap', version : '>=1.0') |
|
|
|
pcap_ver = pcap_dep.version() |
|
assert(pcap_ver.split('.').length() > 1, 'pcap version is "@0@"'.format(pcap_ver)) |
|
|
|
e = executable('pcap_prog', 'pcap_prog.c', dependencies : pcap_dep) |
|
|
|
test('pcaptest', e) |
|
|
|
# Ensure discovery bia the configuration tools work also |
|
pcap_dep = dependency('pcap', version : '>=1.0', method : 'pcap-config') |
|
pcap_dep = dependency('pcap', version : '>=1.0', method : 'config-tool')
|
|
|