Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change cmake variable HAVE_RUBY_H to HAVE_RUBY for homogeneity with other variables
[simgrid.git] / buildtools / Cmake / src / CMakeDefinePackages.txt
1 ### define source packages
2
3 set(EXTRA_DIST 
4         ${PROJECT_DIRECTORY}/src/portable.h
5         ${PROJECT_DIRECTORY}/src/xbt/mallocator_private.h
6         ${PROJECT_DIRECTORY}/src/xbt/dict_private.h
7         ${PROJECT_DIRECTORY}/src/xbt/heap_private.h
8         ${PROJECT_DIRECTORY}/src/xbt/fifo_private.h
9         ${PROJECT_DIRECTORY}/src/xbt/graph_private.h
10         ${PROJECT_DIRECTORY}/src/xbt/graphxml_parse.c
11         ${PROJECT_DIRECTORY}/src/xbt/graphxml.l
12         ${PROJECT_DIRECTORY}/src/xbt/graphxml.c
13         ${PROJECT_DIRECTORY}/src/xbt/graphxml.dtd
14         ${PROJECT_DIRECTORY}/src/xbt/log_private.h
15         ${PROJECT_DIRECTORY}/src/xbt/ex_interface.h
16         ${PROJECT_DIRECTORY}/src/xbt/backtrace_linux.c
17         ${PROJECT_DIRECTORY}/src/xbt/backtrace_windows.c
18         ${PROJECT_DIRECTORY}/src/xbt/backtrace_dummy.c
19         ${PROJECT_DIRECTORY}/src/surf/maxmin_private.h
20         ${PROJECT_DIRECTORY}/src/surf/trace_mgr_private.h
21         ${PROJECT_DIRECTORY}/src/surf/surf_private.h
22         ${PROJECT_DIRECTORY}/src/surf/surfxml_parse.c
23         ${PROJECT_DIRECTORY}/src/surf/simgrid_dtd.l
24         ${PROJECT_DIRECTORY}/src/surf/simgrid_dtd.c
25         ${PROJECT_DIRECTORY}/src/surf/simgrid.dtd
26         ${PROJECT_DIRECTORY}/src/surf/network_private.h
27         ${PROJECT_DIRECTORY}/src/surf/network_gtnets_private.h
28         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_interface.h
29         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_simulator.h
30         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_topology.h
31         ${PROJECT_DIRECTORY}/src/surf/cpu_ti_private.h
32         ${PROJECT_DIRECTORY}/src/include/surf/surf_resource.h
33         ${PROJECT_DIRECTORY}/src/include/surf/datatypes.h
34         ${PROJECT_DIRECTORY}/src/include/surf/maxmin.h
35         ${PROJECT_DIRECTORY}/src/include/surf/trace_mgr.h
36         ${PROJECT_DIRECTORY}/src/include/surf/surf.h
37         ${PROJECT_DIRECTORY}/src/include/surf/surfxml_parse_private.h
38         ${PROJECT_DIRECTORY}/src/include/surf/random_mgr.h
39         ${PROJECT_DIRECTORY}/src/include/surf/surf_resource_lmm.h
40         ${PROJECT_DIRECTORY}/src/include/xbt/wine_dbghelp.h
41         ${PROJECT_DIRECTORY}/src/include/xbt/xbt_os_time.h
42         ${PROJECT_DIRECTORY}/src/include/xbt/xbt_os_thread.h
43         ${PROJECT_DIRECTORY}/src/msg/private.h
44         ${PROJECT_DIRECTORY}/src/msg/mailbox.h
45         ${PROJECT_DIRECTORY}/src/simdag/private.h
46         ${PROJECT_DIRECTORY}/src/simdag/dax.dtd
47         ${PROJECT_DIRECTORY}/src/simdag/dax_dtd.l
48         ${PROJECT_DIRECTORY}/src/simdag/dax_dtd.h
49         ${PROJECT_DIRECTORY}/src/simdag/dax_dtd.c
50         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.yy.l
51         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.yy.h
52         ${PROJECT_DIRECTORY}/src/gras/Virtu/virtu_rl.h
53         ${PROJECT_DIRECTORY}/src/gras/Virtu/virtu_sg.h
54         ${PROJECT_DIRECTORY}/src/gras/Virtu/virtu_interface.h
55         ${PROJECT_DIRECTORY}/src/gras/Virtu/virtu_private.h
56         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_interface.h
57         ${PROJECT_DIRECTORY}/src/amok/Bandwidth/bandwidth_private.h
58         ${PROJECT_DIRECTORY}/src/amok/amok_modinter.h
59         ${PROJECT_DIRECTORY}/src/include/simix/simix.h
60         ${PROJECT_DIRECTORY}/src/include/simix/datatypes.h
61         ${PROJECT_DIRECTORY}/src/include/simix/context.h
62         ${PROJECT_DIRECTORY}/src/simix/private.h
63         ${PROJECT_DIRECTORY}/src/simix/smx_context_private.h
64         ${PROJECT_DIRECTORY}/src/simix/smx_context_java.h
65         ${PROJECT_DIRECTORY}/src/smpi/private.h
66         ${PROJECT_DIRECTORY}/src/smpi/smpi_coll_private.h
67         ${PROJECT_DIRECTORY}/src/smpi/smpi_mpi_dt_private.h
68         ${PROJECT_DIRECTORY}/src/smpi/README
69         ${PROJECT_DIRECTORY}/src/mk_supernovae.sh
70 )
71
72 set(XBT_RL_SRC 
73         ${PROJECT_DIRECTORY}/src/xbt/xbt_rl_synchro.c
74         ${PROJECT_DIRECTORY}/src/xbt/xbt_rl_time.c
75 )
76
77 set(XBT_SG_SRC 
78         ${PROJECT_DIRECTORY}/src/xbt/xbt_sg_synchro.c
79         ${PROJECT_DIRECTORY}/src/xbt/xbt_sg_time.c
80 )     
81
82 set(SMPI_SRC
83         ${PROJECT_DIRECTORY}/src/smpi/smpi_base.c
84         ${PROJECT_DIRECTORY}/src/smpi/smpi_bench.c
85         ${PROJECT_DIRECTORY}/src/smpi/smpi_global.c
86         ${PROJECT_DIRECTORY}/src/smpi/smpi_mpi.c
87         ${PROJECT_DIRECTORY}/src/smpi/smpi_comm.c
88         ${PROJECT_DIRECTORY}/src/smpi/smpi_group.c
89         ${PROJECT_DIRECTORY}/src/smpi/smpi_util.c
90         ${PROJECT_DIRECTORY}/src/smpi/smpi_coll.c
91         ${PROJECT_DIRECTORY}/src/smpi/smpi_mpi_dt.c
92 )
93
94 set(JMSG_C_SRC
95         ${PROJECT_DIRECTORY}/src/simix/smx_context_java.c
96         ${PROJECT_DIRECTORY}/src/java/jxbt_utilities.c
97         ${PROJECT_DIRECTORY}/src/java/jxbt_utilities.h
98         ${PROJECT_DIRECTORY}/src/java/jmsg.c 
99         ${PROJECT_DIRECTORY}/src/java/jmsg.h
100         ${PROJECT_DIRECTORY}/src/java/jmsg_host.c
101         ${PROJECT_DIRECTORY}/src/java/jmsg_host.h
102         ${PROJECT_DIRECTORY}/src/java/jmsg_process.c
103         ${PROJECT_DIRECTORY}/src/java/jmsg_process.h
104         ${PROJECT_DIRECTORY}/src/java/jmsg_task.c
105         ${PROJECT_DIRECTORY}/src/java/jmsg_task.h
106         ${PROJECT_DIRECTORY}/src/java/jmsg_application_handler.c
107         ${PROJECT_DIRECTORY}/src/java/jmsg_application_handler.h
108 )
109
110 set(JMSG_JAVA_SRC
111         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/ApplicationHandler.java
112         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Host.java
113         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/HostFailureException.java     
114         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/HostNotFoundException.java    
115         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/JniException.java
116         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Msg.java
117         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/MsgException.java
118         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/MsgNative.java
119         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/NativeException.java
120         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Process.java
121         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/ProcessNotFoundException.java
122         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Sem.java
123         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Task.java
124         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/TaskCancelledException.java
125         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/TimeoutException.java
126         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/TransferFailureException.java 
127 )
128
129 set(GRAS_RL_SRC
130         ${PROJECT_DIRECTORY}/src/gras/rl_stubs.c
131         ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
132         ${PROJECT_DIRECTORY}/src/gras/Transport/rl_transport.c
133         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_plugin_file.c
134         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_plugin_tcp.c
135         ${PROJECT_DIRECTORY}/src/gras/Virtu/rl_emul.c
136         ${PROJECT_DIRECTORY}/src/gras/Virtu/rl_process.c
137         ${PROJECT_DIRECTORY}/src/gras/Virtu/rl_dns.c
138         ${PROJECT_DIRECTORY}/src/gras/Msg/rl_msg.c
139         ${XBT_RL_SRC}
140 )
141
142 set(XBT_SRC 
143         ${PROJECT_DIRECTORY}/src/xbt/snprintf.c
144         ${PROJECT_DIRECTORY}/src/xbt/xbt_str.c
145         ${PROJECT_DIRECTORY}/src/xbt/xbt_strbuff.c
146         ${PROJECT_DIRECTORY}/src/xbt/xbt_sha.c
147         ${PROJECT_DIRECTORY}/src/xbt/ex.c
148         ${PROJECT_DIRECTORY}/src/xbt_modinter.h
149         ${PROJECT_DIRECTORY}/src/gras_modinter.h
150         ${PROJECT_DIRECTORY}/src/xbt/xbt_virtu.c
151         ${PROJECT_DIRECTORY}/src/xbt/xbt_os_time.c
152         ${PROJECT_DIRECTORY}/src/xbt/asserts.c
153         ${PROJECT_DIRECTORY}/src/xbt/log.c
154         ${PROJECT_DIRECTORY}/src/xbt/xbt_log_appender_file.c
155         ${PROJECT_DIRECTORY}/src/xbt/xbt_log_layout_simple.c
156         ${PROJECT_DIRECTORY}/src/xbt/xbt_log_layout_format.c
157         ${PROJECT_DIRECTORY}/src/xbt/mallocator.c
158         ${PROJECT_DIRECTORY}/src/xbt/dynar.c
159         ${PROJECT_DIRECTORY}/src/xbt/dict.c
160         ${PROJECT_DIRECTORY}/src/xbt/dict_elm.c
161         ${PROJECT_DIRECTORY}/src/xbt/dict_cursor.c
162         ${PROJECT_DIRECTORY}/src/xbt/dict_multi.c
163         ${PROJECT_DIRECTORY}/src/xbt/heap.c
164         ${PROJECT_DIRECTORY}/src/xbt/fifo.c
165         ${PROJECT_DIRECTORY}/src/xbt/swag.c
166         ${PROJECT_DIRECTORY}/src/xbt/graph.c
167         ${PROJECT_DIRECTORY}/src/xbt/set.c
168         ${PROJECT_DIRECTORY}/src/xbt/xbt_matrix.c
169         ${PROJECT_DIRECTORY}/src/xbt/xbt_queue.c
170         ${PROJECT_DIRECTORY}/src/xbt/xbt_synchro.c
171         ${PROJECT_DIRECTORY}/src/xbt/xbt_peer.c
172         ${PROJECT_DIRECTORY}/src/xbt/xbt_main.c
173         ${PROJECT_DIRECTORY}/src/xbt/config.c
174         ${PROJECT_DIRECTORY}/src/xbt/cunit.c
175         ${PROJECT_DIRECTORY}/src/xbt/graphxml_parse.c
176 )
177
178 set(GTNETS_SRC 
179         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_simulator.cc
180         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_topology.cc
181         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_interface.cc
182         ${PROJECT_DIRECTORY}/src/surf/network_gtnets.c
183 )
184
185 set(SURF_SRC 
186         ${PROJECT_DIRECTORY}/src/surf/surf_model.c
187         ${PROJECT_DIRECTORY}/src/surf/surf_action.c
188         ${PROJECT_DIRECTORY}/src/surf/surf_routing.c
189         ${PROJECT_DIRECTORY}/src/surf/surf_config.c
190         ${PROJECT_DIRECTORY}/src/surf/maxmin.c
191         ${PROJECT_DIRECTORY}/src/surf/fair_bottleneck.c
192         ${PROJECT_DIRECTORY}/src/surf/lagrange.c
193         ${PROJECT_DIRECTORY}/src/surf/trace_mgr.c
194         ${PROJECT_DIRECTORY}/src/surf/random_mgr.c
195         ${PROJECT_DIRECTORY}/src/surf/surf.c
196         ${PROJECT_DIRECTORY}/src/surf/surfxml_parse.c
197         ${PROJECT_DIRECTORY}/src/surf/cpu.c
198         ${PROJECT_DIRECTORY}/src/surf/network.c
199         ${PROJECT_DIRECTORY}/src/surf/network_constant.c
200         ${PROJECT_DIRECTORY}/src/surf/workstation.c
201         ${PROJECT_DIRECTORY}/src/surf/surf_model_timer.c
202         ${PROJECT_DIRECTORY}/src/surf/workstation_ptask_L07.c
203         ${PROJECT_DIRECTORY}/src/surf/cpu_ti.c
204         ${PROJECT_DIRECTORY}/src/surf/cpu_im.c
205         ${PROJECT_DIRECTORY}/src/xbt/xbt_sg_stubs.c
206 )
207
208 set(SIMIX_SRC 
209         ${PROJECT_DIRECTORY}/src/simix/smx_global.c
210         ${PROJECT_DIRECTORY}/src/simix/smx_deployment.c
211         ${PROJECT_DIRECTORY}/src/simix/smx_environment.c
212         ${PROJECT_DIRECTORY}/src/simix/smx_host.c
213         ${PROJECT_DIRECTORY}/src/simix/smx_process.c
214         ${PROJECT_DIRECTORY}/src/simix/smx_context.c
215         ${PROJECT_DIRECTORY}/src/simix/smx_action.c
216         ${PROJECT_DIRECTORY}/src/simix/smx_synchro.c
217         ${PROJECT_DIRECTORY}/src/simix/smx_network.c
218         ${PROJECT_DIRECTORY}/src/simix/smx_context_base.c
219 )
220
221 set(MSG_SRC
222         ${PROJECT_DIRECTORY}/src/msg/msg_config.c
223         ${PROJECT_DIRECTORY}/src/msg/task.c
224         ${PROJECT_DIRECTORY}/src/msg/host.c
225         ${PROJECT_DIRECTORY}/src/msg/m_process.c
226         ${PROJECT_DIRECTORY}/src/msg/gos.c
227         ${PROJECT_DIRECTORY}/src/msg/global.c
228         ${PROJECT_DIRECTORY}/src/msg/environment.c
229         ${PROJECT_DIRECTORY}/src/msg/deployment.c
230         ${PROJECT_DIRECTORY}/src/msg/msg_mailbox.c
231         ${PROJECT_DIRECTORY}/src/msg/msg_actions.c
232 )
233
234 set(SIMDAG_SRC
235         ${PROJECT_DIRECTORY}/src/simdag/sd_global.c
236         ${PROJECT_DIRECTORY}/src/simdag/sd_link.c
237         ${PROJECT_DIRECTORY}/src/simdag/sd_task.c
238         ${PROJECT_DIRECTORY}/src/simdag/sd_workstation.c
239         ${PROJECT_DIRECTORY}/src/simdag/sd_daxloader.c
240 )
241
242 set(GRAS_COMMON_SRC
243         ${PROJECT_DIRECTORY}/src/gras/gras.c
244         ${PROJECT_DIRECTORY}/src/gras/Transport/transport.c
245         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_private.h
246         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_mod.c
247         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_types.c
248         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_exchange.c
249         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_listener.c
250         ${PROJECT_DIRECTORY}/src/gras/Msg/rpc.c 
251         ${PROJECT_DIRECTORY}/src/gras/Msg/timer.c
252         ${PROJECT_DIRECTORY}/src/gras/Msg/msg_interface.h
253         ${PROJECT_DIRECTORY}/src/gras/Msg/msg_private.h
254         ${PROJECT_DIRECTORY}/src/gras/Virtu/process.c
255         ${PROJECT_DIRECTORY}/src/gras/Virtu/gras_module.c
256         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_create.c
257         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_convert.c
258         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_exchange.c
259         ${PROJECT_DIRECTORY}/src/gras/DataDesc/cbps.c
260         ${PROJECT_DIRECTORY}/src/gras/DataDesc/datadesc.c
261         ${PROJECT_DIRECTORY}/src/gras/DataDesc/datadesc_interface.h
262         ${PROJECT_DIRECTORY}/src/gras/DataDesc/datadesc_private.h
263         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.c
264         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.yy.c
265 )
266
267 set(GRAS_SG_SRC
268         ${PROJECT_DIRECTORY}/src/gras/Transport/sg_transport.c
269         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_plugin_sg.c
270         ${PROJECT_DIRECTORY}/src/gras/Virtu/sg_emul.c
271         ${PROJECT_DIRECTORY}/src/gras/Virtu/sg_process.c
272         ${PROJECT_DIRECTORY}/src/gras/Virtu/sg_dns.c
273         ${PROJECT_DIRECTORY}/src/gras/Msg/sg_msg.c
274         ${XBT_SG_SRC}
275 )
276
277 set(AMOK_SRC
278         ${PROJECT_DIRECTORY}/src/amok/amok_base.c
279         ${PROJECT_DIRECTORY}/src/amok/Bandwidth/bandwidth.c
280         ${PROJECT_DIRECTORY}/src/amok/Bandwidth/saturate.c
281         ${PROJECT_DIRECTORY}/src/amok/PeerManagement/peermanagement.c
282 )
283
284 set(LUA_SRC
285         ${PROJECT_DIRECTORY}/src/simix/smx_context_lua.c
286         #${PROJECT_DIRECTORY}/src/bindings/lua/Msglua.c
287         ${PROJECT_DIRECTORY}/src/bindings/lua/simgrid_lua.c
288 )
289
290 set(TRACING_SRC
291         ${PROJECT_DIRECTORY}/src/instr/interface.c
292         ${PROJECT_DIRECTORY}/src/instr/general.c
293         ${PROJECT_DIRECTORY}/src/instr/paje.c
294         ${PROJECT_DIRECTORY}/src/instr/msg_task_instr.c
295         ${PROJECT_DIRECTORY}/src/instr/msg_process_instr.c
296         ${PROJECT_DIRECTORY}/src/instr/smx_instr.c
297         ${PROJECT_DIRECTORY}/src/instr/surf_instr.c
298         ${PROJECT_DIRECTORY}/src/instr/variables_instr.c
299         ${PROJECT_DIRECTORY}/src/instr/private.h
300 )
301
302 set(RUBY_SRC
303 ${PROJECT_DIRECTORY}/src/simix/smx_context_ruby.c
304 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_process.c
305 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_host.c
306 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_task.c
307 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_application_handler.c
308 )
309
310 set(install_libs
311 ${PROJECT_DIRECTORY}/src/.libs/libsimgrid.*
312 ${PROJECT_DIRECTORY}/src/.libs/libsimgrid_static.*
313 ${PROJECT_DIRECTORY}/src/.libs/libgras.*
314 ${PROJECT_DIRECTORY}/src/.libs/libsmpi.*
315 )
316 if(HAVE_RUBY)
317         set(install_libs
318         ${install_libs}
319         ${PROJECT_DIRECTORY}/src/.libs/libsimgrid_ruby.*
320         )
321 endif(HAVE_RUBY)
322
323 set(install_HEADERS
324 ./include/gras.h 
325 ./include/xbt.h
326 ./include/simgrid_config.h
327 ./include/xbt/misc.h
328 ./include/xbt/sysdep.h
329 ./include/xbt/virtu.h
330 ./include/xbt/str.h
331 ./include/xbt/strbuff.h
332 ./include/xbt/hash.h
333 ./include/xbt/function_types.h
334 ./include/xbt/asserts.h 
335 ./include/xbt/ex.h
336 ./include/xbt/log.h
337 ./include/xbt/module.h
338 ./include/xbt/mallocator.h
339 ./include/xbt/dynar.h
340 ./include/xbt/dict.h
341 ./include/xbt/set.h
342 ./include/xbt/heap.h
343 ./include/xbt/graph.h
344 ./include/xbt/fifo.h
345 ./include/xbt/swag.h
346 ./include/xbt/matrix.h
347 ./include/xbt/peer.h
348 ./include/xbt/config.h
349 ./include/xbt/cunit.h
350 ./include/xbt/graphxml_parse.h
351 ./include/xbt/graphxml.h
352 ./include/xbt/time.h
353 ./include/xbt/synchro.h
354 ./include/xbt/synchro_core.h
355 ./include/xbt/queue.h
356 ./include/msg/msg.h
357 ./include/msg/datatypes.h
358 ./include/simdag/simdag.h
359 ./include/simdag/datatypes.h
360 ./include/smpi/smpi.h
361 ./include/smpi/mpi.h
362 ./include/surf/surfxml_parse.h
363 ./include/surf/simgrid_dtd.h
364 ./include/gras/datadesc.h
365 ./include/gras/transport.h
366 ./include/gras/virtu.h
367 ./include/gras/emul.h
368 ./include/gras/process.h
369 ./include/gras/module.h
370 ./include/gras/messages.h
371 ./include/gras/timer.h
372 ./include/amok/peermanagement.h
373 ./include/amok/bandwidth.h
374 ./include/instr/instr.h
375 ./include/instr/tracing_config.h
376 )
377
378 set(TEST_UNITS
379 cunit_unit.c
380 ex_unit.c
381 dynar_unit.c
382 dict_unit.c
383 set_unit.c
384 swag_unit.c
385 xbt_str_unit.c
386 xbt_strbuff_unit.c
387 xbt_sha_unit.c
388 config_unit.c
389 xbt_synchro_unit.c
390 )
391
392 set(TEST_CFILES
393 ${PROJECT_DIRECTORY}/src/xbt/cunit.c
394 ${PROJECT_DIRECTORY}/src/xbt/ex.c
395 ${PROJECT_DIRECTORY}/src/xbt/dynar.c
396 ${PROJECT_DIRECTORY}/src/xbt/dict.c
397 ${PROJECT_DIRECTORY}/src/xbt/set.c
398 ${PROJECT_DIRECTORY}/src/xbt/swag.c
399 ${PROJECT_DIRECTORY}/src/xbt/xbt_str.c
400 ${PROJECT_DIRECTORY}/src/xbt/xbt_strbuff.c
401 ${PROJECT_DIRECTORY}/src/xbt/xbt_sha.c
402 ${PROJECT_DIRECTORY}/src/xbt/config.c
403 ${PROJECT_DIRECTORY}/src/xbt/xbt_synchro.c
404 )
405
406 #Here must have all files which permit to generate source files
407 set(SRC_TO_LOOK
408 ${PROJECT_DIRECTORY}/src/surf/simgrid.dtd
409 ${PROJECT_DIRECTORY}/src/xbt/graphxml.dtd
410 ${PROJECT_DIRECTORY}/src/simdag/dax.dtd
411 ${PROJECT_DIRECTORY}/src/simgrid_units_main.c
412 ${PROJECT_DIRECTORY}/examples/gras/ping/ping.xml
413 ${PROJECT_DIRECTORY}/examples/gras/rpc/rpc.xml
414 ${PROJECT_DIRECTORY}/examples/gras/spawn/spawn.xml
415 ${PROJECT_DIRECTORY}/examples/gras/timer/timer.xml
416 ${PROJECT_DIRECTORY}/examples/gras/chrono/chrono.xml
417 ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/simple_token.xml
418 ${PROJECT_DIRECTORY}/examples/gras/mmrpc/mmrpc.xml
419 ${PROJECT_DIRECTORY}/examples/gras/all2all/all2all.xml
420 ${PROJECT_DIRECTORY}/examples/gras/pmm/pmm.xml
421 ${PROJECT_DIRECTORY}/examples/gras/synchro/synchro.xml
422 ${PROJECT_DIRECTORY}/examples/gras/properties/properties.xml
423 ${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/msg_handle.xml
424 ${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/empty_main.xml
425 ${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/small_sleep.xml
426 ${PROJECT_DIRECTORY}/examples/amok/bandwidth/bandwidth.xml
427 ${PROJECT_DIRECTORY}/examples/amok/saturate/saturate.xml
428 ${TEST_CFILES}
429 )
430
431 ### depend of some variables setted upper
432 # -->CONTEXT_THREADS
433 if(${CONTEXT_THREADS})
434         set(SURF_SRC
435                 ${SURF_SRC}
436                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
437                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
438         )
439         set(EXTRA_DIST
440                 ${EXTRA_DIST}
441                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
442         )
443 else(${CONTEXT_THREADS})
444         set(SURF_SRC
445                 ${SURF_SRC}
446                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
447         )
448         set(EXTRA_DIST
449                 ${EXTRA_DIST}
450                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
451                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
452         )
453 endif(${CONTEXT_THREADS})
454
455 # -->HAVE_GTNETS
456 if(HAVE_GTNETS)
457         set(GTNETS_USED 
458                 ${GTNETS_SRC}
459         )
460 else(HAVE_GTNETS)
461         set(GTNETS_USED "")
462         set(EXTRA_DIST
463                 ${EXTRA_DIST}
464                 ${GTNETS_SRC}
465         )
466 endif(HAVE_GTNETS)
467
468 set(EXTRA_DIST
469         ${EXTRA_DIST}
470         ${JMSG_JAVA_SRC}
471 )
472
473 ### Simgrid Lib sources
474 set(simgrid_sources
475         ${XBT_SRC}
476         ${SURF_SRC}
477         ${GTNETS_USED}
478         ${SIMIX_SRC}
479         ${MSG_SRC}
480         ${TRACING_SRC}
481         ${SIMDAG_SRC}
482         ${GRAS_COMMON_SRC}
483         ${GRAS_SG_SRC}
484         ${AMOK_SRC}
485 )
486
487 ### Gras Lib sources
488 set(gras_sources
489         ${XBT_SRC}
490         ${GRAS_COMMON_SRC}
491         ${GRAS_RL_SRC}
492         ${AMOK_SRC}
493 )
494
495 if(${HAVE_LUA})
496         set(simgrid_sources
497                 ${simgrid_sources}
498                 ${LUA_SRC}
499         )
500 elseif(${HAVE_LUA})
501         set(EXTRA_DIST
502                 ${EXTRA_DIST}
503                 ${LUA_SRC}
504         )
505 endif(${HAVE_LUA})
506
507 if(${HAVE_JAVA})
508         set(simgrid_sources
509                 ${simgrid_sources}
510                 ${JMSG_C_SRC} # add the binding support to the library
511         )
512 else(${HAVE_JAVA})
513         set(EXTRA_DIST
514                 ${EXTRA_DIST}
515                 ${JMSG_C_SRC}
516                 ${MSG_SRC}
517         )
518 endif(${HAVE_JAVA})
519
520 if(${HAVE_RUBY})
521         set(simgrid_sources
522                 ${simgrid_sources}
523                 ${RUBY_SRC}
524         )
525 else(${HAVE_RUBY})
526         set(EXTRA_DIST
527                 ${EXTRA_DIST}
528                 ${RUBY_SRC}
529         )
530 endif(${HAVE_RUBY})
531
532 file(GLOB_RECURSE add_src_files
533 "${PROJECT_DIRECTORY}/examples/*.c"
534 "${PROJECT_DIRECTORY}/teshsuite/*.c"
535 "${PROJECT_DIRECTORY}/testsuite/*.c"
536 "${PROJECT_DIRECTORY}/tools/*.c"
537 "${PROJECT_DIRECTORY}/examples/*.cxx"
538 "${PROJECT_DIRECTORY}/teshsuite/*.cxx"
539 "${PROJECT_DIRECTORY}/testsuite/*.cxx"
540 "${PROJECT_DIRECTORY}/tools/*.cxx"
541 "${PROJECT_DIRECTORY}/examples/*CMakeLists.txt"
542 "${PROJECT_DIRECTORY}/teshsuite/*CMakeLists.txt"
543 "${PROJECT_DIRECTORY}/testsuite/*CMakeLists.txt"
544 "${PROJECT_DIRECTORY}/tools/*CMakeLists.txt"
545 "${PROJECT_DIRECTORY}/src/*CMakeLists.txt"
546 "${PROJECT_DIRECTORY}/examples/*.java"
547 )
548 #message("\n\nadd_src_files:\n${add_src_files}")
549
550 file(GLOB_RECURSE include_files
551 "${PROJECT_DIRECTORY}/include/*.h"
552 "${PROJECT_DIRECTORY}/teshsuite/*.h"
553 "${PROJECT_DIRECTORY}/testsuite/*.h"
554 "${PROJECT_DIRECTORY}/tools/*.h"
555 "${PROJECT_DIRECTORY}/examples/*.h"
556 "${PROJECT_DIRECTORY}/src/*.h.in"
557 "${PROJECT_DIRECTORY}/include/*.h.in"
558 )
559 #message("\n\ninclude:\n${include_files}")
560
561 file(GLOB_RECURSE xml_files
562 "${PROJECT_DIRECTORY}/examples/*.xml"
563 "${PROJECT_DIRECTORY}/include/*.xml"
564 "${PROJECT_DIRECTORY}/src/*.xml"
565 "${PROJECT_DIRECTORY}/teshsuite/*.xml"
566 "${PROJECT_DIRECTORY}/testsuite/*.xml"
567 "${PROJECT_DIRECTORY}/tools/*.xml"
568 )
569 #message("\n\nxml:\n${xml_files}")
570
571 file(GLOB_RECURSE tesh_files
572 "${PROJECT_DIRECTORY}/examples/*.tesh"
573 "${PROJECT_DIRECTORY}/include/*.tesh"
574 "${PROJECT_DIRECTORY}/src/*.tesh"
575 "${PROJECT_DIRECTORY}/teshsuite/*.tesh"
576 "${PROJECT_DIRECTORY}/testsuite/*.tesh"
577 "${PROJECT_DIRECTORY}/tools/*.tesh"
578 )
579 #message("\n\ntesh:\n${tesh_files}")
580
581 file(GLOB_RECURSE txt_files
582 "${PROJECT_DIRECTORY}/testsuite/surf/trace*.txt"
583 "${PROJECT_DIRECTORY}/testsuite/simdag/availability_tremblay.txt"
584 "${PROJECT_DIRECTORY}/examples/smpi/hostfile"
585 "${PROJECT_DIRECTORY}/examples/msg/*.trace"
586 "${PROJECT_DIRECTORY}/examples/msg/migration/migration.deploy"
587 "${PROJECT_DIRECTORY}/examples/java/runtest"
588 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little32_4"
589 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little64"
590 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8"
591 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8_4"
592 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_2"
593 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/mk_datadesc_structs.pl"
594 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_rl"
595 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_32"
596 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_64"
597 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_rl"
598 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_sg"
599 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_32"
600 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_64"
601 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.fail"
602 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.trace"
603 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.bw"
604 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.fail"
605 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.lat"
606 "${PROJECT_DIRECTORY}/examples/gras/ping/test_rl"
607 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_rl"
608 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_rl"
609 "${PROJECT_DIRECTORY}/examples/gras/timer/test_rl"
610 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_rl"
611 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_rl"
612 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_rl"
613 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_rl"
614 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_rl"
615 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_rl"
616 "${PROJECT_DIRECTORY}/examples/gras/properties/test_rl"
617 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_32"
618 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_32"
619 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_32"
620 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_32"
621 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_32"
622 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_32"
623 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_32"
624 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_32"
625 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_32"
626 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_32"
627 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_64"
628 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_64"
629 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_64"
630 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_64"
631 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_64"
632 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_64"
633 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_64"
634 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_64"
635 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_64"
636 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_64"
637 "${PROJECT_DIRECTORY}/examples/gras/properties/test_sg"
638 "${PROJECT_DIRECTORY}/examples/java/basic/BasicTest"
639 "${PROJECT_DIRECTORY}/examples/java/ping_pong/PingPongTest"
640 "${PROJECT_DIRECTORY}/examples/java/comm_time/CommTimeTest"
641 "${PROJECT_DIRECTORY}/examples/java/suspend/SuspendTest"
642 )
643
644 set(to_svg      
645         ${XBT_RL_SRC}
646         ${EXTRA_DIST}
647         ${SMPI_SRC}
648         ${JMSG_C_SRC}
649         ${JMSG_JAVA_SRC}
650         ${GRAS_RL_SRC}
651         ${XBT_SRC}
652         ${GTNETS_SRC}
653         ${SURF_SRC}
654         ${SIMIX_SRC}
655         ${TRACING_SRC}
656         ${MSG_SRC}
657         ${SIMDAG_SRC}
658         ${GRAS_COMMON_SRC}
659         ${GRAS_SG_SRC}
660         ${AMOK_SRC}
661         ${LUA_SRC}
662         ${RUBY_SRC}
663         ${add_src_files}
664         ${include_files}
665         ${xml_files}
666         ${tesh_files}
667         ${txt_files}
668         ${TEST_CFILES}
669         ${PROJECT_DIRECTORY}/./CMakeLists.txt
670         ${PROJECT_DIRECTORY}/./AUTHORS
671         ${PROJECT_DIRECTORY}/./ChangeLog
672         ${PROJECT_DIRECTORY}/./COPYING
673         ${PROJECT_DIRECTORY}/./missing
674         ${PROJECT_DIRECTORY}/./NEWS
675         ${PROJECT_DIRECTORY}/./README
676         ${PROJECT_DIRECTORY}/./README.IEEE
677         ${PROJECT_DIRECTORY}/./TODO
678         ${PROJECT_DIRECTORY}/./src/smpi/smpicc.in
679         ${PROJECT_DIRECTORY}/./src/smpi/smpirun.in
680         ${PROJECT_DIRECTORY}/./src/bindings/ruby/simgrid_ruby.c
681         ${PROJECT_DIRECTORY}/./src/bindings/ruby_bindings.h
682         ${PROJECT_DIRECTORY}/./src/simix/smx_context_sysv_private.h
683         ${PROJECT_DIRECTORY}/./src/simgrid_units_main.c
684 )
685 set(script_to_install
686         ${PROJECT_DIRECTORY}/./src/smpi/smpicc
687         ${PROJECT_DIRECTORY}/./src/smpi/smpirun
688         ${PROJECT_DIRECTORY}/./tools/sg_unit_extractor.pl
689         ${PROJECT_DIRECTORY}/./tools/doxygen/index_create.pl
690         ${PROJECT_DIRECTORY}/./tools/doxygen/toc_create.pl
691         ${PROJECT_DIRECTORY}/./tools/doxygen/index_php.pl
692         ${PROJECT_DIRECTORY}/./tools/doxygen/doxygen_postprocesser.pl
693         ${PROJECT_DIRECTORY}/./tools/doxygen/bibtex2html_table_count.pl
694         ${PROJECT_DIRECTORY}/./tools/doxygen/bibtex2html_postprocessor.pl
695         ${PROJECT_DIRECTORY}/./tools/doxygen/xbt_log_extract_hierarchy.pl
696 )
697
698 #message("\n\ntesh:\n${txt_files}")