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
|
2014-01-15 10:12:52 -08:00
|
|
|
NETANIM_RELEASE_NAME = "netanim-3.105"
|
2012-03-30 00:27:33 -04:00
|
|
|
|
|
|
|
|
|
2011-07-08 06:04:37 -04:00
|
|
|
def build (bld) :
|
2013-12-10 09:12:38 +04:00
|
|
|
module = bld.create_ns3_module ('netanim', ['internet', 'mobility', 'wimax', 'wifi', 'csma', 'lte', 'uan', 'energy'])
|
2011-07-08 06:04:37 -04:00
|
|
|
module.includes = '.'
|
|
|
|
|
module.source = [
|
|
|
|
|
'model/animation-interface.cc',
|
|
|
|
|
'helper/animation-interface-helper.cc',
|
|
|
|
|
]
|
2012-05-19 14:56:43 -07:00
|
|
|
netanim_test = bld.create_ns3_module_test_library('netanim')
|
|
|
|
|
netanim_test.source = [
|
|
|
|
|
'test/netanim-test.cc',
|
|
|
|
|
]
|
2011-03-05 10:51:26 -08:00
|
|
|
|
2013-04-01 22:33:46 +02:00
|
|
|
headers = bld(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']) :
|
2013-04-01 22:33:46 +02:00
|
|
|
bld.recurse('examples')
|
2011-03-05 10:51:26 -08:00
|
|
|
|