blob: 946b472cc577971f173cb4b43276993e4e365f11 [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'
3NAME="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")
10 conf.check_cfg(package='libndn-cpp-dev', args=['--cflags', '--libs'],
11 uselib_store='NDN_CPP', mandatory=True)
jeraldabrahamf9543a42014-02-11 06:37:34 -070012
13def build (bld):
14 bld.program (
15 features = 'cxx',
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070016 target = 'ndn-traffic',
17 source = 'src/ndn-traffic-client.cpp',
jeraldabrahamf9543a42014-02-11 06:37:34 -070018 use = 'NDN_CPP',
19 )
20
21 bld.program (
22 features = 'cxx',
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070023 target = 'ndn-traffic-server',
24 source = 'src/ndn-traffic-server.cpp',
jeraldabrahamf9543a42014-02-11 06:37:34 -070025 use = 'NDN_CPP',
26 )
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'])