blob: e84646632960e248885e8283122718a51690840f [file] [log] [blame]
Junxiao Shif7191242015-03-19 05:53:41 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2import os
3
4VERSION='0.1'
5APPNAME="ndn-tools"
6
7def options(opt):
8 opt.load(['compiler_cxx', 'gnu_dirs'])
9 opt.load(['default-compiler-flags'], tooldir=['.waf-tools'])
10
11def configure(conf):
12 conf.load(['compiler_cxx', 'gnu_dirs',
13 'default-compiler-flags'])
14
15 if not os.environ.has_key('PKG_CONFIG_PATH'):
16 os.environ['PKG_CONFIG_PATH'] = ':'.join([
17 '/usr/lib/pkgconfig',
18 '/usr/local/lib/pkgconfig',
19 '/opt/local/lib/pkgconfig'])
20 conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
21 uselib_store='NDN_CXX', mandatory=True)
22
23 conf.recurse('tools')
24
25def build(bld):
26 bld(
27 target='core-objects',
28 name='core-objects',
29 features='cxx',
30 source=bld.path.ant_glob(['core/*.cpp']),
31 use='NDN_CXX',
32 export_includes='.',
33 )
34
35 bld.recurse('tools')