Alexander Afanasyev | 7a696fb | 2012-03-01 17:17:22 -0800 | [diff] [blame] | 1 | # -*- 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 Afanasyev | 8f25cbb | 2012-03-01 23:53:40 -0800 | [diff] [blame^] | 8 | def configure(conf): |
| 9 | conf.check_cfg(atleast_pkgconfig_version='0.20') |
| 10 | conf.check_cfg(package='openssl', args=['--cflags', '--libs'], uselib_store='SSL') |
Alexander Afanasyev | 7a696fb | 2012-03-01 17:17:22 -0800 | [diff] [blame] | 11 | |
| 12 | def 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 Afanasyev | 8f25cbb | 2012-03-01 23:53:40 -0800 | [diff] [blame^] | 18 | module.uselib = 'BOOST BOOST_IOSTREAMS SSL' |
Alexander Afanasyev | 7a696fb | 2012-03-01 17:17:22 -0800 | [diff] [blame] | 19 | |
| 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 | |