|
42 |
e.define = 'HAVE_SYS_INT_TYPES_H' |
42 |
e.define = 'HAVE_SYS_INT_TYPES_H' |
43 |
e.run() |
43 |
e.run() |
44 |
|
44 |
|
|
|
45 |
e = conf.create_header_configurator() |
46 |
e.mandatory = False |
47 |
e.name = 'sched.h' |
48 |
conf.env['ENABLE_REAL_TIME_SIMULATOR'] = bool(e.run()) |
49 |
conf.report_optional_feature("RealTimeSimulator", "Real Time Simulator", |
50 |
conf.env['ENABLE_REAL_TIME_SIMULATOR'], |
51 |
"include <sched.h> not available") |
52 |
|
45 |
conf.write_config_header('ns3/simulator-config.h') |
53 |
conf.write_config_header('ns3/simulator-config.h') |
46 |
|
54 |
|
47 |
|
55 |
|
|
59 |
'event-impl.cc', |
67 |
'event-impl.cc', |
60 |
'simulator.cc', |
68 |
'simulator.cc', |
61 |
'default-simulator-impl.cc', |
69 |
'default-simulator-impl.cc', |
62 |
'realtime-simulator-impl.cc', |
|
|
63 |
'timer.cc', |
70 |
'timer.cc', |
64 |
'watchdog.cc', |
71 |
'watchdog.cc', |
65 |
'synchronizer.cc', |
72 |
'synchronizer.cc', |
66 |
'wall-clock-synchronizer.cc', |
|
|
67 |
] |
73 |
] |
68 |
|
74 |
|
69 |
headers = bld.create_obj('ns3header') |
75 |
headers = bld.create_obj('ns3header') |
|
76 |
'simulator.h', |
82 |
'simulator.h', |
77 |
'simulator-impl.h', |
83 |
'simulator-impl.h', |
78 |
'default-simulator-impl.h', |
84 |
'default-simulator-impl.h', |
79 |
'realtime-simulator-impl.h', |
|
|
80 |
'scheduler.h', |
85 |
'scheduler.h', |
81 |
'list-scheduler.h', |
86 |
'list-scheduler.h', |
82 |
'map-scheduler.h', |
87 |
'map-scheduler.h', |
|
86 |
'timer-impl.h', |
91 |
'timer-impl.h', |
87 |
'watchdog.h', |
92 |
'watchdog.h', |
88 |
'synchronizer.h', |
93 |
'synchronizer.h', |
89 |
'wall-clock-synchronizer.h', |
|
|
90 |
] |
94 |
] |
91 |
|
95 |
|
92 |
env = bld.env_of_name('default') |
96 |
env = bld.env_of_name('default') |
|
107 |
'cairo-wideint-private.h', |
111 |
'cairo-wideint-private.h', |
108 |
]) |
112 |
]) |
109 |
|
113 |
|
|
|
114 |
if env['ENABLE_REAL_TIME_SIMULATOR']: |
115 |
sim.source.extend([ |
116 |
'realtime-simulator-impl.cc', |
117 |
'wall-clock-synchronizer.cc', |
118 |
]) |
119 |
headers.source.extend([ |
120 |
'wall-clock-synchronizer.h', |
121 |
'realtime-simulator-impl.h', |
122 |
]) |
123 |
|