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; -*- |
| 2 | VERSION='0.3' |
| 3 | NAME="ndn-traffic" |
| 4 | |
| 5 | def options(opt): |
| 6 | opt.load('compiler_cxx') |
| 7 | |
| 8 | def configure(conf): |
| 9 | conf.load("compiler_cxx") |
| 10 | conf.check_cfg(package='libndn-cpp-dev', args=['--cflags', '--libs'], uselib_store='NDN_CPP', mandatory=True) |
| 11 | |
| 12 | def build (bld): |
| 13 | bld.program ( |
| 14 | features = 'cxx', |
| 15 | target = 'ndntraffic', |
| 16 | source = 'ndn-traffic-client.cpp', |
| 17 | use = 'NDN_CPP', |
| 18 | ) |
| 19 | |
| 20 | bld.program ( |
| 21 | features = 'cxx', |
| 22 | target = 'ndntrafficserver', |
| 23 | source = 'ndn-traffic-server.cpp', |
| 24 | use = 'NDN_CPP', |
| 25 | ) |