src/netanim/wscript
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Thu, 08 Sep 2011 16:13:40 +0100
changeset 7487 82cd20da9650
parent 7368 eaf06b48cb5c
child 7504 72e337512e46
permissions -rw-r--r--
Upgrade to waf-1.6.7, work in progress

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

def build (bld) :
	module = bld.create_ns3_module ('netanim', ['internet', 'mobility', 'wimax', 'wifi'])
	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)