blob: 4f8edddbd4eb27d0b8c15d20b2a0d4761c9adb12 [file] [log] [blame]
Alexander Afanasyevf04d4512012-02-14 18:42:47 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3def build(bld):
Alexander Afanasyevc3866442013-05-05 21:56:46 -07004 # 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 Afanasyev4aac5572012-08-09 10:49:55 -07008 obj.source = 'ndn-simple.cc'
Alexander Afanasyevf04d4512012-02-14 18:42:47 -08009
Alexander Afanasyevfff84982013-05-30 09:19:46 -070010 obj = bld.create_ns3_program('ndn-csma', all_modules)
11 obj.source = 'ndn-csma.cc'
12
Alexander Afanasyevc3866442013-05-05 21:56:46 -070013 obj = bld.create_ns3_program('ndn-grid', all_modules)
Alexander Afanasyev4aac5572012-08-09 10:49:55 -070014 obj.source = 'ndn-grid.cc'
Alexander Afanasyev1fb9fed2013-02-01 23:18:04 -080015
Alexander Afanasyevc3866442013-05-05 21:56:46 -070016 obj = bld.create_ns3_program('ndn-zipf-mandelbrot', all_modules)
Alexander Afanasyev13800102012-12-25 00:30:31 -080017 obj.source = 'ndn-zipf-mandelbrot.cc'
Alexander Afanasyev1fb9fed2013-02-01 23:18:04 -080018
Shockebebcda2012-12-25 14:25:58 +080019
Alexander Afanasyevc3866442013-05-05 21:56:46 -070020 obj = bld.create_ns3_program('ndn-simple-with-content-freshness', all_modules)
Alexander Afanasyevc3cc0b32012-12-12 18:41:20 -080021 obj.source = ['ndn-simple-with-content-freshness.cc',
22 'custom-apps/dumb-requester.cc']
23
Alexander Afanasyevc3866442013-05-05 21:56:46 -070024 obj = bld.create_ns3_program('ndn-simple-with-custom-app', all_modules)
Alexander Afanasyev68de7952012-12-12 18:02:29 -080025 obj.source = ['ndn-simple-with-custom-app.cc',
Alexander Afanasyevc3cc0b32012-12-12 18:41:20 -080026 'custom-apps/custom-app.cc',
27 'custom-apps/hijacker.cc']
Alexander Afanasyev68de7952012-12-12 18:02:29 -080028
Alexander Afanasyevaa1c4c32012-11-21 16:17:03 -080029 if 'topology' in bld.env['NDN_plugins']:
Alexander Afanasyevc3866442013-05-05 21:56:46 -070030 obj = bld.create_ns3_program('ndn-grid-topo-plugin', all_modules)
Alexander Afanasyevaa1c4c32012-11-21 16:17:03 -080031 obj.source = 'ndn-grid-topo-plugin.cc'
32
Alexander Afanasyevc3866442013-05-05 21:56:46 -070033 obj = bld.create_ns3_program('ndn-grid-topo-plugin-loss', all_modules)
Alexander Afanasyevda2f23a2013-04-14 22:52:50 -070034 obj.source = 'ndn-grid-topo-plugin-loss.cc'
35
Alexander Afanasyevc3866442013-05-05 21:56:46 -070036 obj = bld.create_ns3_program('ndn-congestion-topo-plugin', all_modules)
Alexander Afanasyevaa1c4c32012-11-21 16:17:03 -080037 obj.source = 'ndn-congestion-topo-plugin.cc'
Alexander Afanasyeve97c6072012-11-21 23:51:12 -080038
Alexander Afanasyevc3866442013-05-05 21:56:46 -070039 obj = bld.create_ns3_program('ndn-congestion-alt-topo-plugin', all_modules)
Alexander Afanasyeve97c6072012-11-21 23:51:12 -080040 obj.source = [
41 'custom-strategies/custom-strategy.cc',
42 'ndn-congestion-alt-topo-plugin.cc'
43 ]
Alexander Afanasyev59314802012-11-26 14:56:04 -080044
Alexander Afanasyevc3866442013-05-05 21:56:46 -070045 obj = bld.create_ns3_program('ndn-tree-tracers', all_modules)
Alexander Afanasyev59314802012-11-26 14:56:04 -080046 obj.source = 'ndn-tree-tracers.cc'
Alexander Afanasyevf4a03592012-12-10 16:12:34 -080047
Alexander Afanasyevc3866442013-05-05 21:56:46 -070048 obj = bld.create_ns3_program('ndn-tree-cs-tracers', all_modules)
Alexander Afanasyevf4a03592012-12-10 16:12:34 -080049 obj.source = 'ndn-tree-cs-tracers.cc'
Alexander Afanasyevdb64ff12013-01-18 16:37:31 -080050
Alexander Afanasyevc3866442013-05-05 21:56:46 -070051 obj = bld.create_ns3_program('ndn-tree-app-delay-tracer', all_modules)
Alexander Afanasyevdb64ff12013-01-18 16:37:31 -080052 obj.source = 'ndn-tree-app-delay-tracer.cc'
Alexander Afanasyev1fb9fed2013-02-01 23:18:04 -080053
Alexander Afanasyevc3866442013-05-05 21:56:46 -070054 obj = bld.create_ns3_program('ndn-tree-with-l2tracer', all_modules)
Alexander Afanasyev27370c52013-03-12 13:54:08 -070055 obj.source = 'ndn-tree-with-l2tracer.cc'
56
Alexander Afanasyevc7411ee2013-06-10 10:54:54 -070057 obj = bld.create_ns3_program('ndn-triangle-calculate-routes', all_modules)
58 obj.source = 'ndn-triangle-calculate-routes.cc'
59
Alexander Afanasyevc3866442013-05-05 21:56:46 -070060 obj = bld.create_ns3_program('ndn-simple-pit-policies', all_modules)
Alexander Afanasyev1fb9fed2013-02-01 23:18:04 -080061 obj.source = 'ndn-simple-pit-policies.cc'
Alexander Afanasyev4c6bc582013-02-07 10:13:48 -080062
Alexander Afanasyevc3866442013-05-05 21:56:46 -070063 obj = bld.create_ns3_program('ndn-simple-with-different-sizes-content-store', all_modules)
Alexander Afanasyev4c6bc582013-02-07 10:13:48 -080064 obj.source = 'ndn-simple-with-different-sizes-content-store.cc'
Alexander Afanasyev41684ab2013-02-19 11:02:37 -080065
Alexander Afanasyevc3866442013-05-05 21:56:46 -070066 obj = bld.create_ns3_program('ndn-simple-with-cs-lfu', all_modules)
Alexander Afanasyev41684ab2013-02-19 11:02:37 -080067 obj.source = 'ndn-simple-with-cs-lfu.cc'
Alexander Afanasyev1ab1aad2013-02-28 11:32:21 -080068
Alexander Afanasyevc3866442013-05-05 21:56:46 -070069 obj = bld.create_ns3_program('ndn-simple-with-pcap', all_modules)
Alexander Afanasyev1ab1aad2013-02-28 11:32:21 -080070 obj.source = 'ndn-simple-with-pcap.cc'
Alexander Afanasyev4ebe07e2013-03-26 13:27:55 -070071
Alexander Afanasyevc3866442013-05-05 21:56:46 -070072 obj = bld.create_ns3_program('ndn-simple-with-pit-operation-stats', all_modules)
Alexander Afanasyev4ebe07e2013-03-26 13:27:55 -070073 obj.source = 'ndn-simple-with-pit-operation-stats.cc'
Alexander Afanasyevb5e77d82013-04-10 15:55:26 -070074
Alexander Afanasyevc3866442013-05-05 21:56:46 -070075 obj = bld.create_ns3_program('ndn-simple-with-pit-count-stats', all_modules)
Alexander Afanasyevb5e77d82013-04-10 15:55:26 -070076 obj.source = 'ndn-simple-with-pit-count-stats.cc'