blob: c4217197665903e0d8e3eaacee50f3678274c152 [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 Afanasyevfda32a32014-03-20 10:50:00 -07006 opt.load('compiler_cxx gnu_dirs')
jeraldabrahamf9543a42014-02-11 06:37:34 -07007
8def configure(conf):
Alexander Afanasyevfda32a32014-03-20 10:50:00 -07009 conf.load("compiler_cxx gnu_dirs")
jeraldabraham420dbf02014-04-25 22:58:31 -070010 conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
11 uselib_store='NDN_CXX', mandatory=True)
jeraldabrahamf9543a42014-02-11 06:37:34 -070012
jeraldabraham420dbf02014-04-25 22:58:31 -070013def build(bld):
14 bld.program(
15 features='cxx',
16 target='ndn-traffic',
17 source='src/ndn-traffic-client.cpp',
18 use='NDN_CXX',
jeraldabrahamf9543a42014-02-11 06:37:34 -070019 )
20
jeraldabraham420dbf02014-04-25 22:58:31 -070021 bld.program(
22 features='cxx',
23 target='ndn-traffic-server',
24 source='src/ndn-traffic-server.cpp',
25 use='NDN_CXX',
jeraldabrahamf9543a42014-02-11 06:37:34 -070026 )
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070027
28 bld.install_files('${SYSCONFDIR}/ndn', ['ndn-traffic-client.conf.sample',
29 'ndn-traffic-server.conf.sample'])