Print modules built list at end of waf build
authorMitch Watrous <watrous@u.washington.edu>
Mon, 18 Apr 2011 10:50:55 -0700
changeset 7066 948694386867
parent 7065 1805d2271ca2
child 7067 f3e0bc6843ef
Print modules built list at end of waf build
examples/matrix-topology/matrix-topology.cc
wscript
--- a/examples/matrix-topology/matrix-topology.cc	Mon Apr 18 12:10:18 2011 +0200
+++ b/examples/matrix-topology/matrix-topology.cc	Mon Apr 18 10:50:55 2011 -0700
@@ -53,6 +53,7 @@
 #include "ns3/applications-module.h"
 #include "ns3/global-route-manager.h"
 #include "ns3/mobility-module.h"
+#include "ns3/netanim-module.h"
 #include "ns3/assert.h"
 #include "ns3/ipv4-global-routing-helper.h"
 
--- a/wscript	Mon Apr 18 12:10:18 2011 +0200
+++ b/wscript	Mon Apr 18 10:50:55 2011 -0700
@@ -610,13 +610,6 @@
 
         env['NS3_ENABLED_MODULES'] = modules
 
-        # Print the enabled modules without the "ns3-" in their name.
-        modules_without_prefix =[mod[len('ns3-'):] for mod in modules]
-        print
-        print 'Modules to build:'
-        print ', '.join(modules_without_prefix)
-        print
-
         # If tests are being built, then set the list of the enabled
         # module test libraries.
         if env['ENABLE_TESTS']:
@@ -715,6 +708,13 @@
         return
     env = bld.env
 
+    # Print the enabled modules without the "ns3-" in their name.
+    modules_without_prefix =[mod[len('ns3-'):] for mod in env['NS3_ENABLED_MODULES']]
+    print
+    print 'Modules built:'
+    print ', '.join(modules_without_prefix)
+    print
+
     if Options.options.lcov_report:
         lcov_report()