utils/wscript
changeset 4064 10222f483860
parent 3489 b5ef00370c70
child 4550 bf3bf038e091
equal deleted inserted replaced
4031:d26a4018a9ef 4064:10222f483860
     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 import os.path
     2 import os.path
     3 
     3 
     4 def configure(conf):
     4 def configure(conf):
     5     check = conf.create_pkgconfig_configurator()
     5     conf.env['ENABLE_MOBILITY_VISUALIZER'] = conf.pkg_check_modules(
     6     check.name = 'goocanvas gthread-2.0'
     6         'MOBILITY_VISUALIZER', 'goocanvas gthread-2.0', mandatory=False)
     7     check.uselib = 'MOBILITY_VISUALIZER'
       
     8     check.mandatory = False
       
     9     conf.env['ENABLE_MOBILITY_VISUALIZER'] = check.run()
       
    10     
     7     
    11 
     8 
    12 def build(bld):
     9 def build(bld):
    13     env = bld.env_of_name('default')
    10     env = bld.env
    14 
    11 
    15     unit_tests = bld.create_ns3_program('run-tests', ['common'])
    12     unit_tests = bld.create_ns3_program('run-tests', ['common'])
    16     unit_tests.inst_var  = 0 # do not install
    13     unit_tests.install_path = None # do not install
    17     unit_tests.source = 'run-tests.cc'
    14     unit_tests.source = 'run-tests.cc'
    18     ## link unit test program with all ns3 modules
    15     ## link unit test program with all ns3 modules
    19     unit_tests.uselib_local = 'ns3'
    16     unit_tests.uselib_local = 'ns3'
    20     
    17     
    21     obj = bld.create_ns3_program('bench-simulator', ['simulator'])
    18     obj = bld.create_ns3_program('bench-simulator', ['simulator'])