From b6ce4627d4df66d24a895a2bab9e07f8cbb9074e Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sun, 16 Dec 2012 22:37:14 -0800 Subject: [PATCH] fix static build --- src/brite/wscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/brite/wscript b/src/brite/wscript index ab50ac853..7ecd31da7 100644 --- a/src/brite/wscript +++ b/src/brite/wscript @@ -26,9 +26,18 @@ def configure(conf): conf.msg("Checking for BRITE location", False) conf.report_optional_feature("brite", "BRITE Integration", False, "BRITE not found (see option --with-brite)") + # Add this module to the list of modules that won't be built + # if they are enabled. + conf.env['MODULES_NOT_BUILT'].append('brite') + return else: conf.report_optional_feature("brite", "BRITE Integration", False, 'BRITE not enabled (see option --with-brite)') + + # Add this module to the list of modules that won't be built + # if they are enabled. + conf.env['MODULES_NOT_BUILT'].append('brite') + return test_code = ''' @@ -65,6 +74,9 @@ int main() conf.env.append_value('CPPPATH', conf.env['CPPPATH_BRITE']) def build(bld): + # Don't do anything for this module if brite's not enabled. + if 'brite' in bld.env['MODULES_NOT_BUILT']: + return module = bld.create_ns3_module('brite', ['network', 'core', 'internet', 'point-to-point']) module.source = [