blob: d0fcea4ee0ffc7fcb379ed06a72b47a2568734b6 [file] [log] [blame]
Alexander Afanasyev7a696fb2012-03-01 17:17:22 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3# def options(opt):
4# pass
5
6# def configure(conf):
7# conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H')
Alexander Afanasyev8f25cbb2012-03-01 23:53:40 -08008def configure(conf):
9 conf.check_cfg(atleast_pkgconfig_version='0.20')
10 conf.check_cfg(package='openssl', args=['--cflags', '--libs'], uselib_store='SSL')
Alexander Afanasyev7a696fb2012-03-01 17:17:22 -080011
12def build (bld):
13 deps = ['core', 'network', 'NDNabstraction']
14 if bld.env['ENABLE_PYTHON_BINDINGS']:
15 deps.append ('visualizer')
16
17 module = bld.create_ns3_module ('sync', deps)
Alexander Afanasyev8f25cbb2012-03-01 23:53:40 -080018 module.uselib = 'BOOST BOOST_IOSTREAMS SSL'
Alexander Afanasyev7a696fb2012-03-01 17:17:22 -080019
20 # tests = bld.create_ns3_module_test_library('sync')
21 # tests.source = [
22 # 'test/sync-test-suite.cc',
23 # ]
24
25 headers = bld.new_task_gen(features=['ns3header'])
26 headers.module = 'sync'
27 headers.source = [
28 'model/sync-app.h',
29 ]
30
31 # if not bld.env['ENABLE_NDN_ABSTRACT']:
32 # bld.env['MODULES_NOT_BUILT'].append('NDNabstraction')
33 # return
34
35 module.source = bld.path.ant_glob(['model/*.cc',
36 'helper/*.cc'])
37
38 # if bld.env.ENABLE_EXAMPLES:
39 # bld.add_subdirs('examples')
40
41 # bld.ns3_python_bindings()
42