Junxiao Shi | 2222a61 | 2015-06-06 08:01:38 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | top = '../..' |
| 3 | |
Junxiao Shi | 2222a61 | 2015-06-06 08:01:38 -0700 | [diff] [blame] | 4 | def configure(conf): |
Davide Pesavento | 3347eaa | 2019-01-16 18:41:46 -0500 | [diff] [blame] | 5 | conf.check_cfg(package='libpcap', uselib_store='PCAP', |
| 6 | path='pcap-config', args='--libs --cflags') |
Junxiao Shi | 2222a61 | 2015-06-06 08:01:38 -0700 | [diff] [blame] | 7 | |
| 8 | def build(bld): |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 9 | bld.objects( |
| 10 | target='dump-objects', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 11 | source=bld.path.ant_glob('*.cpp', excl='main.cpp'), |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 12 | use='core-objects PCAP') |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 13 | |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 14 | bld.program( |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 15 | target='../../bin/ndndump', |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 16 | name='ndndump', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 17 | source='main.cpp', |
| 18 | use='dump-objects') |