src/netanim/wscript
author John Abraham <john.abraham@gatech.edu>
Fri, 30 Mar 2012 00:27:33 -0400
changeset 7805 1680d3c31444
parent 7753 385caa5866ce
child 8773 25b20434eba8
permissions -rw-r--r--
NetAnim: Required version

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

import wutils

# Required NetAnim version
NETANIM_RELEASE_NAME = "netanim-3.100"


def build (bld) :
        bld.install_files('${INCLUDEDIR}/%s%s/ns3' % (wutils.APPNAME, wutils.VERSION), '../../ns3/netanim-config.h')
	module = bld.create_ns3_module ('netanim', ['internet', 'mobility', 'wimax', 'wifi', 'csma', 'lte'])
	module.includes = '.'
	module.source = [
			  'model/animation-interface.cc',
			  'helper/animation-interface-helper.cc',
		        ]

	headers = bld.new_task_gen (features=['ns3header'])
	headers.module = 'netanim'
	headers.source = [
			  'model/animation-interface.h',
			  'helper/animation-interface-helper.h',
  			 ]

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

	bld.ns3_python_bindings ()

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/netanim-config.h', top=True)