src/simulator/wscript
changeset 3648 f912b24ddf2d
parent 3560 5aa65b1ea001
child 3649 c1a2ee633ab5
--- a/src/simulator/wscript	Mon Sep 08 11:20:17 2008 +0100
+++ b/src/simulator/wscript	Mon Sep 08 12:19:46 2008 +0100
@@ -44,6 +44,9 @@
 
     conf.write_config_header('ns3/simulator-config.h')
 
+    conf.report_optional_feature("RealTime", "Real Time Simulator",
+                                 conf.env['ENABLE_THREADING'],
+                                 "threading not enabled")
 
 
 def build(bld):
@@ -59,11 +62,9 @@
         'event-impl.cc',
         'simulator.cc',
         'default-simulator-impl.cc',
-        'realtime-simulator-impl.cc',
         'timer.cc',
         'watchdog.cc',
         'synchronizer.cc',
-        'wall-clock-synchronizer.cc',
         ]
 
     headers = bld.create_obj('ns3header')
@@ -76,7 +77,6 @@
         'simulator.h',
         'simulator-impl.h',
         'default-simulator-impl.h',
-        'realtime-simulator-impl.h',
         'scheduler.h',
         'list-scheduler.h',
         'map-scheduler.h',
@@ -86,7 +86,6 @@
         'timer-impl.h',
         'watchdog.h',
         'synchronizer.h',
-        'wall-clock-synchronizer.h',
         ]
 
     env = bld.env_of_name('default')
@@ -107,3 +106,13 @@
             'cairo-wideint-private.h',
             ])
 
+    if env['ENABLE_THREADING']:
+        headers.source.extend([
+                'realtime-simulator-impl.h',
+                'wall-clock-synchronizer.h',
+                ])
+        sim.source.extend([
+                'realtime-simulator-impl.cc',
+                'wall-clock-synchronizer.cc',
+                ])
+