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' |
jeraldabraham | 420dbf0 | 2014-04-25 22:58:31 -0700 | [diff] [blame] | 3 | APPNAME="ndn-traffic-generator" |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 4 | |
| 5 | def options(opt): |
Alexander Afanasyev | 740812e | 2014-10-30 15:37:45 -0700 | [diff] [blame] | 6 | opt.load(['compiler_cxx', 'gnu_dirs']) |
| 7 | opt.load(['default-compiler-flags'], tooldir=['.waf-tools']) |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 8 | |
| 9 | def configure(conf): |
Alexander Afanasyev | 740812e | 2014-10-30 15:37:45 -0700 | [diff] [blame] | 10 | conf.load(['compiler_cxx', 'gnu_dirs', |
| 11 | 'default-compiler-flags']) |
jeraldabraham | 420dbf0 | 2014-04-25 22:58:31 -0700 | [diff] [blame] | 12 | conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'], |
| 13 | uselib_store='NDN_CXX', mandatory=True) |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 14 | |
jeraldabraham | 420dbf0 | 2014-04-25 22:58:31 -0700 | [diff] [blame] | 15 | def build(bld): |
| 16 | bld.program( |
| 17 | features='cxx', |
| 18 | target='ndn-traffic', |
| 19 | source='src/ndn-traffic-client.cpp', |
| 20 | use='NDN_CXX', |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 21 | ) |
| 22 | |
jeraldabraham | 420dbf0 | 2014-04-25 22:58:31 -0700 | [diff] [blame] | 23 | bld.program( |
| 24 | features='cxx', |
| 25 | target='ndn-traffic-server', |
| 26 | source='src/ndn-traffic-server.cpp', |
| 27 | use='NDN_CXX', |
jeraldabraham | f9543a4 | 2014-02-11 06:37:34 -0700 | [diff] [blame] | 28 | ) |
Alexander Afanasyev | fda32a3 | 2014-03-20 10:50:00 -0700 | [diff] [blame] | 29 | |
| 30 | bld.install_files('${SYSCONFDIR}/ndn', ['ndn-traffic-client.conf.sample', |
| 31 | 'ndn-traffic-server.conf.sample']) |