LEFT | RIGHT |
(no file at all) | |
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- | 1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8;
-*- |
2 | 2 |
3 import os | 3 import os |
4 import Options | 4 import Options |
5 | 5 |
6 | 6 |
7 def set_options(opt): | 7 def set_options(opt): |
8 opt.add_option('--with-nsclick', | 8 opt.add_option('--with-nsclick', |
9 help=('Path to Click source or installation prefix for NS-3 C
lick Integration support'), | 9 help=('Path to Click source or installation prefix for NS-3 C
lick Integration support'), |
10 dest='with_nsclick', default=None) | 10 dest='with_nsclick', default=None) |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 else: | 77 else: |
78 # Add this module to the list of modules that won't be built | 78 # Add this module to the list of modules that won't be built |
79 # if they are enabled. | 79 # if they are enabled. |
80 conf.env['MODULES_NOT_BUILT'].append('click') | 80 conf.env['MODULES_NOT_BUILT'].append('click') |
81 | 81 |
82 def build(bld): | 82 def build(bld): |
83 # Don't do anything for this module if click should not be built. | 83 # Don't do anything for this module if click should not be built. |
84 if 'click' in bld.env['MODULES_NOT_BUILT']: | 84 if 'click' in bld.env['MODULES_NOT_BUILT']: |
85 return | 85 return |
86 | 86 |
87 module = bld.create_ns3_module('click', ['internet']) | 87 module = bld.create_ns3_module('click', ['internet','wifi']) |
88 module.includes = '. CPPPATH_NSCLICK' | 88 module.includes = '. CPPPATH_NSCLICK' |
89 module.source = [ | 89 module.source = [ |
90 'model/ipv4-click-routing.cc', | 90 'model/ipv4-click-routing.cc', |
91 'model/ipv4-l3-click-protocol.cc', | 91 'model/ipv4-l3-click-protocol.cc', |
92 'helper/click-internet-stack-helper.cc', | 92 'helper/click-internet-stack-helper.cc', |
93 ] | 93 ] |
94 | 94 |
95 module_test = bld.create_ns3_module_test_library('click') | 95 module_test = bld.create_ns3_module_test_library('click') |
96 module_test.source = [ | 96 module_test.source = [ |
97 'test/ipv4-click-routing-test.cc', | 97 'test/ipv4-click-routing-test.cc', |
98 ] | 98 ] |
99 | 99 |
100 if bld.env['NSCLICK'] and bld.env['DL']: | 100 if bld.env['NSCLICK'] and bld.env['DL']: |
101 module.uselib = 'NSCLICK DL' | 101 module.uselib = 'NSCLICK DL' |
102 module_test.uselib = 'NSCLICK DL' | 102 module_test.uselib = 'NSCLICK DL' |
103 | 103 |
104 headers = bld.new_task_gen('ns3header') | 104 headers = bld.new_task_gen('ns3header') |
105 headers.module = 'click' | 105 headers.module = 'click' |
106 headers.source = [ | 106 headers.source = [ |
107 'model/ipv4-click-routing.h', | 107 'model/ipv4-click-routing.h', |
108 'model/ipv4-l3-click-protocol.h', | 108 'model/ipv4-l3-click-protocol.h', |
109 'helper/click-internet-stack-helper.h', | 109 'helper/click-internet-stack-helper.h', |
110 ] | 110 ] |
111 | 111 |
112 if bld.env['ENABLE_EXAMPLES']: | 112 if bld.env['ENABLE_EXAMPLES']: |
113 bld.add_subdirs('examples') | 113 bld.add_subdirs('examples') |
114 | 114 |
115 bld.ns3_python_bindings() | 115 bld.ns3_python_bindings() |
LEFT | RIGHT |