Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix Bibtex2html pb.
[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 set(TEST_CFILES
314 ${PROJECT_DIRECTORY}/src/xbt/cunit.c
315 ${PROJECT_DIRECTORY}/src/xbt/ex.c
316 ${PROJECT_DIRECTORY}/src/xbt/dynar.c
317 ${PROJECT_DIRECTORY}/src/xbt/dict.c
318 ${PROJECT_DIRECTORY}/src/xbt/set.c
319 ${PROJECT_DIRECTORY}/src/xbt/swag.c
320 ${PROJECT_DIRECTORY}/src/xbt/xbt_str.c
321 ${PROJECT_DIRECTORY}/src/xbt/xbt_strbuff.c
322 ${PROJECT_DIRECTORY}/src/xbt/xbt_sha.c
323 ${PROJECT_DIRECTORY}/src/xbt/config.c
324 ${PROJECT_DIRECTORY}/src/xbt/xbt_synchro.c
325 )
326
327 set(TEST_UNITS
328 cunit_unit.c
329 ex_unit.c
330 dynar_unit.c
331 dict_unit.c
332 set_unit.c
333 swag_unit.c
334 xbt_str_unit.c
335 xbt_strbuff_unit.c
336 xbt_sha_unit.c
337 config_unit.c
338 xbt_synchro_unit.c
339 )
340
341 ### depend of some variables setted upper
342 # -->CONTEXT_THREADS
343 if(${CONTEXT_THREADS})
344         set(SURF_SRC
345                 ${SURF_SRC}
346                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
347                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
348         )
349         set(EXTRA_DIST
350                 ${EXTRA_DIST}
351                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
352         )
353 else(${CONTEXT_THREADS})
354         set(SURF_SRC
355                 ${SURF_SRC}
356                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
357         )
358         set(EXTRA_DIST
359                 ${EXTRA_DIST}
360                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
361                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
362         )
363 endif(${CONTEXT_THREADS})
364
365 # -->HAVE_GTNETS
366 if(HAVE_GTNETS)
367         set(GTNETS_USED 
368                 ${GTNETS_SRC}
369         )
370 else(HAVE_GTNETS)
371         set(GTNETS_USED "")
372         set(EXTRA_DIST
373                 ${EXTRA_DIST}
374                 ${GTNETS_SRC}
375         )
376 endif(HAVE_GTNETS)
377
378 set(EXTRA_DIST
379         ${EXTRA_DIST}
380         ${JMSG_JAVA_SRC}
381 )
382
383 ### Simgrid Lib sources
384 set(simgrid_sources
385         ${XBT_SRC}
386         ${SURF_SRC}
387         ${GTNETS_USED}
388         ${SIMIX_SRC}
389         ${MSG_SRC}
390         ${TRACING_SRC}
391         ${SIMDAG_SRC}
392         ${GRAS_COMMON_SRC}
393         ${GRAS_SG_SRC}
394         ${AMOK_SRC}
395 )
396
397 ### Gras Lib sources
398 set(gras_sources
399         ${XBT_SRC}
400         ${GRAS_COMMON_SRC}
401         ${GRAS_RL_SRC}
402         ${AMOK_SRC}
403 )
404
405 if(${HAVE_LUA})
406         set(simgrid_sources
407                 ${simgrid_sources}
408                 ${LUA_SRC}
409         )
410 elseif(${HAVE_LUA})
411         set(EXTRA_DIST
412                 ${EXTRA_DIST}
413                 ${LUA_SRC}
414         )
415 endif(${HAVE_LUA})
416
417 if(${HAVE_JAVA})
418         set(simgrid_sources
419                 ${simgrid_sources}
420                 ${JMSG_C_SRC} # add the binding support to the library
421         )
422 else(${HAVE_JAVA})
423         set(EXTRA_DIST
424                 ${EXTRA_DIST}
425                 ${JMSG_C_SRC}
426                 ${MSG_SRC}
427         )
428 endif(${HAVE_JAVA})
429
430 if(${HAVE_RUBY_H})
431         set(simgrid_sources
432                 ${simgrid_sources}
433                 ${RUBY_SRC}
434         )
435 else(${HAVE_RUBY_H})
436         set(EXTRA_DIST
437                 ${EXTRA_DIST}
438                 ${RUBY_SRC}
439         )
440 endif(${HAVE_RUBY_H})
441
442 file(GLOB_RECURSE add_src_files
443 "${PROJECT_DIRECTORY}/examples/*.c"
444 "${PROJECT_DIRECTORY}/teshsuite/*.c"
445 "${PROJECT_DIRECTORY}/testsuite/*.c"
446 "${PROJECT_DIRECTORY}/tools/*.c"
447 "${PROJECT_DIRECTORY}/examples/*.cxx"
448 "${PROJECT_DIRECTORY}/teshsuite/*.cxx"
449 "${PROJECT_DIRECTORY}/testsuite/*.cxx"
450 "${PROJECT_DIRECTORY}/tools/*.cxx"
451 "${PROJECT_DIRECTORY}/examples/*CMakeLists.txt"
452 "${PROJECT_DIRECTORY}/teshsuite/*CMakeLists.txt"
453 "${PROJECT_DIRECTORY}/testsuite/*CMakeLists.txt"
454 "${PROJECT_DIRECTORY}/tools/*CMakeLists.txt"
455 "${PROJECT_DIRECTORY}/examples/*.java"
456 )
457 #message("\n\nadd_src_files:\n${add_src_files}")
458
459 file(GLOB_RECURSE include_files
460 "${PROJECT_DIRECTORY}/include/*.h"
461 "${PROJECT_DIRECTORY}/teshsuite/*.h"
462 "${PROJECT_DIRECTORY}/testsuite/*.h"
463 "${PROJECT_DIRECTORY}/tools/*.h"
464 "${PROJECT_DIRECTORY}/examples/*.h"
465 "${PROJECT_DIRECTORY}/src/*.h.in"
466 "${PROJECT_DIRECTORY}/include/*.h.in"
467 )
468 #message("\n\ninclude:\n${include_files}")
469
470 file(GLOB_RECURSE xml_files
471 "${PROJECT_DIRECTORY}/examples/*.xml"
472 "${PROJECT_DIRECTORY}/include/*.xml"
473 "${PROJECT_DIRECTORY}/src/*.xml"
474 "${PROJECT_DIRECTORY}/teshsuite/*.xml"
475 "${PROJECT_DIRECTORY}/testsuite/*.xml"
476 "${PROJECT_DIRECTORY}/tools/*.xml"
477 )
478 #message("\n\nxml:\n${xml_files}")
479
480 file(GLOB_RECURSE tesh_files
481 "${PROJECT_DIRECTORY}/examples/*.tesh"
482 "${PROJECT_DIRECTORY}/include/*.tesh"
483 "${PROJECT_DIRECTORY}/src/*.tesh"
484 "${PROJECT_DIRECTORY}/teshsuite/*.tesh"
485 "${PROJECT_DIRECTORY}/testsuite/*.tesh"
486 "${PROJECT_DIRECTORY}/tools/*.tesh"
487 )
488 #message("\n\ntesh:\n${tesh_files}")
489
490 file(GLOB_RECURSE txt_files
491 "${PROJECT_DIRECTORY}/testsuite/surf/trace*.txt"
492 "${PROJECT_DIRECTORY}/testsuite/simdag/availability_tremblay.txt"
493 "${PROJECT_DIRECTORY}/examples/smpi/hostfile"
494 "${PROJECT_DIRECTORY}/examples/msg/*.trace"
495 "${PROJECT_DIRECTORY}/examples/msg/migration/migration.deploy"
496 "${PROJECT_DIRECTORY}/examples/java/runtest"
497 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little32_4"
498 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little64"
499 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8"
500 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8_4"
501 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_2"
502 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/mk_datadesc_structs.pl"
503 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_rl"
504 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_32"
505 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_64"
506 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_rl"
507 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_sg"
508 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_32"
509 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_64"
510 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.fail"
511 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.trace"
512 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.bw"
513 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.fail"
514 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.lat"
515 "${PROJECT_DIRECTORY}/examples/gras/ping/test_rl"
516 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_rl"
517 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_rl"
518 "${PROJECT_DIRECTORY}/examples/gras/timer/test_rl"
519 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_rl"
520 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_rl"
521 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_rl"
522 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_rl"
523 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_rl"
524 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_rl"
525 "${PROJECT_DIRECTORY}/examples/gras/properties/test_rl"
526 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_32"
527 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_32"
528 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_32"
529 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_32"
530 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_32"
531 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_32"
532 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_32"
533 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_32"
534 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_32"
535 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_32"
536 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_64"
537 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_64"
538 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_64"
539 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_64"
540 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_64"
541 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_64"
542 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_64"
543 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_64"
544 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_64"
545 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_64"
546 "${PROJECT_DIRECTORY}/examples/gras/properties/test_sg"
547 "${PROJECT_DIRECTORY}/examples/java/basic/BasicTest"
548 "${PROJECT_DIRECTORY}/examples/java/ping_pong/PingPongTest"
549 "${PROJECT_DIRECTORY}/examples/java/comm_time/CommTimeTest"
550 "${PROJECT_DIRECTORY}/examples/java/suspend/SuspendTest"
551 )
552 #message("\n\ntesh:\n${txt_files}")