Allow compiling the 'routing' module and example with WAF
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 17 Jul 2007 11:02:14 +0100
changeset 1097 ad89acfe22d7
parent 1096 f1fdfec22c84
child 1098 fb9d81fae2c7
Allow compiling the 'routing' module and example with WAF
examples/wscript
src/internet-node/wscript
src/routing/wscript
src/wscript
--- a/examples/wscript	Tue Jul 17 12:17:17 2007 -0700
+++ b/examples/wscript	Tue Jul 17 11:02:14 2007 +0100
@@ -10,4 +10,5 @@
         return obj
         
     obj = create_ns_prog('simple-p2p', 'simple-p2p.cc', deps=['p2p', 'internet-node'])
+    obj = create_ns_prog('simple-static-routing', 'simple-static-routing.cc', deps=['p2p', 'internet-node', 'routing'])
 
--- a/src/internet-node/wscript	Tue Jul 17 12:17:17 2007 -0700
+++ b/src/internet-node/wscript	Tue Jul 17 11:02:14 2007 +0100
@@ -9,7 +9,7 @@
     obj = bld.create_obj('cpp', 'shlib')
     obj.name = 'ns3-internet-node'
     obj.target = obj.name
-    obj.uselib_local = ['ns3-node', 'ns3-applications']
+    obj.uselib_local = ['ns3-node', 'ns3-applications', 'ns3-routing']
     obj.source = [
         'internet-node.cc',
         'l3-demux.cc',
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/routing/wscript	Tue Jul 17 11:02:14 2007 +0100
@@ -0,0 +1,25 @@
+## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+
+def configure(conf):
+    conf.env.append_value('NS3_MODULES', 'ns3-routing')
+
+
+def build(bld):
+    module = bld.create_obj('cpp', 'shlib')
+    module.name = 'ns3-routing'
+    module.target = module.name
+    module.uselib_local = ['ns3-node']
+    module.source = [
+        'routing-environment.cc',
+        'static-router.cc',
+        'static-route-manager.cc',
+        'candidate-queue.cc',
+        ]
+
+    headers = bld.create_obj('ns3header')
+    headers.source = [
+        'routing-environment.h',
+        'static-router.h',
+        'static-route-manager.h',
+        'candidate-queue.h',
+        ]
--- a/src/wscript	Tue Jul 17 12:17:17 2007 -0700
+++ b/src/wscript	Tue Jul 17 11:02:14 2007 +0100
@@ -17,6 +17,7 @@
     'internet-node',
     'devices/p2p',
     'applications',
+    'routing',
     ]