Alexander Afanasyev | f04d451 | 2012-02-14 18:42:47 -0800 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | def build(bld): |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 4 | # This may be necessary for visualizer to work |
| 5 | all_modules = [mod[len("ns3-"):] for mod in bld.env['NS3_ENABLED_MODULES']] |
| 6 | |
| 7 | obj = bld.create_ns3_program('ndn-simple', all_modules) |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 8 | obj.source = 'ndn-simple.cc' |
Alexander Afanasyev | f04d451 | 2012-02-14 18:42:47 -0800 | [diff] [blame] | 9 | |
Alexander Afanasyev | fff8498 | 2013-05-30 09:19:46 -0700 | [diff] [blame] | 10 | obj = bld.create_ns3_program('ndn-csma', all_modules) |
| 11 | obj.source = 'ndn-csma.cc' |
| 12 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 13 | obj = bld.create_ns3_program('ndn-grid', all_modules) |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 14 | obj.source = 'ndn-grid.cc' |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 15 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 16 | obj = bld.create_ns3_program('ndn-zipf-mandelbrot', all_modules) |
Alexander Afanasyev | 1380010 | 2012-12-25 00:30:31 -0800 | [diff] [blame] | 17 | obj.source = 'ndn-zipf-mandelbrot.cc' |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 18 | |
Shock | ebebcda | 2012-12-25 14:25:58 +0800 | [diff] [blame] | 19 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 20 | obj = bld.create_ns3_program('ndn-simple-with-content-freshness', all_modules) |
Alexander Afanasyev | c3cc0b3 | 2012-12-12 18:41:20 -0800 | [diff] [blame] | 21 | obj.source = ['ndn-simple-with-content-freshness.cc', |
| 22 | 'custom-apps/dumb-requester.cc'] |
| 23 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 24 | obj = bld.create_ns3_program('ndn-simple-with-custom-app', all_modules) |
Alexander Afanasyev | 68de795 | 2012-12-12 18:02:29 -0800 | [diff] [blame] | 25 | obj.source = ['ndn-simple-with-custom-app.cc', |
Alexander Afanasyev | c3cc0b3 | 2012-12-12 18:41:20 -0800 | [diff] [blame] | 26 | 'custom-apps/custom-app.cc', |
| 27 | 'custom-apps/hijacker.cc'] |
Alexander Afanasyev | 68de795 | 2012-12-12 18:02:29 -0800 | [diff] [blame] | 28 | |
Alexander Afanasyev | aa1c4c3 | 2012-11-21 16:17:03 -0800 | [diff] [blame] | 29 | if 'topology' in bld.env['NDN_plugins']: |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 30 | obj = bld.create_ns3_program('ndn-grid-topo-plugin', all_modules) |
Alexander Afanasyev | aa1c4c3 | 2012-11-21 16:17:03 -0800 | [diff] [blame] | 31 | obj.source = 'ndn-grid-topo-plugin.cc' |
| 32 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 33 | obj = bld.create_ns3_program('ndn-grid-topo-plugin-loss', all_modules) |
Alexander Afanasyev | da2f23a | 2013-04-14 22:52:50 -0700 | [diff] [blame] | 34 | obj.source = 'ndn-grid-topo-plugin-loss.cc' |
| 35 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 36 | obj = bld.create_ns3_program('ndn-congestion-topo-plugin', all_modules) |
Alexander Afanasyev | aa1c4c3 | 2012-11-21 16:17:03 -0800 | [diff] [blame] | 37 | obj.source = 'ndn-congestion-topo-plugin.cc' |
Alexander Afanasyev | e97c607 | 2012-11-21 23:51:12 -0800 | [diff] [blame] | 38 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 39 | obj = bld.create_ns3_program('ndn-congestion-alt-topo-plugin', all_modules) |
Alexander Afanasyev | e97c607 | 2012-11-21 23:51:12 -0800 | [diff] [blame] | 40 | obj.source = [ |
| 41 | 'custom-strategies/custom-strategy.cc', |
| 42 | 'ndn-congestion-alt-topo-plugin.cc' |
| 43 | ] |
Alexander Afanasyev | 5931480 | 2012-11-26 14:56:04 -0800 | [diff] [blame] | 44 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 45 | obj = bld.create_ns3_program('ndn-tree-tracers', all_modules) |
Alexander Afanasyev | 5931480 | 2012-11-26 14:56:04 -0800 | [diff] [blame] | 46 | obj.source = 'ndn-tree-tracers.cc' |
Alexander Afanasyev | f4a0359 | 2012-12-10 16:12:34 -0800 | [diff] [blame] | 47 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 48 | obj = bld.create_ns3_program('ndn-tree-cs-tracers', all_modules) |
Alexander Afanasyev | f4a0359 | 2012-12-10 16:12:34 -0800 | [diff] [blame] | 49 | obj.source = 'ndn-tree-cs-tracers.cc' |
Alexander Afanasyev | db64ff1 | 2013-01-18 16:37:31 -0800 | [diff] [blame] | 50 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 51 | obj = bld.create_ns3_program('ndn-tree-app-delay-tracer', all_modules) |
Alexander Afanasyev | db64ff1 | 2013-01-18 16:37:31 -0800 | [diff] [blame] | 52 | obj.source = 'ndn-tree-app-delay-tracer.cc' |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 53 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 54 | obj = bld.create_ns3_program('ndn-tree-with-l2tracer', all_modules) |
Alexander Afanasyev | 27370c5 | 2013-03-12 13:54:08 -0700 | [diff] [blame] | 55 | obj.source = 'ndn-tree-with-l2tracer.cc' |
| 56 | |
Alexander Afanasyev | c7411ee | 2013-06-10 10:54:54 -0700 | [diff] [blame] | 57 | obj = bld.create_ns3_program('ndn-triangle-calculate-routes', all_modules) |
| 58 | obj.source = 'ndn-triangle-calculate-routes.cc' |
| 59 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 60 | obj = bld.create_ns3_program('ndn-simple-pit-policies', all_modules) |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 61 | obj.source = 'ndn-simple-pit-policies.cc' |
Alexander Afanasyev | 4c6bc58 | 2013-02-07 10:13:48 -0800 | [diff] [blame] | 62 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 63 | obj = bld.create_ns3_program('ndn-simple-with-different-sizes-content-store', all_modules) |
Alexander Afanasyev | 4c6bc58 | 2013-02-07 10:13:48 -0800 | [diff] [blame] | 64 | obj.source = 'ndn-simple-with-different-sizes-content-store.cc' |
Alexander Afanasyev | 41684ab | 2013-02-19 11:02:37 -0800 | [diff] [blame] | 65 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 66 | obj = bld.create_ns3_program('ndn-simple-with-cs-lfu', all_modules) |
Alexander Afanasyev | 41684ab | 2013-02-19 11:02:37 -0800 | [diff] [blame] | 67 | obj.source = 'ndn-simple-with-cs-lfu.cc' |
Alexander Afanasyev | 1ab1aad | 2013-02-28 11:32:21 -0800 | [diff] [blame] | 68 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 69 | obj = bld.create_ns3_program('ndn-simple-with-pcap', all_modules) |
Alexander Afanasyev | 1ab1aad | 2013-02-28 11:32:21 -0800 | [diff] [blame] | 70 | obj.source = 'ndn-simple-with-pcap.cc' |
Alexander Afanasyev | 4ebe07e | 2013-03-26 13:27:55 -0700 | [diff] [blame] | 71 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 72 | obj = bld.create_ns3_program('ndn-simple-with-pit-operation-stats', all_modules) |
Alexander Afanasyev | 4ebe07e | 2013-03-26 13:27:55 -0700 | [diff] [blame] | 73 | obj.source = 'ndn-simple-with-pit-operation-stats.cc' |
Alexander Afanasyev | b5e77d8 | 2013-04-10 15:55:26 -0700 | [diff] [blame] | 74 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 75 | obj = bld.create_ns3_program('ndn-simple-with-pit-count-stats', all_modules) |
Alexander Afanasyev | b5e77d8 | 2013-04-10 15:55:26 -0700 | [diff] [blame] | 76 | obj.source = 'ndn-simple-with-pit-count-stats.cc' |