Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Huge import with Lucas tracing modifications.
[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_sender.c
88         #${PROJECT_DIRECTORY}/src/smpi/smpi_receiver.c
89         ${PROJECT_DIRECTORY}/src/smpi/smpi_comm.c
90         ${PROJECT_DIRECTORY}/src/smpi/smpi_group.c
91         ${PROJECT_DIRECTORY}/src/smpi/smpi_util.c
92         ${PROJECT_DIRECTORY}/src/smpi/smpi_coll.c
93         ${PROJECT_DIRECTORY}/src/smpi/smpi_mpi_dt.c
94 )
95
96 set(JMSG_C_SRC
97         ${PROJECT_DIRECTORY}/src/simix/smx_context_java.c
98         ${PROJECT_DIRECTORY}/src/java/jxbt_utilities.c
99         ${PROJECT_DIRECTORY}/src/java/jxbt_utilities.h
100         ${PROJECT_DIRECTORY}/src/java/jmsg.c 
101         ${PROJECT_DIRECTORY}/src/java/jmsg.h
102         #${PROJECT_DIRECTORY}/src/java/jmsg_channel.c
103         #${PROJECT_DIRECTORY}/src/java/jmsg_channel.h
104         ${PROJECT_DIRECTORY}/src/java/jmsg_host.c
105         ${PROJECT_DIRECTORY}/src/java/jmsg_host.h
106         ${PROJECT_DIRECTORY}/src/java/jmsg_process.c
107         ${PROJECT_DIRECTORY}/src/java/jmsg_process.h
108         ${PROJECT_DIRECTORY}/src/java/jmsg_task.c
109         ${PROJECT_DIRECTORY}/src/java/jmsg_task.h
110         ${PROJECT_DIRECTORY}/src/java/jmsg_application_handler.c
111         ${PROJECT_DIRECTORY}/src/java/jmsg_application_handler.h
112 )
113
114 set(JMSG_JAVA_SRC
115         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/ApplicationHandler.java
116         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Host.java
117         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/HostFailureException.java     
118         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/HostNotFoundException.java    
119         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/JniException.java
120         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Msg.java
121         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/MsgException.java
122         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/MsgNative.java
123         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/NativeException.java
124         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Process.java
125         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/ProcessNotFoundException.java
126         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Sem.java
127         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/Task.java
128         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/TaskCancelledException.java
129         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/TimeoutException.java
130         ${PROJECT_DIRECTORY}/src/java/simgrid/msg/TransferFailureException.java 
131 )
132
133 set(GRAS_RL_SRC
134         ${PROJECT_DIRECTORY}/src/gras/rl_stubs.c
135         ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
136         ${PROJECT_DIRECTORY}/src/gras/Transport/rl_transport.c
137         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_plugin_file.c
138         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_plugin_tcp.c
139         ${PROJECT_DIRECTORY}/src/gras/Virtu/rl_emul.c
140         ${PROJECT_DIRECTORY}/src/gras/Virtu/rl_process.c
141         ${PROJECT_DIRECTORY}/src/gras/Virtu/rl_dns.c
142         ${PROJECT_DIRECTORY}/src/gras/Msg/rl_msg.c
143         ${XBT_RL_SRC}
144 )
145
146 set(XBT_SRC 
147         ${PROJECT_DIRECTORY}/src/xbt/snprintf.c
148         ${PROJECT_DIRECTORY}/src/xbt/xbt_str.c
149         ${PROJECT_DIRECTORY}/src/xbt/xbt_strbuff.c
150         ${PROJECT_DIRECTORY}/src/xbt/xbt_sha.c
151         ${PROJECT_DIRECTORY}/src/xbt/ex.c
152         ${PROJECT_DIRECTORY}/src/xbt_modinter.h
153         ${PROJECT_DIRECTORY}/src/gras_modinter.h
154         ${PROJECT_DIRECTORY}/src/xbt/xbt_virtu.c
155         ${PROJECT_DIRECTORY}/src/xbt/xbt_os_time.c
156         ${PROJECT_DIRECTORY}/src/xbt/asserts.c
157         ${PROJECT_DIRECTORY}/src/xbt/log.c
158         ${PROJECT_DIRECTORY}/src/xbt/xbt_log_appender_file.c
159         ${PROJECT_DIRECTORY}/src/xbt/xbt_log_layout_simple.c
160         ${PROJECT_DIRECTORY}/src/xbt/xbt_log_layout_format.c
161         ${PROJECT_DIRECTORY}/src/xbt/mallocator.c
162         ${PROJECT_DIRECTORY}/src/xbt/dynar.c
163         ${PROJECT_DIRECTORY}/src/xbt/dict.c
164         ${PROJECT_DIRECTORY}/src/xbt/dict_elm.c
165         ${PROJECT_DIRECTORY}/src/xbt/dict_cursor.c
166         ${PROJECT_DIRECTORY}/src/xbt/dict_multi.c
167         ${PROJECT_DIRECTORY}/src/xbt/heap.c
168         ${PROJECT_DIRECTORY}/src/xbt/fifo.c
169         ${PROJECT_DIRECTORY}/src/xbt/swag.c
170         ${PROJECT_DIRECTORY}/src/xbt/graph.c
171         ${PROJECT_DIRECTORY}/src/xbt/set.c
172         ${PROJECT_DIRECTORY}/src/xbt/xbt_matrix.c
173         ${PROJECT_DIRECTORY}/src/xbt/xbt_queue.c
174         ${PROJECT_DIRECTORY}/src/xbt/xbt_synchro.c
175         ${PROJECT_DIRECTORY}/src/xbt/xbt_peer.c
176         ${PROJECT_DIRECTORY}/src/xbt/xbt_main.c
177         ${PROJECT_DIRECTORY}/src/xbt/config.c
178         ${PROJECT_DIRECTORY}/src/xbt/cunit.c
179         ${PROJECT_DIRECTORY}/src/xbt/graphxml_parse.c
180 )
181
182 set(GTNETS_SRC 
183         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_simulator.cc
184         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_topology.cc
185         ${PROJECT_DIRECTORY}/src/surf/gtnets/gtnets_interface.cc
186         ${PROJECT_DIRECTORY}/src/surf/network_gtnets.c
187 )
188
189 set(SURF_SRC 
190         ${PROJECT_DIRECTORY}/src/surf/surf_model.c
191         ${PROJECT_DIRECTORY}/src/surf/surf_action.c
192         ${PROJECT_DIRECTORY}/src/surf/surf_routing.c
193         ${PROJECT_DIRECTORY}/src/surf/surf_config.c
194         ${PROJECT_DIRECTORY}/src/surf/maxmin.c
195         ${PROJECT_DIRECTORY}/src/surf/fair_bottleneck.c
196         ${PROJECT_DIRECTORY}/src/surf/lagrange.c
197         ${PROJECT_DIRECTORY}/src/surf/trace_mgr.c
198         ${PROJECT_DIRECTORY}/src/surf/random_mgr.c
199         ${PROJECT_DIRECTORY}/src/surf/surf.c
200         ${PROJECT_DIRECTORY}/src/surf/surfxml_parse.c
201         ${PROJECT_DIRECTORY}/src/surf/cpu.c
202         ${PROJECT_DIRECTORY}/src/surf/network.c
203         ${PROJECT_DIRECTORY}/src/surf/network_constant.c
204         ${PROJECT_DIRECTORY}/src/surf/workstation.c
205         ${PROJECT_DIRECTORY}/src/surf/surf_model_timer.c
206         ${PROJECT_DIRECTORY}/src/surf/workstation_ptask_L07.c
207         ${PROJECT_DIRECTORY}/src/surf/cpu_ti.c
208         ${PROJECT_DIRECTORY}/src/surf/cpu_im.c
209         ${PROJECT_DIRECTORY}/src/xbt/xbt_sg_stubs.c
210 )
211
212 set(SIMIX_SRC 
213         ${PROJECT_DIRECTORY}/src/simix/smx_global.c
214         ${PROJECT_DIRECTORY}/src/simix/smx_deployment.c
215         ${PROJECT_DIRECTORY}/src/simix/smx_environment.c
216         ${PROJECT_DIRECTORY}/src/simix/smx_host.c
217         ${PROJECT_DIRECTORY}/src/simix/smx_process.c
218         ${PROJECT_DIRECTORY}/src/simix/smx_context.c
219         ${PROJECT_DIRECTORY}/src/simix/smx_action.c
220         ${PROJECT_DIRECTORY}/src/simix/smx_synchro.c
221         ${PROJECT_DIRECTORY}/src/simix/smx_network.c
222         ${PROJECT_DIRECTORY}/src/simix/smx_context_base.c
223 )
224
225 set(MSG_SRC
226         ${PROJECT_DIRECTORY}/src/msg/msg_config.c
227         ${PROJECT_DIRECTORY}/src/msg/task.c
228         ${PROJECT_DIRECTORY}/src/msg/host.c
229         ${PROJECT_DIRECTORY}/src/msg/m_process.c
230         ${PROJECT_DIRECTORY}/src/msg/gos.c
231         ${PROJECT_DIRECTORY}/src/msg/global.c
232         ${PROJECT_DIRECTORY}/src/msg/environment.c
233         ${PROJECT_DIRECTORY}/src/msg/deployment.c
234         ${PROJECT_DIRECTORY}/src/msg/msg_mailbox.c
235         ${PROJECT_DIRECTORY}/src/msg/msg_actions.c
236 )
237
238 set(SIMDAG_SRC
239         ${PROJECT_DIRECTORY}/src/simdag/sd_global.c
240         ${PROJECT_DIRECTORY}/src/simdag/sd_link.c
241         ${PROJECT_DIRECTORY}/src/simdag/sd_task.c
242         ${PROJECT_DIRECTORY}/src/simdag/sd_workstation.c
243         ${PROJECT_DIRECTORY}/src/simdag/sd_daxloader.c
244 )
245
246 set(GRAS_COMMON_SRC
247         ${PROJECT_DIRECTORY}/src/gras/gras.c
248         ${PROJECT_DIRECTORY}/src/gras/Transport/transport.c
249         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_private.h
250         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_mod.c
251         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_types.c
252         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_exchange.c
253         ${PROJECT_DIRECTORY}/src/gras/Msg/gras_msg_listener.c
254         ${PROJECT_DIRECTORY}/src/gras/Msg/rpc.c 
255         ${PROJECT_DIRECTORY}/src/gras/Msg/timer.c
256         ${PROJECT_DIRECTORY}/src/gras/Msg/msg_interface.h
257         ${PROJECT_DIRECTORY}/src/gras/Msg/msg_private.h
258         ${PROJECT_DIRECTORY}/src/gras/Virtu/process.c
259         ${PROJECT_DIRECTORY}/src/gras/Virtu/gras_module.c
260         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_create.c
261         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_convert.c
262         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_exchange.c
263         ${PROJECT_DIRECTORY}/src/gras/DataDesc/cbps.c
264         ${PROJECT_DIRECTORY}/src/gras/DataDesc/datadesc.c
265         ${PROJECT_DIRECTORY}/src/gras/DataDesc/datadesc_interface.h
266         ${PROJECT_DIRECTORY}/src/gras/DataDesc/datadesc_private.h
267         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.c
268         ${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.yy.c
269 )
270
271 set(GRAS_SG_SRC
272         ${PROJECT_DIRECTORY}/src/gras/Transport/sg_transport.c
273         ${PROJECT_DIRECTORY}/src/gras/Transport/transport_plugin_sg.c
274         ${PROJECT_DIRECTORY}/src/gras/Virtu/sg_emul.c
275         ${PROJECT_DIRECTORY}/src/gras/Virtu/sg_process.c
276         ${PROJECT_DIRECTORY}/src/gras/Virtu/sg_dns.c
277         ${PROJECT_DIRECTORY}/src/gras/Msg/sg_msg.c
278         ${XBT_SG_SRC}
279 )
280
281 set(AMOK_SRC
282         ${PROJECT_DIRECTORY}/src/amok/amok_base.c
283         ${PROJECT_DIRECTORY}/src/amok/Bandwidth/bandwidth.c
284         ${PROJECT_DIRECTORY}/src/amok/Bandwidth/saturate.c
285         ${PROJECT_DIRECTORY}/src/amok/PeerManagement/peermanagement.c
286 )
287
288 set(LUA_SRC
289         ${PROJECT_DIRECTORY}/src/simix/smx_context_lua.c
290         #${PROJECT_DIRECTORY}/src/bindings/lua/Msglua.c
291         ${PROJECT_DIRECTORY}/src/bindings/lua/simgrid_lua.c
292 )
293
294 set(TRACING_SRC
295         ${PROJECT_DIRECTORY}/src/instr/interface.c
296         ${PROJECT_DIRECTORY}/src/instr/general.c
297         ${PROJECT_DIRECTORY}/src/instr/paje.c
298         ${PROJECT_DIRECTORY}/src/instr/msg_task_instr.c
299         ${PROJECT_DIRECTORY}/src/instr/msg_process_instr.c
300         ${PROJECT_DIRECTORY}/src/instr/smx_instr.c
301         ${PROJECT_DIRECTORY}/src/instr/surf_instr.c
302         ${PROJECT_DIRECTORY}/src/instr/variables_instr.c
303 )
304
305 set(RUBY_SRC
306 ${PROJECT_DIRECTORY}/src/simix/smx_context_ruby.c
307 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_process.c
308 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_host.c
309 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_task.c
310 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_application_handler.c
311 )
312
313 ### depend of some variables setted upper
314 # -->CONTEXT_THREADS
315 if(${CONTEXT_THREADS})
316         set(SURF_SRC
317                 ${SURF_SRC}
318                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
319                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
320         )
321         set(EXTRA_DIST
322                 ${EXTRA_DIST}
323                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
324         )
325 else(${CONTEXT_THREADS})
326         set(SURF_SRC
327                 ${SURF_SRC}
328                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
329         )
330         set(EXTRA_DIST
331                 ${EXTRA_DIST}
332                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
333                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
334         )
335 endif(${CONTEXT_THREADS})
336
337 # -->HAVE_GTNETS
338 if(HAVE_GTNETS)
339         set(GTNETS_USED 
340                 ${GTNETS_SRC}
341         )
342 else(HAVE_GTNETS)
343         set(GTNETS_USED "")
344         set(EXTRA_DIST
345                 ${EXTRA_DIST}
346                 ${GTNETS_SRC}
347         )
348 endif(HAVE_GTNETS)
349
350 set(EXTRA_DIST
351         ${EXTRA_DIST}
352         ${JMSG_JAVA_SRC}
353 )
354
355 ### Simgrid Lib sources
356 set(simgrid_sources
357         ${XBT_SRC}
358         ${SURF_SRC}
359         ${GTNETS_USED}
360         ${SIMIX_SRC}
361         ${MSG_SRC}
362         ${TRACING_SRC}
363         ${SIMDAG_SRC}
364         ${GRAS_COMMON_SRC}
365         ${GRAS_SG_SRC}
366         ${AMOK_SRC}
367 )
368
369 ### Gras Lib sources
370 set(gras_sources
371         ${XBT_SRC}
372         ${GRAS_COMMON_SRC}
373         ${GRAS_RL_SRC}
374         ${AMOK_SRC}
375 )
376
377 if(${HAVE_LUA})
378         set(simgrid_sources
379                 ${simgrid_sources}
380                 ${LUA_SRC}
381         )
382 elseif(${HAVE_LUA})
383         set(EXTRA_DIST
384                 ${EXTRA_DIST}
385                 ${LUA_SRC}
386         )
387 endif(${HAVE_LUA})
388
389 if(${HAVE_JAVA})
390         set(simgrid_sources
391                 ${simgrid_sources}
392                 ${JMSG_C_SRC} # add the binding support to the library
393         )
394 else(${HAVE_JAVA})
395         set(EXTRA_DIST
396                 ${EXTRA_DIST}
397                 ${JMSG_C_SRC}
398                 ${MSG_SRC}
399         )
400 endif(${HAVE_JAVA})
401
402 if(${HAVE_RUBY_H})
403         set(simgrid_sources
404                 ${simgrid_sources}
405                 ${RUBY_SRC}
406         )
407 else(${HAVE_RUBY_H})
408         set(EXTRA_DIST
409                 ${EXTRA_DIST}
410                 ${RUBY_SRC}
411         )
412 endif(${HAVE_RUBY_H})
413
414 file(GLOB_RECURSE add_src_files
415 "${PROJECT_DIRECTORY}/examples/*.c"
416 "${PROJECT_DIRECTORY}/teshsuite/*.c"
417 "${PROJECT_DIRECTORY}/testsuite/*.c"
418 "${PROJECT_DIRECTORY}/tools/*.c"
419 "${PROJECT_DIRECTORY}/examples/*.cxx"
420 "${PROJECT_DIRECTORY}/teshsuite/*.cxx"
421 "${PROJECT_DIRECTORY}/testsuite/*.cxx"
422 "${PROJECT_DIRECTORY}/tools/*.cxx"
423 "${PROJECT_DIRECTORY}/examples/*CMakeLists.txt"
424 "${PROJECT_DIRECTORY}/teshsuite/*CMakeLists.txt"
425 "${PROJECT_DIRECTORY}/testsuite/*CMakeLists.txt"
426 "${PROJECT_DIRECTORY}/tools/*CMakeLists.txt"
427 "${PROJECT_DIRECTORY}/examples/*.java"
428 )
429 #message("\n\nadd_src_files:\n${add_src_files}")
430
431 file(GLOB_RECURSE include_files
432 "${PROJECT_DIRECTORY}/include/*.h"
433 "${PROJECT_DIRECTORY}/teshsuite/*.h"
434 "${PROJECT_DIRECTORY}/testsuite/*.h"
435 "${PROJECT_DIRECTORY}/tools/*.h"
436 "${PROJECT_DIRECTORY}/examples/*.h"
437 "${PROJECT_DIRECTORY}/src/*.h.in"
438 "${PROJECT_DIRECTORY}/include/*.h.in"
439 )
440 #message("\n\ninclude:\n${include_files}")
441
442 file(GLOB_RECURSE xml_files
443 "${PROJECT_DIRECTORY}/examples/*.xml"
444 "${PROJECT_DIRECTORY}/include/*.xml"
445 "${PROJECT_DIRECTORY}/src/*.xml"
446 "${PROJECT_DIRECTORY}/teshsuite/*.xml"
447 "${PROJECT_DIRECTORY}/testsuite/*.xml"
448 "${PROJECT_DIRECTORY}/tools/*.xml"
449 )
450 #message("\n\nxml:\n${xml_files}")
451
452 file(GLOB_RECURSE tesh_files
453 "${PROJECT_DIRECTORY}/examples/*.tesh"
454 "${PROJECT_DIRECTORY}/include/*.tesh"
455 "${PROJECT_DIRECTORY}/src/*.tesh"
456 "${PROJECT_DIRECTORY}/teshsuite/*.tesh"
457 "${PROJECT_DIRECTORY}/testsuite/*.tesh"
458 "${PROJECT_DIRECTORY}/tools/*.tesh"
459 )
460 #message("\n\ntesh:\n${tesh_files}")
461
462 file(GLOB_RECURSE txt_files
463 "${PROJECT_DIRECTORY}/testsuite/surf/trace*.txt"
464 "${PROJECT_DIRECTORY}/testsuite/simdag/availability_tremblay.txt"
465 "${PROJECT_DIRECTORY}/examples/smpi/hostfile"
466 "${PROJECT_DIRECTORY}/examples/msg/*.trace"
467 "${PROJECT_DIRECTORY}/examples/msg/migration/migration.deploy"
468 "${PROJECT_DIRECTORY}/examples/java/runtest"
469 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little32_4"
470 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little64"
471 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8"
472 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8_4"
473 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_2"
474 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/mk_datadesc_structs.pl"
475 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_rl"
476 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_32"
477 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_64"
478 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_rl"
479 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_sg"
480 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_32"
481 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_64"
482 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.fail"
483 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.trace"
484 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.bw"
485 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.fail"
486 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.lat"
487 "${PROJECT_DIRECTORY}/examples/gras/ping/test_rl"
488 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_rl"
489 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_rl"
490 "${PROJECT_DIRECTORY}/examples/gras/timer/test_rl"
491 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_rl"
492 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_rl"
493 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_rl"
494 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_rl"
495 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_rl"
496 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_rl"
497 "${PROJECT_DIRECTORY}/examples/gras/properties/test_rl"
498 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_32"
499 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_32"
500 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_32"
501 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_32"
502 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_32"
503 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_32"
504 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_32"
505 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_32"
506 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_32"
507 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_32"
508 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_64"
509 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_64"
510 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_64"
511 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_64"
512 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_64"
513 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_64"
514 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_64"
515 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_64"
516 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_64"
517 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_64"
518 "${PROJECT_DIRECTORY}/examples/gras/properties/test_sg"
519 "${PROJECT_DIRECTORY}/examples/java/basic/BasicTest"
520 "${PROJECT_DIRECTORY}/examples/java/ping_pong/PingPongTest"
521 "${PROJECT_DIRECTORY}/examples/java/comm_time/CommTimeTest"
522 "${PROJECT_DIRECTORY}/examples/java/suspend/SuspendTest"
523 )
524 #message("\n\ntesh:\n${txt_files}")