blob: cd9971bcf17f5c9b67a2557f1fd20beeced98b5b [file] [log] [blame]
Junxiao Shi2222a612015-06-06 08:01:38 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2top = '../..'
3
Junxiao Shi2222a612015-06-06 08:01:38 -07004def configure(conf):
Davide Pesavento3347eaa2019-01-16 18:41:46 -05005 conf.check_cfg(package='libpcap', uselib_store='PCAP',
6 path='pcap-config', args='--libs --cflags')
Junxiao Shi2222a612015-06-06 08:01:38 -07007
8def build(bld):
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -05009 bld.objects(
10 target='dump-objects',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070011 source=bld.path.ant_glob('*.cpp', excl='main.cpp'),
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050012 use='core-objects PCAP')
Junxiao Shi2713a3b2015-06-22 16:19:05 -070013
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050014 bld.program(
Junxiao Shi2713a3b2015-06-22 16:19:05 -070015 target='../../bin/ndndump',
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050016 name='ndndump',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070017 source='main.cpp',
18 use='dump-objects')