jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
Alexander Afanasyev | fda32a3 | 2014-03-20 10:50:00 -0700 | [diff] [blame^] | 2 | VERSION='0.1' |
| 3 | NAME="ndn-traffic-generator" |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 4 | |
| 5 | def options(opt): |
Alexander Afanasyev | fda32a3 | 2014-03-20 10:50:00 -0700 | [diff] [blame^] | 6 | opt.load('compiler_cxx gnu_dirs') |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 7 | |
| 8 | def configure(conf): |
Alexander Afanasyev | fda32a3 | 2014-03-20 10:50:00 -0700 | [diff] [blame^] | 9 | conf.load("compiler_cxx gnu_dirs") |
| 10 | conf.check_cfg(package='libndn-cpp-dev', args=['--cflags', '--libs'], |
| 11 | uselib_store='NDN_CPP', mandatory=True) |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 12 | |
| 13 | def build (bld): |
| 14 | bld.program ( |
| 15 | features = 'cxx', |
Alexander Afanasyev | fda32a3 | 2014-03-20 10:50:00 -0700 | [diff] [blame^] | 16 | target = 'ndn-traffic', |
| 17 | source = 'src/ndn-traffic-client.cpp', |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 18 | use = 'NDN_CPP', |
| 19 | ) |
| 20 | |
| 21 | bld.program ( |
| 22 | features = 'cxx', |
Alexander Afanasyev | fda32a3 | 2014-03-20 10:50:00 -0700 | [diff] [blame^] | 23 | target = 'ndn-traffic-server', |
| 24 | source = 'src/ndn-traffic-server.cpp', |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 25 | use = 'NDN_CPP', |
| 26 | ) |
Alexander Afanasyev | fda32a3 | 2014-03-20 10:50:00 -0700 | [diff] [blame^] | 27 | |
| 28 | bld.install_files('${SYSCONFDIR}/ndn', ['ndn-traffic-client.conf.sample', |
| 29 | 'ndn-traffic-server.conf.sample']) |