26 lines
823 B
Python
26 lines
823 B
Python
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
|
|
|
def build(bld):
|
|
helper = bld.create_ns3_module('helper', ['mobility', 'network', 'internet', 'wifi', 'point-to-point', 'spectrum'])
|
|
helper.source = [
|
|
'athstats-helper.cc',
|
|
'animation-interface.cc',
|
|
'canvas-location.cc',
|
|
]
|
|
|
|
headers = bld.new_task_gen('ns3header')
|
|
headers.module = 'helper'
|
|
headers.source = [
|
|
'athstats-helper.h',
|
|
'animation-interface.h',
|
|
'canvas-location.h',
|
|
]
|
|
|
|
env = bld.env_of_name('default')
|
|
|
|
def configure(conf):
|
|
conf.check(header_name='sys/socket.h', define_name='HAVE_SYS_SOCKET_H')
|
|
conf.check(header_name='netinet/in.h', define_name='HAVE_NETINET_IN_H')
|
|
conf.write_config_header('ns3/net-anim-config.h', top=True)
|
|
|