2011-07-08 06:04:37 -04:00
|
|
|
## -*-Mode : python; py-indent-offset : 4; indent-tabs-mode : nil; coding : utf-8; -*-
|
2011-03-05 10:51:26 -08:00
|
|
|
|
2012-01-11 14:34:14 +00:00
|
|
|
import wutils
|
|
|
|
|
|
2012-03-30 00:27:33 -04:00
|
|
|
# Required NetAnim version
|
|
|
|
|
NETANIM_RELEASE_NAME = "netanim-3.100"
|
|
|
|
|
|
|
|
|
|
|
2011-07-08 06:04:37 -04:00
|
|
|
def build (bld) :
|
2012-01-11 14:34:14 +00:00
|
|
|
bld.install_files('${INCLUDEDIR}/%s%s/ns3' % (wutils.APPNAME, wutils.VERSION), '../../ns3/netanim-config.h')
|
2012-03-07 05:52:37 -08:00
|
|
|
module = bld.create_ns3_module ('netanim', ['internet', 'mobility', 'wimax', 'wifi', 'csma', 'lte'])
|
2011-07-08 06:04:37 -04:00
|
|
|
module.includes = '.'
|
|
|
|
|
module.source = [
|
|
|
|
|
'model/animation-interface.cc',
|
|
|
|
|
'helper/animation-interface-helper.cc',
|
|
|
|
|
]
|
2011-03-05 10:51:26 -08:00
|
|
|
|
2011-09-08 16:13:40 +01:00
|
|
|
headers = bld.new_task_gen (features=['ns3header'])
|
2011-07-08 06:04:37 -04:00
|
|
|
headers.module = 'netanim'
|
|
|
|
|
headers.source = [
|
|
|
|
|
'model/animation-interface.h',
|
|
|
|
|
'helper/animation-interface-helper.h',
|
|
|
|
|
]
|
2011-03-05 10:51:26 -08:00
|
|
|
|
2011-07-08 06:04:37 -04:00
|
|
|
if (bld.env['ENABLE_EXAMPLES']) :
|
|
|
|
|
bld.add_subdirs ('examples')
|
2011-03-05 10:51:26 -08:00
|
|
|
|
2011-07-08 06:04:37 -04:00
|
|
|
bld.ns3_python_bindings ()
|
2011-03-22 15:41:38 +00:00
|
|
|
|
2011-07-08 06:04:37 -04:00
|
|
|
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')
|
2011-07-17 08:01:33 -04:00
|
|
|
conf.write_config_header ('ns3/netanim-config.h', top=True)
|
2011-03-05 10:51:26 -08:00
|
|
|
|