src/buildings/wscript
author Nicola Baldo <nbaldo@cttc.es>
Tue, 29 May 2012 13:56:26 +0200
changeset 8822 49d3a0979d43
parent 8767 76e71d929a3f
child 9277 0f87d1cb030c
permissions -rw-r--r--
fixed Bug 1439 - exclude headers for tests from installation

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

def build(bld):

    module = bld.create_ns3_module('buildings', ['mobility', 'propagation', 'config-store'])
    module.source = [
        'model/building.cc',
        'model/building-list.cc',
        'model/buildings-mobility-model.cc',
        'model/itu-r-1238-propagation-loss-model.cc',
        'model/buildings-propagation-loss-model.cc',
        'model/hybrid-buildings-propagation-loss-model.cc',
        'model/oh-buildings-propagation-loss-model.cc',
        'helper/building-container.cc',
        'helper/building-position-allocator.cc',
        'helper/building-allocator.cc',
        'helper/buildings-helper.cc',
        ]

    module_test = bld.create_ns3_module_test_library('buildings')
    module_test.source = [
        'test/buildings-helper-test.cc',
        'test/building-position-allocator-test.cc',
        'test/buildings-pathloss-test.cc',
        'test/buildings-shadowing-test.cc',
        ]
    
    headers = bld.new_task_gen(features=['ns3header'])
    headers.module = 'buildings'
    headers.source = [
        'model/building.h',
        'model/building-list.h',
        'model/buildings-mobility-model.h',
        'model/itu-r-1238-propagation-loss-model.h',
        'model/buildings-propagation-loss-model.h',
        'model/hybrid-buildings-propagation-loss-model.h',
        'model/oh-buildings-propagation-loss-model.h',
        'helper/building-container.h',
        'helper/building-allocator.h',
        'helper/building-position-allocator.h',
        'helper/buildings-helper.h',
        ]

    if (bld.env['ENABLE_EXAMPLES']):
        bld.add_subdirs('examples')


    bld.ns3_python_bindings()