Add netanim module

This commit is contained in:
Tom Henderson
2011-03-05 10:51:26 -08:00
parent 728b6200d6
commit 344f51c8af
22 changed files with 42 additions and 25 deletions

31
src/netanim/wscript Normal file
View File

@@ -0,0 +1,31 @@
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
module = bld.create_ns3_module('netanim', ['internet', 'point-to-point'])
module.includes = '.'
module.source = [
'model/animation-interface.cc',
'model/canvas-location.cc',
'helper/point-to-point-dumbbell-helper.cc',
'helper/point-to-point-grid-helper.cc',
'helper/point-to-point-star-helper.cc',
]
headers = bld.new_task_gen('ns3header')
headers.module = 'netanim'
headers.source = [
'model/animation-interface.h',
'model/canvas-location.h',
'helper/point-to-point-dumbbell-helper.h',
'helper/point-to-point-grid-helper.h',
'helper/point-to-point-star-helper.h',
]
if (bld.env['ENABLE_EXAMPLES']):
bld.add_subdirs('examples')
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)