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') |
| 8 | |
| 9 | def build (bld): |
| 10 | deps = ['core', 'network', 'NDNabstraction'] |
| 11 | if bld.env['ENABLE_PYTHON_BINDINGS']: |
| 12 | deps.append ('visualizer') |
| 13 | |
| 14 | module = bld.create_ns3_module ('sync', deps) |
| 15 | module.uselib = 'BOOST BOOST_IOSTREAMS' |
| 16 | |
| 17 | # tests = bld.create_ns3_module_test_library('sync') |
| 18 | # tests.source = [ |
| 19 | # 'test/sync-test-suite.cc', |
| 20 | # ] |
| 21 | |
| 22 | headers = bld.new_task_gen(features=['ns3header']) |
| 23 | headers.module = 'sync' |
| 24 | headers.source = [ |
| 25 | 'model/sync-app.h', |
| 26 | ] |
| 27 | |
| 28 | # if not bld.env['ENABLE_NDN_ABSTRACT']: |
| 29 | # bld.env['MODULES_NOT_BUILT'].append('NDNabstraction') |
| 30 | # return |
| 31 | |
| 32 | module.source = bld.path.ant_glob(['model/*.cc', |
| 33 | 'helper/*.cc']) |
| 34 | |
| 35 | # if bld.env.ENABLE_EXAMPLES: |
| 36 | # bld.add_subdirs('examples') |
| 37 | |
| 38 | # bld.ns3_python_bindings() |
| 39 | |