[Ns-developers] ns-3.9 release update

Pavel Boyko boyko at iitp.ru
Sun Aug 1 22:38:18 PDT 2010


  Hi, Jens,

On Friday, July 30, 2010 06:52:18 pm Jens Mittag wrote:
> Find attached the wscript file that we use. What you are looking for I
> guess is the following:
> 
>    def build(bld):
> 	...
> 	obj = bld.create_ns3_program('physim-1sender-only-pathloss',
> 	['core', 'simulator', 'mobility', 'wifi', 'physim-wifi'])
> 	obj.source = 'example/physim-1sender-only-pathloss.cc'

  Exactly, thank you. The final stroke was to account for ./waf --disable-
examples option checking bld.env['ENABLE_EXAMPLES'] variable. I attach my 
current stub for wscript. 

  Pavel
-------------- next part --------------
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-

def build(bld):
    module_name = 'my-module'                 # TODO: substitude by your module name
    module_deps = ['node', 'internet-stack']  # TODO: keep correct deps.   

    # Library
    module = bld.create_ns3_module(module_name, module_deps)
    module.includes = '.'
    module.source = [
        # TODO: list all .cc files here
        ]

    # Headers
    headers = bld.new_task_gen('ns3header')
    headers.module = module_name
    headers.source = [
        # TODO: list all exported headers here
        ]
    
    # Examples
    if (bld.env['ENABLE_EXAMPLES']):
        example_deps = [module_name, 'node', 'wifi', 'internet-stack'] # TODO: keep correct deps.

        obj = bld.create_ns3_program('my-example', example_deps)
        obj.source = 'example/my-example.cc'

        # build other examples here ...



More information about the Ns-developers mailing list