Alexander Afanasyev | c9f2e25 | 2013-07-14 15:35:21 -0700 | [diff] [blame] | 1 | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | # |
| 3 | # Copyright (c) 2011-2013, Regents of the University of California |
| 4 | # Alexander Afanasyev |
| 5 | # |
| 6 | # GNU 3.0 license, See the LICENSE file for more information |
| 7 | # |
| 8 | # Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 9 | # |
Alexander Afanasyev | f04d451 | 2012-02-14 18:42:47 -0800 | [diff] [blame] | 10 | |
| 11 | def build(bld): |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 12 | # This may be necessary for visualizer to work |
| 13 | all_modules = [mod[len("ns3-"):] for mod in bld.env['NS3_ENABLED_MODULES']] |
| 14 | |
| 15 | obj = bld.create_ns3_program('ndn-simple', all_modules) |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 16 | obj.source = 'ndn-simple.cc' |
Alexander Afanasyev | f04d451 | 2012-02-14 18:42:47 -0800 | [diff] [blame] | 17 | |
Alexander Afanasyev | fff8498 | 2013-05-30 09:19:46 -0700 | [diff] [blame] | 18 | obj = bld.create_ns3_program('ndn-csma', all_modules) |
| 19 | obj.source = 'ndn-csma.cc' |
| 20 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 21 | obj = bld.create_ns3_program('ndn-grid', all_modules) |
Alexander Afanasyev | 4aac557 | 2012-08-09 10:49:55 -0700 | [diff] [blame] | 22 | obj.source = 'ndn-grid.cc' |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 23 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 24 | obj = bld.create_ns3_program('ndn-zipf-mandelbrot', all_modules) |
Alexander Afanasyev | 1380010 | 2012-12-25 00:30:31 -0800 | [diff] [blame] | 25 | obj.source = 'ndn-zipf-mandelbrot.cc' |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 26 | |
Shock | ebebcda | 2012-12-25 14:25:58 +0800 | [diff] [blame] | 27 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 28 | obj = bld.create_ns3_program('ndn-simple-with-content-freshness', all_modules) |
Alexander Afanasyev | c3cc0b3 | 2012-12-12 18:41:20 -0800 | [diff] [blame] | 29 | obj.source = ['ndn-simple-with-content-freshness.cc', |
| 30 | 'custom-apps/dumb-requester.cc'] |
| 31 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 32 | obj = bld.create_ns3_program('ndn-simple-with-custom-app', all_modules) |
Alexander Afanasyev | 68de795 | 2012-12-12 18:02:29 -0800 | [diff] [blame] | 33 | obj.source = ['ndn-simple-with-custom-app.cc', |
Alexander Afanasyev | c3cc0b3 | 2012-12-12 18:41:20 -0800 | [diff] [blame] | 34 | 'custom-apps/custom-app.cc', |
| 35 | 'custom-apps/hijacker.cc'] |
Alexander Afanasyev | 68de795 | 2012-12-12 18:02:29 -0800 | [diff] [blame] | 36 | |
Alexander Afanasyev | aa1c4c3 | 2012-11-21 16:17:03 -0800 | [diff] [blame] | 37 | if 'topology' in bld.env['NDN_plugins']: |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 38 | obj = bld.create_ns3_program('ndn-grid-topo-plugin', all_modules) |
Alexander Afanasyev | aa1c4c3 | 2012-11-21 16:17:03 -0800 | [diff] [blame] | 39 | obj.source = 'ndn-grid-topo-plugin.cc' |
| 40 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 41 | obj = bld.create_ns3_program('ndn-grid-topo-plugin-loss', all_modules) |
Alexander Afanasyev | da2f23a | 2013-04-14 22:52:50 -0700 | [diff] [blame] | 42 | obj.source = 'ndn-grid-topo-plugin-loss.cc' |
| 43 | |
Alexander Afanasyev | 0aa1136 | 2013-07-14 15:35:00 -0700 | [diff] [blame] | 44 | obj = bld.create_ns3_program('ndn-grid-topo-plugin-red-queues', all_modules) |
| 45 | obj.source = 'ndn-grid-topo-plugin-red-queues.cc' |
| 46 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 47 | obj = bld.create_ns3_program('ndn-congestion-topo-plugin', all_modules) |
Alexander Afanasyev | aa1c4c3 | 2012-11-21 16:17:03 -0800 | [diff] [blame] | 48 | obj.source = 'ndn-congestion-topo-plugin.cc' |
Alexander Afanasyev | e97c607 | 2012-11-21 23:51:12 -0800 | [diff] [blame] | 49 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 50 | obj = bld.create_ns3_program('ndn-congestion-alt-topo-plugin', all_modules) |
Alexander Afanasyev | e97c607 | 2012-11-21 23:51:12 -0800 | [diff] [blame] | 51 | obj.source = [ |
| 52 | 'custom-strategies/custom-strategy.cc', |
| 53 | 'ndn-congestion-alt-topo-plugin.cc' |
| 54 | ] |
Alexander Afanasyev | 5931480 | 2012-11-26 14:56:04 -0800 | [diff] [blame] | 55 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 56 | obj = bld.create_ns3_program('ndn-tree-tracers', all_modules) |
Alexander Afanasyev | 5931480 | 2012-11-26 14:56:04 -0800 | [diff] [blame] | 57 | obj.source = 'ndn-tree-tracers.cc' |
Alexander Afanasyev | f4a0359 | 2012-12-10 16:12:34 -0800 | [diff] [blame] | 58 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 59 | obj = bld.create_ns3_program('ndn-tree-cs-tracers', all_modules) |
Alexander Afanasyev | f4a0359 | 2012-12-10 16:12:34 -0800 | [diff] [blame] | 60 | obj.source = 'ndn-tree-cs-tracers.cc' |
Alexander Afanasyev | db64ff1 | 2013-01-18 16:37:31 -0800 | [diff] [blame] | 61 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 62 | obj = bld.create_ns3_program('ndn-tree-app-delay-tracer', all_modules) |
Alexander Afanasyev | db64ff1 | 2013-01-18 16:37:31 -0800 | [diff] [blame] | 63 | obj.source = 'ndn-tree-app-delay-tracer.cc' |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 64 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 65 | obj = bld.create_ns3_program('ndn-tree-with-l2tracer', all_modules) |
Alexander Afanasyev | 27370c5 | 2013-03-12 13:54:08 -0700 | [diff] [blame] | 66 | obj.source = 'ndn-tree-with-l2tracer.cc' |
| 67 | |
Alexander Afanasyev | c7411ee | 2013-06-10 10:54:54 -0700 | [diff] [blame] | 68 | obj = bld.create_ns3_program('ndn-triangle-calculate-routes', all_modules) |
| 69 | obj.source = 'ndn-triangle-calculate-routes.cc' |
| 70 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 71 | obj = bld.create_ns3_program('ndn-simple-pit-policies', all_modules) |
Alexander Afanasyev | 1fb9fed | 2013-02-01 23:18:04 -0800 | [diff] [blame] | 72 | obj.source = 'ndn-simple-pit-policies.cc' |
Alexander Afanasyev | 4c6bc58 | 2013-02-07 10:13:48 -0800 | [diff] [blame] | 73 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 74 | 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] | 75 | obj.source = 'ndn-simple-with-different-sizes-content-store.cc' |
Alexander Afanasyev | 41684ab | 2013-02-19 11:02:37 -0800 | [diff] [blame] | 76 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 77 | obj = bld.create_ns3_program('ndn-simple-with-cs-lfu', all_modules) |
Alexander Afanasyev | 41684ab | 2013-02-19 11:02:37 -0800 | [diff] [blame] | 78 | obj.source = 'ndn-simple-with-cs-lfu.cc' |
Alexander Afanasyev | 1ab1aad | 2013-02-28 11:32:21 -0800 | [diff] [blame] | 79 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 80 | obj = bld.create_ns3_program('ndn-simple-with-pcap', all_modules) |
Alexander Afanasyev | 1ab1aad | 2013-02-28 11:32:21 -0800 | [diff] [blame] | 81 | obj.source = 'ndn-simple-with-pcap.cc' |
Alexander Afanasyev | 4ebe07e | 2013-03-26 13:27:55 -0700 | [diff] [blame] | 82 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 83 | 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] | 84 | obj.source = 'ndn-simple-with-pit-operation-stats.cc' |
Alexander Afanasyev | b5e77d8 | 2013-04-10 15:55:26 -0700 | [diff] [blame] | 85 | |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 86 | 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] | 87 | obj.source = 'ndn-simple-with-pit-count-stats.cc' |
Alexander Afanasyev | 79a5bd6 | 2013-06-23 22:12:39 -0700 | [diff] [blame] | 88 | |
| 89 | obj = bld.create_ns3_program('ndn-simple-api', all_modules) |
| 90 | obj.source = [ |
| 91 | 'ndn-simple-api.cc', |
| 92 | 'custom-apps/ndn-api-app.cc' |
| 93 | ] |
Alexander Afanasyev | 0fb80b9 | 2013-07-20 08:20:50 -0700 | [diff] [blame] | 94 | |
| 95 | obj = bld.create_ns3_program('ndn-simple-with-link-failure', all_modules) |
| 96 | obj.source = 'ndn-simple-with-link-failure.cc' |
Alexander Afanasyev | f4e2452 | 2013-06-24 14:11:57 -0700 | [diff] [blame] | 97 | |
| 98 | if 'ip-faces' in bld.env['NDN_plugins']: |
| 99 | obj = bld.create_ns3_program('ndn-simple-tcp', all_modules) |
| 100 | obj.source = 'ndn-simple-tcp.cc' |
Alexander Afanasyev | d573af2 | 2013-07-27 12:57:08 -0700 | [diff] [blame^] | 101 | |
| 102 | obj = bld.create_ns3_program('ndn-simple-udp', all_modules) |
| 103 | obj.source = 'ndn-simple-udp.cc' |