Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add testall to test.
[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/simgrid_lua.c
287 )
288
289 set(TRACING_SRC
290         ${PROJECT_DIRECTORY}/src/instr/interface.c
291         ${PROJECT_DIRECTORY}/src/instr/general.c
292         ${PROJECT_DIRECTORY}/src/instr/paje.c
293         ${PROJECT_DIRECTORY}/src/instr/msg_task_instr.c
294         ${PROJECT_DIRECTORY}/src/instr/msg_process_instr.c
295         ${PROJECT_DIRECTORY}/src/instr/smx_instr.c
296         ${PROJECT_DIRECTORY}/src/instr/surf_instr.c
297         ${PROJECT_DIRECTORY}/src/instr/variables_instr.c
298         ${PROJECT_DIRECTORY}/src/instr/private.h
299 )
300
301 set(RUBY_SRC
302 ${PROJECT_DIRECTORY}/src/simix/smx_context_ruby.c
303 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_process.c
304 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_host.c
305 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_msg_task.c
306 ${PROJECT_DIRECTORY}/src/bindings/ruby/rb_application_handler.c
307 )
308
309 set(install_bins
310 ${PROJECT_DIRECTORY}/src/smpi/smpicc
311 ${PROJECT_DIRECTORY}/src/smpi/smpirun
312 )
313
314 set(install_libs
315 ${PROJECT_DIRECTORY}/src/.libs/libsimgrid.*
316 ${PROJECT_DIRECTORY}/src/.libs/libsimgrid_static.*
317 ${PROJECT_DIRECTORY}/src/.libs/libgras.*
318 ${PROJECT_DIRECTORY}/src/.libs/libsmpi.*
319 )
320 if(HAVE_RUBY)
321         set(install_libs
322         ${install_libs}
323         ${PROJECT_DIRECTORY}/src/.libs/libsimgrid_ruby.*
324         )
325 endif(HAVE_RUBY)
326
327 set(install_HEADERS
328 ./include/gras.h 
329 ./include/xbt.h
330 ./include/simgrid_config.h
331 ./include/xbt/misc.h
332 ./include/xbt/sysdep.h
333 ./include/xbt/virtu.h
334 ./include/xbt/str.h
335 ./include/xbt/strbuff.h
336 ./include/xbt/hash.h
337 ./include/xbt/function_types.h
338 ./include/xbt/asserts.h 
339 ./include/xbt/ex.h
340 ./include/xbt/log.h
341 ./include/xbt/module.h
342 ./include/xbt/mallocator.h
343 ./include/xbt/dynar.h
344 ./include/xbt/dict.h
345 ./include/xbt/set.h
346 ./include/xbt/heap.h
347 ./include/xbt/graph.h
348 ./include/xbt/fifo.h
349 ./include/xbt/swag.h
350 ./include/xbt/matrix.h
351 ./include/xbt/peer.h
352 ./include/xbt/config.h
353 ./include/xbt/cunit.h
354 ./include/xbt/graphxml_parse.h
355 ./include/xbt/graphxml.h
356 ./include/xbt/time.h
357 ./include/xbt/synchro.h
358 ./include/xbt/synchro_core.h
359 ./include/xbt/queue.h
360 ./include/msg/msg.h
361 ./include/msg/datatypes.h
362 ./include/simdag/simdag.h
363 ./include/simdag/datatypes.h
364 ./include/smpi/smpi.h
365 ./include/smpi/mpi.h
366 ./include/surf/surfxml_parse.h
367 ./include/surf/simgrid_dtd.h
368 ./include/gras/datadesc.h
369 ./include/gras/transport.h
370 ./include/gras/virtu.h
371 ./include/gras/emul.h
372 ./include/gras/process.h
373 ./include/gras/module.h
374 ./include/gras/messages.h
375 ./include/gras/timer.h
376 ./include/amok/peermanagement.h
377 ./include/amok/bandwidth.h
378 ./include/instr/instr.h
379 ./include/instr/tracing_config.h
380 )
381
382 set(TEST_UNITS
383 cunit_unit.c
384 ex_unit.c
385 dynar_unit.c
386 dict_unit.c
387 set_unit.c
388 swag_unit.c
389 xbt_str_unit.c
390 xbt_strbuff_unit.c
391 xbt_sha_unit.c
392 config_unit.c
393 xbt_synchro_unit.c
394 )
395
396 set(TEST_CFILES
397 ${PROJECT_DIRECTORY}/src/xbt/cunit.c
398 ${PROJECT_DIRECTORY}/src/xbt/ex.c
399 ${PROJECT_DIRECTORY}/src/xbt/dynar.c
400 ${PROJECT_DIRECTORY}/src/xbt/dict.c
401 ${PROJECT_DIRECTORY}/src/xbt/set.c
402 ${PROJECT_DIRECTORY}/src/xbt/swag.c
403 ${PROJECT_DIRECTORY}/src/xbt/xbt_str.c
404 ${PROJECT_DIRECTORY}/src/xbt/xbt_strbuff.c
405 ${PROJECT_DIRECTORY}/src/xbt/xbt_sha.c
406 ${PROJECT_DIRECTORY}/src/xbt/config.c
407 ${PROJECT_DIRECTORY}/src/xbt/xbt_synchro.c
408 )
409
410 #Here must have all files which permit to generate source files
411 set(SRC_TO_LOOK
412 ${PROJECT_DIRECTORY}/src/surf/simgrid.dtd
413 ${PROJECT_DIRECTORY}/src/xbt/graphxml.dtd
414 ${PROJECT_DIRECTORY}/src/simdag/dax.dtd
415 ${PROJECT_DIRECTORY}/examples/gras/ping/ping.xml
416 ${PROJECT_DIRECTORY}/examples/gras/rpc/rpc.xml
417 ${PROJECT_DIRECTORY}/examples/gras/spawn/spawn.xml
418 ${PROJECT_DIRECTORY}/examples/gras/timer/timer.xml
419 ${PROJECT_DIRECTORY}/examples/gras/chrono/chrono.xml
420 ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/simple_token.xml
421 ${PROJECT_DIRECTORY}/examples/gras/mmrpc/mmrpc.xml
422 ${PROJECT_DIRECTORY}/examples/gras/all2all/all2all.xml
423 ${PROJECT_DIRECTORY}/examples/gras/pmm/pmm.xml
424 ${PROJECT_DIRECTORY}/examples/gras/synchro/synchro.xml
425 ${PROJECT_DIRECTORY}/examples/gras/properties/properties.xml
426 ${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/msg_handle.xml
427 ${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/empty_main.xml
428 ${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/small_sleep.xml
429 ${PROJECT_DIRECTORY}/examples/amok/bandwidth/bandwidth.xml
430 ${PROJECT_DIRECTORY}/examples/amok/saturate/saturate.xml
431 ${TEST_CFILES}
432 )
433
434 ### depend of some variables setted upper
435 # -->CONTEXT_THREADS
436 if(${CONTEXT_THREADS})
437         set(SURF_SRC
438                 ${SURF_SRC}
439                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
440                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
441         )
442         set(EXTRA_DIST
443                 ${EXTRA_DIST}
444                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
445         )
446 else(${CONTEXT_THREADS})
447         set(SURF_SRC
448                 ${SURF_SRC}
449                 ${PROJECT_DIRECTORY}/src/simix/smx_context_sysv.c
450         )
451         set(EXTRA_DIST
452                 ${EXTRA_DIST}
453                 ${PROJECT_DIRECTORY}/src/xbt/xbt_os_thread.c
454                 ${PROJECT_DIRECTORY}/src/simix/smx_context_thread.c
455         )
456 endif(${CONTEXT_THREADS})
457
458 # -->HAVE_GTNETS
459 if(HAVE_GTNETS)
460         set(GTNETS_USED 
461                 ${GTNETS_SRC}
462         )
463 else(HAVE_GTNETS)
464         set(GTNETS_USED "")
465         set(EXTRA_DIST
466                 ${EXTRA_DIST}
467                 ${GTNETS_SRC}
468         )
469 endif(HAVE_GTNETS)
470
471 set(EXTRA_DIST
472         ${EXTRA_DIST}
473         ${JMSG_JAVA_SRC}
474 )
475
476 ### Simgrid Lib sources
477 set(simgrid_sources
478         ${XBT_SRC}
479         ${SURF_SRC}
480         ${GTNETS_USED}
481         ${SIMIX_SRC}
482         ${MSG_SRC}
483         ${TRACING_SRC}
484         ${SIMDAG_SRC}
485         ${GRAS_COMMON_SRC}
486         ${GRAS_SG_SRC}
487         ${AMOK_SRC}
488 )
489
490 ### Gras Lib sources
491 set(gras_sources
492         ${XBT_SRC}
493         ${GRAS_COMMON_SRC}
494         ${GRAS_RL_SRC}
495         ${AMOK_SRC}
496 )
497
498 if(${HAVE_LUA})
499         set(simgrid_sources
500                 ${simgrid_sources}
501                 ${LUA_SRC}
502         )
503 elseif(${HAVE_LUA})
504         set(EXTRA_DIST
505                 ${EXTRA_DIST}
506                 ${LUA_SRC}
507         )
508 endif(${HAVE_LUA})
509
510 if(${HAVE_JAVA})
511         set(simgrid_sources
512                 ${simgrid_sources}
513                 ${JMSG_C_SRC} # add the binding support to the library
514         )
515 else(${HAVE_JAVA})
516         set(EXTRA_DIST
517                 ${EXTRA_DIST}
518                 ${JMSG_C_SRC}
519                 ${MSG_SRC}
520         )
521 endif(${HAVE_JAVA})
522
523 if(${HAVE_RUBY})
524         set(simgrid_sources
525                 ${simgrid_sources}
526                 ${RUBY_SRC}
527                 ${PROJECT_DIRECTORY}/src/bindings/ruby/simgrid_ruby.c
528         )
529 else(${HAVE_RUBY})
530         set(EXTRA_DIST
531                 ${EXTRA_DIST}
532                 ${RUBY_SRC}
533                 ${PROJECT_DIRECTORY}/src/bindings/ruby/simgrid_ruby.c
534         )
535 endif(${HAVE_RUBY})
536
537 file(GLOB_RECURSE add_src_files
538 "${PROJECT_DIRECTORY}/examples/*.c"
539 "${PROJECT_DIRECTORY}/teshsuite/*.c"
540 "${PROJECT_DIRECTORY}/testsuite/*.c"
541 "${PROJECT_DIRECTORY}/tools/*.c"
542 "${PROJECT_DIRECTORY}/examples/*.cxx"
543 "${PROJECT_DIRECTORY}/teshsuite/*.cxx"
544 "${PROJECT_DIRECTORY}/testsuite/*.cxx"
545 "${PROJECT_DIRECTORY}/tools/*.cxx"
546 "${PROJECT_DIRECTORY}/examples/*CMakeLists.txt"
547 "${PROJECT_DIRECTORY}/teshsuite/*CMakeLists.txt"
548 "${PROJECT_DIRECTORY}/testsuite/*CMakeLists.txt"
549 "${PROJECT_DIRECTORY}/tools/*CMakeLists.txt"
550 "${PROJECT_DIRECTORY}/src/*CMakeLists.txt"
551 "${PROJECT_DIRECTORY}/examples/*.java"
552 )
553 #message("\n\nadd_src_files:\n${add_src_files}")
554
555 file(GLOB_RECURSE include_files
556 "${PROJECT_DIRECTORY}/include/*.h"
557 "${PROJECT_DIRECTORY}/teshsuite/*.h"
558 "${PROJECT_DIRECTORY}/testsuite/*.h"
559 "${PROJECT_DIRECTORY}/tools/*.h"
560 "${PROJECT_DIRECTORY}/examples/*.h"
561 "${PROJECT_DIRECTORY}/src/*.h.in"
562 "${PROJECT_DIRECTORY}/include/*.h.in"
563 )
564 #message("\n\ninclude:\n${include_files}")
565
566 file(GLOB_RECURSE xml_files
567 "${PROJECT_DIRECTORY}/examples/*.xml"
568 "${PROJECT_DIRECTORY}/include/*.xml"
569 "${PROJECT_DIRECTORY}/src/*.xml"
570 "${PROJECT_DIRECTORY}/teshsuite/*.xml"
571 "${PROJECT_DIRECTORY}/testsuite/*.xml"
572 "${PROJECT_DIRECTORY}/tools/*.xml"
573 )
574 #message("\n\nxml:\n${xml_files}")
575
576 file(GLOB_RECURSE tesh_files
577 "${PROJECT_DIRECTORY}/examples/*.tesh"
578 "${PROJECT_DIRECTORY}/include/*.tesh"
579 "${PROJECT_DIRECTORY}/src/*.tesh"
580 "${PROJECT_DIRECTORY}/teshsuite/*.tesh"
581 "${PROJECT_DIRECTORY}/testsuite/*.tesh"
582 "${PROJECT_DIRECTORY}/tools/*.tesh"
583 )
584 #message("\n\ntesh:\n${tesh_files}")
585
586 file(GLOB_RECURSE txt_files
587 "${PROJECT_DIRECTORY}/testsuite/surf/trace*.txt"
588 "${PROJECT_DIRECTORY}/testsuite/simdag/availability_tremblay.txt"
589 "${PROJECT_DIRECTORY}/examples/smpi/hostfile"
590 "${PROJECT_DIRECTORY}/examples/msg/*.trace"
591 "${PROJECT_DIRECTORY}/examples/msg/migration/migration.deploy"
592 "${PROJECT_DIRECTORY}/examples/java/runtest"
593 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little32_4"
594 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.little64"
595 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8"
596 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_8_4"
597 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/datadesc.big32_2"
598 "${PROJECT_DIRECTORY}/teshsuite/gras/datadesc/mk_datadesc_structs.pl"
599 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_rl"
600 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_32"
601 "${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle/test_sg_64"
602 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_rl"
603 "${PROJECT_DIRECTORY}/teshsuite/gras/empty_main/test_sg"
604 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_32"
605 "${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep/test_sg_64"
606 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.fail"
607 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/bob.trace"
608 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.bw"
609 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.fail"
610 "${PROJECT_DIRECTORY}/teshsuite/simdag/platforms/link1.lat"
611 "${PROJECT_DIRECTORY}/examples/gras/ping/test_rl"
612 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_rl"
613 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_rl"
614 "${PROJECT_DIRECTORY}/examples/gras/timer/test_rl"
615 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_rl"
616 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_rl"
617 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_rl"
618 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_rl"
619 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_rl"
620 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_rl"
621 "${PROJECT_DIRECTORY}/examples/gras/properties/test_rl"
622 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_32"
623 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_32"
624 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_32"
625 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_32"
626 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_32"
627 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_32"
628 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_32"
629 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_32"
630 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_32"
631 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_32"
632 "${PROJECT_DIRECTORY}/examples/gras/ping/test_sg_64"
633 "${PROJECT_DIRECTORY}/examples/gras/rpc/test_sg_64"
634 "${PROJECT_DIRECTORY}/examples/gras/spawn/test_sg_64"
635 "${PROJECT_DIRECTORY}/examples/gras/timer/test_sg_64"
636 "${PROJECT_DIRECTORY}/examples/gras/chrono/test_sg_64"
637 "${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/test_sg_64"
638 "${PROJECT_DIRECTORY}/examples/gras/mmrpc/test_sg_64"
639 "${PROJECT_DIRECTORY}/examples/gras/all2all/test_sg_64"
640 "${PROJECT_DIRECTORY}/examples/gras/pmm/test_sg_64"
641 "${PROJECT_DIRECTORY}/examples/gras/synchro/test_sg_64"
642 "${PROJECT_DIRECTORY}/examples/gras/properties/test_sg"
643 "${PROJECT_DIRECTORY}/examples/java/basic/BasicTest"
644 "${PROJECT_DIRECTORY}/examples/java/ping_pong/PingPongTest"
645 "${PROJECT_DIRECTORY}/examples/java/comm_time/CommTimeTest"
646 "${PROJECT_DIRECTORY}/examples/java/suspend/SuspendTest"
647 )
648
649 set(to_svg      
650         ${XBT_RL_SRC}
651         ${EXTRA_DIST}
652         ${SMPI_SRC}
653         ${JMSG_C_SRC}
654         ${JMSG_JAVA_SRC}
655         ${GRAS_RL_SRC}
656         ${XBT_SRC}
657         ${GTNETS_SRC}
658         ${SURF_SRC}
659         ${SIMIX_SRC}
660         ${TRACING_SRC}
661         ${MSG_SRC}
662         ${SIMDAG_SRC}
663         ${GRAS_COMMON_SRC}
664         ${GRAS_SG_SRC}
665         ${AMOK_SRC}
666         ${LUA_SRC}
667         ${RUBY_SRC}
668         ${add_src_files}
669         ${include_files}
670         ${xml_files}
671         ${tesh_files}
672         ${txt_files}
673         ${TEST_CFILES}
674         ${PROJECT_DIRECTORY}/./CMakeLists.txt
675         ${PROJECT_DIRECTORY}/./AUTHORS
676         ${PROJECT_DIRECTORY}/./ChangeLog
677         ${PROJECT_DIRECTORY}/./COPYING
678         ${PROJECT_DIRECTORY}/./missing
679         ${PROJECT_DIRECTORY}/./NEWS
680         ${PROJECT_DIRECTORY}/./README
681         ${PROJECT_DIRECTORY}/./README.IEEE
682         ${PROJECT_DIRECTORY}/./TODO
683         ${PROJECT_DIRECTORY}/./src/smpi/smpicc.in
684         ${PROJECT_DIRECTORY}/./src/smpi/smpirun.in
685         ${PROJECT_DIRECTORY}/./src/bindings/ruby/simgrid_ruby.c
686         ${PROJECT_DIRECTORY}/./src/bindings/ruby_bindings.h
687         ${PROJECT_DIRECTORY}/./src/simix/smx_context_sysv_private.h
688         ${PROJECT_DIRECTORY}/./src/simgrid_units_main.c
689         ${PROJECT_DIRECTORY}/./src/cunit_unit.c
690         ${PROJECT_DIRECTORY}/./src/ex_unit.c
691         ${PROJECT_DIRECTORY}/./src/dynar_unit.c
692         ${PROJECT_DIRECTORY}/./src/dict_unit.c
693         ${PROJECT_DIRECTORY}/./src/set_unit.c
694         ${PROJECT_DIRECTORY}/./src/swag_unit.c
695         ${PROJECT_DIRECTORY}/./src/xbt_str_unit.c
696         ${PROJECT_DIRECTORY}/./src/xbt_strbuff_unit.c
697         ${PROJECT_DIRECTORY}/./src/xbt_sha_unit.c
698         ${PROJECT_DIRECTORY}/./src/config_unit.c
699         ${PROJECT_DIRECTORY}/./src/xbt_synchro_unit.c
700         ${PROJECT_DIRECTORY}/./src/bindings/lua/master_slave.lua
701         ${PROJECT_DIRECTORY}/./src/bindings/lua/mult_matrix.lua
702         ${PROJECT_DIRECTORY}/./examples/lua/master_slave.lua
703         ${PROJECT_DIRECTORY}/./examples/lua/mult_matrix.lua
704         ${PROJECT_DIRECTORY}/./examples/lua/README
705         ${PROJECT_DIRECTORY}/./src/bindings/ruby/MasterSlave.rb
706         ${PROJECT_DIRECTORY}/./src/bindings/ruby/MasterSlaveData.rb
707         ${PROJECT_DIRECTORY}/./src/bindings/ruby/PingPong.rb
708         ${PROJECT_DIRECTORY}/./src/bindings/ruby/Quicksort.rb
709         ${PROJECT_DIRECTORY}/./src/bindings/ruby/simgrid.rb
710         ${PROJECT_DIRECTORY}/./examples/ruby/README
711         ${PROJECT_DIRECTORY}/./examples/ruby/MasterSlave.rb
712         ${PROJECT_DIRECTORY}/./examples/ruby/PingPong.rb
713         ${PROJECT_DIRECTORY}/./examples/ruby/Quicksort.rb
714         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/example.rb
715         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/extconfig.rb
716         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/rb_SD_task.c
717         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/rb_SD_task.h
718         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/rb_SD_workstation.c
719         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/rb_SD_workstation.h
720         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/rb_simdag.c
721         ${PROJECT_DIRECTORY}/./src/bindings/rubyDag/simdag.rb
722 )
723 set(script_to_install
724         ${PROJECT_DIRECTORY}/./src/smpi/smpicc
725         ${PROJECT_DIRECTORY}/./src/smpi/smpirun
726         ${PROJECT_DIRECTORY}/./tools/sg_unit_extractor.pl
727         ${PROJECT_DIRECTORY}/./tools/doxygen/index_create.pl
728         ${PROJECT_DIRECTORY}/./tools/doxygen/toc_create.pl
729         ${PROJECT_DIRECTORY}/./tools/doxygen/index_php.pl
730         ${PROJECT_DIRECTORY}/./tools/doxygen/doxygen_postprocesser.pl
731         ${PROJECT_DIRECTORY}/./tools/doxygen/bibtex2html_table_count.pl
732         ${PROJECT_DIRECTORY}/./tools/doxygen/bibtex2html_postprocessor.pl
733         ${PROJECT_DIRECTORY}/./tools/doxygen/xbt_log_extract_hierarchy.pl
734 )
735
736 #message("\n\ntesh:\n${txt_files}")