src/netanim/wscript
author John Abraham <john.abraham@gatech.edu>
Mon, 25 Jun 2012 11:52:17 -0700
changeset 8869 f43017db07ec
parent 8861 b1f287b36ff7
child 9012 e1353799d7c6
permissions -rw-r--r--
NetAnim: Remove obsolete netanim-config.h
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7360
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
     1
## -*-Mode : python; py-indent-offset : 4; indent-tabs-mode : nil; coding : utf-8; -*-
6864
7a1f57da547e Add netanim module
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
     2
7681
0873edb445e8 Bug 1327 - Version installed ns-3 files
Gustavo Carneiro / Vedran Miletić
parents: 7563
diff changeset
     3
import wutils
0873edb445e8 Bug 1327 - Version installed ns-3 files
Gustavo Carneiro / Vedran Miletić
parents: 7563
diff changeset
     4
7805
1680d3c31444 NetAnim: Required version
John Abraham <john.abraham@gatech.edu>
parents: 7753
diff changeset
     5
# Required NetAnim version
1680d3c31444 NetAnim: Required version
John Abraham <john.abraham@gatech.edu>
parents: 7753
diff changeset
     6
NETANIM_RELEASE_NAME = "netanim-3.100"
1680d3c31444 NetAnim: Required version
John Abraham <john.abraham@gatech.edu>
parents: 7753
diff changeset
     7
1680d3c31444 NetAnim: Required version
John Abraham <john.abraham@gatech.edu>
parents: 7753
diff changeset
     8
7360
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
     9
def build (bld) :
8861
b1f287b36ff7 NetAnim: Add tentative Uan Phy Gen callback
John Abraham <john.abraham@gatech.edu>
parents: 8805
diff changeset
    10
	module = bld.create_ns3_module ('netanim', ['internet', 'mobility', 'wimax', 'wifi', 'csma', 'lte', 'uan'])
7360
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    11
	module.includes = '.'
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    12
	module.source = [
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    13
			  'model/animation-interface.cc',
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    14
			  'helper/animation-interface-helper.cc',
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    15
		        ]
8773
25b20434eba8 NetAnim: add test and examples to run
John Abraham <john.abraham@gatech.edu>
parents: 7805
diff changeset
    16
    	netanim_test = bld.create_ns3_module_test_library('netanim')
25b20434eba8 NetAnim: add test and examples to run
John Abraham <john.abraham@gatech.edu>
parents: 7805
diff changeset
    17
    	netanim_test.source = [
25b20434eba8 NetAnim: add test and examples to run
John Abraham <john.abraham@gatech.edu>
parents: 7805
diff changeset
    18
        	'test/netanim-test.cc',
25b20434eba8 NetAnim: add test and examples to run
John Abraham <john.abraham@gatech.edu>
parents: 7805
diff changeset
    19
        ]
6864
7a1f57da547e Add netanim module
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    20
7487
82cd20da9650 Upgrade to waf-1.6.7, work in progress
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 7368
diff changeset
    21
	headers = bld.new_task_gen (features=['ns3header'])
7360
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    22
	headers.module = 'netanim'
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    23
	headers.source = [
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    24
			  'model/animation-interface.h',
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    25
			  'helper/animation-interface-helper.h',
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    26
  			 ]
6864
7a1f57da547e Add netanim module
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    27
7360
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    28
	if (bld.env['ENABLE_EXAMPLES']) :
5949904cf955 Bug 1172 Implement trivial XML output feature for Animation Interface
John Abraham <john.abraham@gatech.edu>
parents: 7089
diff changeset
    29
		bld.add_subdirs ('examples')
6864
7a1f57da547e Add netanim module
Tom Henderson <tomh@tomh.org>
parents:
diff changeset
    30