|
|
| 29 |
all_modules.append(dirname) |
29 |
all_modules.append(dirname) |
| 30 |
all_modules.sort() |
30 |
all_modules.sort() |
| 31 |
|
31 |
|
| 32 |
|
32 |
def get_required_boost_libs(conf): |
|
|
33 |
for module in all_modules: |
| 34 |
conf.recurse (module, name="required_boost_libs", mandatory=False) |
| 33 |
|
35 |
|
| 34 |
def options(opt): |
36 |
def options(opt): |
| 35 |
opt.add_option('--enable-rpath', |
37 |
opt.add_option('--enable-rpath', |
|
|
| 49 |
opt.recurse(module, mandatory=False) |
51 |
opt.recurse(module, mandatory=False) |
| 50 |
|
52 |
|
| 51 |
def configure(conf): |
53 |
def configure(conf): |
| 52 |
conf.env['REQUIRED_BOOST_LIBS'] = [] |
|
|
| 53 |
for module in all_modules: |
| 54 |
conf.recurse (module, name="required_boost_libs", mandatory=False) |
| 55 |
|
| 56 |
if conf.env['REQUIRED_BOOST_LIBS'] is not []: |
| 57 |
conf.load('boost') |
| 58 |
conf.check_boost(lib=' '.join (conf.env['REQUIRED_BOOST_LIBS']), mandatory=False) |
| 59 |
if not conf.env['LIB_BOOST']: |
| 60 |
conf.check_boost(lib=' '.join (conf.env['REQUIRED_BOOST_LIBS']), libpath="/usr/lib64", mandatory=False) |
| 61 |
if not conf.env['LIB_BOOST']: |
| 62 |
conf.env['LIB_BOOST'] = [] |
| 63 |
|
| 64 |
# Append blddir to the module path before recursing into modules |
54 |
# Append blddir to the module path before recursing into modules |
| 65 |
blddir = os.path.abspath(os.path.join(conf.bldnode.abspath(), conf.variant)) |
55 |
blddir = os.path.abspath(os.path.join(conf.bldnode.abspath(), conf.variant)) |
| 66 |
conf.env.append_value('NS3_MODULE_PATH', blddir + "/lib") |
56 |
conf.env.append_value('NS3_MODULE_PATH', blddir + "/lib") |