Files
ndn-traffic-generator/wscript
T
Davide Pesavento 032c98004f Rename ndn-traffic to ndn-traffic-client
Change-Id: If1172924b94864e3d10c03cf918e9bc2a8b0fdee
2019-01-25 17:10:26 -05:00

36 lines
1.1 KiB
Python

# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
VERSION = '0.1'
APPNAME = 'ndn-traffic-generator'
from waflib import Utils
import os
def options(opt):
opt.load(['compiler_cxx', 'gnu_dirs'])
opt.load(['default-compiler-flags'],
tooldir=['.waf-tools'])
def configure(conf):
conf.load(['compiler_cxx', 'gnu_dirs',
'default-compiler-flags'])
if 'PKG_CONFIG_PATH' not in os.environ:
os.environ['PKG_CONFIG_PATH'] = Utils.subst_vars('${LIBDIR}/pkgconfig', conf.env)
conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
uselib_store='NDN_CXX', mandatory=True)
conf.check_compiler_flags()
def build(bld):
bld.program(target='ndn-traffic-client',
source='src/ndn-traffic-client.cpp',
use='NDN_CXX')
bld.program(target='ndn-traffic-server',
source='src/ndn-traffic-server.cpp',
use='NDN_CXX')
bld.install_files('${SYSCONFDIR}/ndn', ['ndn-traffic-client.conf.sample',
'ndn-traffic-server.conf.sample'])