blob: 0a093752d968865ee6db9d5144c3a05cea0d61a4 [file] [log] [blame]
jeraldabrahamf9543a42014-02-11 06:37:34 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
Alexander Afanasyevfda32a32014-03-20 10:50:00 -07002VERSION='0.1'
jeraldabraham420dbf02014-04-25 22:58:31 -07003APPNAME="ndn-traffic-generator"
jeraldabrahamf9543a42014-02-11 06:37:34 -07004
5def options(opt):
Alexander Afanasyev740812e2014-10-30 15:37:45 -07006 opt.load(['compiler_cxx', 'gnu_dirs'])
7 opt.load(['default-compiler-flags'], tooldir=['.waf-tools'])
jeraldabrahamf9543a42014-02-11 06:37:34 -07008
9def configure(conf):
Alexander Afanasyev740812e2014-10-30 15:37:45 -070010 conf.load(['compiler_cxx', 'gnu_dirs',
11 'default-compiler-flags'])
jeraldabraham420dbf02014-04-25 22:58:31 -070012 conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
13 uselib_store='NDN_CXX', mandatory=True)
jeraldabrahamf9543a42014-02-11 06:37:34 -070014
jeraldabraham420dbf02014-04-25 22:58:31 -070015def build(bld):
16 bld.program(
17 features='cxx',
18 target='ndn-traffic',
19 source='src/ndn-traffic-client.cpp',
20 use='NDN_CXX',
jeraldabrahamf9543a42014-02-11 06:37:34 -070021 )
22
jeraldabraham420dbf02014-04-25 22:58:31 -070023 bld.program(
24 features='cxx',
25 target='ndn-traffic-server',
26 source='src/ndn-traffic-server.cpp',
27 use='NDN_CXX',
jeraldabrahamf9543a42014-02-11 06:37:34 -070028 )
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070029
30 bld.install_files('${SYSCONFDIR}/ndn', ['ndn-traffic-client.conf.sample',
31 'ndn-traffic-server.conf.sample'])