Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Re-implement the tab.
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
1 ### define source packages
2
3 set(EXTRA_DIST 
4         src/portable.h
5         src/xbt/mallocator_private.h
6         src/xbt/dict_private.h
7         src/xbt/heap_private.h
8         src/xbt/fifo_private.h
9         src/xbt/graph_private.h
10         src/xbt/graphxml_parse.c
11         src/xbt/graphxml.l
12         src/xbt/graphxml.c
13         src/xbt/graphxml.dtd
14         src/xbt/log_private.h
15         src/xbt/ex_interface.h
16         src/xbt/backtrace_linux.c
17         src/xbt/backtrace_windows.c
18         src/xbt/backtrace_dummy.c
19         src/xbt/setset_private.h
20         src/xbt/parmap_private.h
21         src/xbt/mmalloc/attach.c
22         src/xbt/mmalloc/detach.c        
23         src/xbt/mmalloc/keys.c
24         src/xbt/mmalloc/mcalloc.c
25         src/xbt/mmalloc/mfree.c
26         src/xbt/mmalloc/mm_legacy.c             
27         src/xbt/mmalloc/mm.c
28         src/xbt/mmalloc/mmalloc.c
29         src/xbt/mmalloc/mmap-sup.c
30         src/xbt/mmalloc/mmcheck.c
31         src/xbt/mmalloc/mmemalign.c
32         src/xbt/mmalloc/mmprivate.h
33         src/xbt/mmalloc/mmstats.c
34         src/xbt/mmalloc/mmtrace.c
35         src/xbt/mmalloc/mrealloc.c
36         src/xbt/mmalloc/mvalloc.c
37         src/xbt/mmalloc/sbrk-sup.c
38         src/xbt/mmalloc/test/mmalloc_test.c
39         src/surf/maxmin_private.h
40         src/surf/trace_mgr_private.h
41         src/surf/surf_private.h
42         src/surf/surfxml_parse.c
43         src/surf/simgrid_dtd.l
44         src/surf/simgrid_dtd.c
45         src/surf/simgrid.dtd
46         src/surf/network_private.h
47         src/surf/network_gtnets_private.h
48         src/surf/gtnets/gtnets_interface.h
49         src/surf/gtnets/gtnets_simulator.h
50         src/surf/gtnets/gtnets_topology.h
51         src/surf/cpu_ti_private.h
52         src/include/surf/surf_resource.h
53         src/include/surf/datatypes.h
54         src/include/surf/maxmin.h
55         src/include/surf/trace_mgr.h
56         src/include/surf/surf.h
57         src/include/surf/surfxml_parse_private.h
58         src/include/surf/random_mgr.h
59         src/include/surf/surf_resource_lmm.h
60         src/include/xbt/wine_dbghelp.h
61         src/include/xbt/xbt_os_time.h
62         src/include/xbt/xbt_os_thread.h
63         src/include/mc/datatypes.h
64         src/include/mc/mc.h
65         src/include/simix/context.h
66         src/msg/private.h
67         src/msg/mailbox.h
68         src/simdag/private.h
69         src/simdag/dax.dtd
70         src/simdag/dax_dtd.l
71         src/simdag/dax_dtd.h
72         src/simdag/dax_dtd.c
73         src/gras/DataDesc/ddt_parse.yy.l
74         src/gras/DataDesc/ddt_parse.yy.h
75         src/gras/Virtu/virtu_rl.h
76         src/gras/Virtu/virtu_sg.h
77         src/gras/Virtu/virtu_interface.h
78         src/gras/Virtu/virtu_private.h
79         src/gras/Transport/transport_interface.h
80         src/amok/Bandwidth/bandwidth_private.h
81         src/amok/amok_modinter.h
82         src/simix/private.h
83         src/simix/process_private.h
84         src/simix/host_private.h
85         src/simix/network_private.h
86         src/simix/smurf_private.h
87         src/simix/synchro_private.h
88         
89         src/smpi/private.h
90         src/smpi/smpi_mpi_dt_private.h
91         src/smpi/README
92         src/mk_supernovae.pl
93 )
94
95 set(XBT_RL_SRC 
96         src/xbt/xbt_rl_synchro.c
97         src/xbt/xbt_rl_time.c
98 )
99
100 set(XBT_SG_SRC 
101         src/xbt/xbt_sg_synchro.c
102         src/xbt/xbt_sg_time.c
103 )     
104
105 set(SMPI_SRC
106         src/smpi/smpi_base.c
107         src/smpi/smpi_bench.c
108         src/smpi/smpi_global.c
109         src/smpi/smpi_mpi.c
110         src/smpi/smpi_pmpi.c
111         src/smpi/smpi_c99.c
112         src/smpi/smpi_f77.c
113         src/smpi/smpi_comm.c
114         src/smpi/smpi_group.c
115         src/smpi/smpi_coll.c
116         src/smpi/smpi_mpi_dt.c
117 )
118
119
120 set(GRAS_RL_SRC
121         src/gras/rl_stubs.c
122         src/xbt/xbt_os_thread.c
123         src/gras/Transport/rl_transport.c
124         src/gras/Transport/transport_plugin_file.c
125         src/gras/Transport/transport_plugin_tcp.c
126         src/gras/Virtu/rl_emul.c
127         src/gras/Virtu/rl_process.c
128         src/gras/Virtu/rl_dns.c
129         src/gras/Msg/rl_msg.c
130         ${XBT_RL_SRC}
131 )
132
133 set(XBT_SRC 
134         src/xbt/snprintf.c
135         src/xbt/xbt_str.c
136         src/xbt/xbt_strbuff.c
137         src/xbt/xbt_sha.c
138         src/xbt/ex.c
139         src/xbt_modinter.h
140         src/gras_modinter.h
141         src/xbt/xbt_virtu.c
142         src/xbt/xbt_os_time.c
143         src/xbt/log.c
144         src/xbt/xbt_log_appender_file.c
145         src/xbt/xbt_log_layout_simple.c
146         src/xbt/xbt_log_layout_format.c
147         src/xbt/mallocator.c
148         src/xbt/dynar.c
149         src/xbt/dict.c
150         src/xbt/dict_elm.c
151         src/xbt/dict_cursor.c
152         src/xbt/dict_multi.c
153         src/xbt/heap.c
154         src/xbt/fifo.c
155         src/xbt/swag.c
156         src/xbt/graph.c
157         src/xbt/set.c
158         src/xbt/xbt_matrix.c
159         src/xbt/xbt_queue.c
160         src/xbt/xbt_synchro.c
161         src/xbt/xbt_peer.c
162         src/xbt/xbt_main.c
163         src/xbt/config.c
164         src/xbt/cunit.c
165         src/xbt/graphxml_parse.c
166         src/xbt/setset.c
167         src/xbt/parmap.c
168         src/xbt/xbt_replay_trace_reader.c
169         src/xbt/lib.c
170 )
171
172 if(HAVE_MMAP)
173         set(XBT_SRC
174         ${XBT_SRC}
175         src/xbt/mmalloc/mm.c    
176         )
177 endif(HAVE_MMAP)
178
179 set(GTNETS_SRC 
180         src/surf/gtnets/gtnets_simulator.cc
181         src/surf/gtnets/gtnets_topology.cc
182         src/surf/gtnets/gtnets_interface.cc
183         src/surf/network_gtnets.c
184 )
185
186 set(SURF_SRC 
187         src/surf/surf_model.c
188         src/surf/surf_action.c
189         src/surf/surf_routing.c
190         src/surf/surf_config.c
191         src/surf/maxmin.c
192         src/surf/fair_bottleneck.c
193         src/surf/lagrange.c
194         src/surf/trace_mgr.c
195         src/surf/random_mgr.c
196         src/surf/surf.c
197         src/surf/surfxml_parse.c
198         src/surf/cpu.c
199         src/surf/network.c
200         src/surf/network_im.c
201         src/surf/network_constant.c
202         src/surf/workstation.c
203         src/surf/workstation_ptask_L07.c
204         src/surf/cpu_ti.c
205         src/surf/cpu_im.c
206         src/xbt/xbt_sg_stubs.c
207 )
208
209 set(SIMIX_SRC 
210         src/simix/smx_global.c
211         src/simix/smx_deployment.c
212         src/simix/smx_environment.c
213         src/simix/smx_host.c
214         src/simix/smx_process.c
215         src/simix/smx_context.c
216         src/simix/smx_synchro.c
217         src/simix/smx_network.c
218         src/simix/smx_context_base.c
219         src/simix/smx_user.c
220         src/simix/smx_smurf.c
221         src/simix/smx_context_raw.c
222 )
223
224 set(MSG_SRC
225         src/msg/msg_config.c
226         src/msg/task.c
227         src/msg/host.c
228         src/msg/m_process.c
229         src/msg/gos.c
230         src/msg/global.c
231         src/msg/environment.c
232         src/msg/deployment.c
233         src/msg/msg_mailbox.c
234         src/msg/msg_actions.c
235 )
236
237 set(SIMDAG_SRC
238         src/simdag/sd_global.c
239         src/simdag/sd_link.c
240         src/simdag/sd_task.c
241         src/simdag/sd_workstation.c
242         src/simdag/sd_daxloader.c
243 )
244 if(HAVE_GRAPHVIZ)
245         set(SIMDAG_SRC 
246             ${SIMDAG_SRC} src/simdag/sd_dotloader.c
247         )
248 else(HAVE_GRAPHVIZ)
249         set(EXTRA_DIST
250             ${EXTRA_DIST} src/simdag/sd_dotloader.c
251         )
252 endif(HAVE_GRAPHVIZ)
253
254 set(GRAS_COMMON_SRC
255         src/gras/gras.c
256         src/gras/Transport/transport.c
257         src/gras/Transport/transport_private.h
258         src/gras/Msg/gras_msg_mod.c
259         src/gras/Msg/gras_msg_types.c
260         src/gras/Msg/gras_msg_exchange.c
261         src/gras/Msg/gras_msg_listener.c
262         src/gras/Msg/rpc.c 
263         src/gras/Msg/timer.c
264         src/gras/Msg/msg_interface.h
265         src/gras/Msg/msg_private.h
266         src/gras/Virtu/process.c
267         src/gras/Virtu/gras_module.c
268         src/gras/DataDesc/ddt_create.c
269         src/gras/DataDesc/ddt_convert.c
270         src/gras/DataDesc/ddt_exchange.c
271         src/gras/DataDesc/cbps.c
272         src/gras/DataDesc/datadesc.c
273         src/gras/DataDesc/datadesc_interface.h
274         src/gras/DataDesc/datadesc_private.h
275         src/gras/DataDesc/ddt_parse.c
276         src/gras/DataDesc/ddt_parse.yy.c
277 )
278
279 set(GRAS_SG_SRC
280         src/gras/Transport/sg_transport.c
281         src/gras/Transport/transport_plugin_sg.c
282         src/gras/Virtu/sg_emul.c
283         src/gras/Virtu/sg_process.c
284         src/gras/Virtu/sg_dns.c
285         src/gras/Msg/sg_msg.c
286         ${XBT_SG_SRC}
287 )
288
289 set(AMOK_SRC
290         src/amok/amok_base.c
291         src/amok/Bandwidth/bandwidth.c
292         src/amok/Bandwidth/saturate.c
293         src/amok/PeerManagement/peermanagement.c
294 )
295
296 set(LUA_SRC
297         src/bindings/lua/simgrid_lua.c
298         src/bindings/lua/lua_stub_generator.c
299         src/bindings/lua/lua_console.c
300 )
301
302 set(TRACING_SRC
303         src/instr/instr_routing.c
304         src/instr/instr_config.c
305         src/instr/instr_interface.c
306         src/instr/instr_paje.c
307         src/instr/instr_paje_trace.c
308         src/instr/instr_msg_task.c
309         src/instr/instr_msg_process.c
310         src/instr/instr_msg_volume.c
311         src/instr/instr_smx.c
312         src/instr/instr_surf.c
313         src/instr/instr_smpi.c
314         src/instr/instr_simdag.c
315         src/instr/instr_resource_utilization.c
316         src/instr/instr_private.h
317 )
318
319
320 set(JEDULE_SRC
321         include/instr/jedule/jedule_events.h
322         include/instr/jedule/jedule_output.h
323         include/instr/jedule/jedule_platform.h
324         include/instr/jedule/jedule_sd_binding.h
325         src/instr/jedule/jedule_events.c
326         src/instr/jedule/jedule_output.c
327         src/instr/jedule/jedule_platform.c
328         src/instr/jedule/jedule_sd_binding.c
329 )
330
331 set(MC_SRC
332         src/mc/mc_memory.c
333         src/mc/mc_checkpoint.c
334         src/mc/mc_state.c
335         src/mc/memory_map.c
336         src/mc/mc_global.c
337         src/mc/mc_dpor.c
338         src/mc/mc_request.c
339         src/mc/private.h
340 )
341
342 set(RNGSTREAM_SRC
343         src/rngstreams/RngStream.h
344         src/rngstreams/RngStream.c
345 )
346
347 set(install_HEADERS
348         include/xbt/misc.h
349         include/xbt/sysdep.h
350         include/xbt/virtu.h
351         include/xbt/str.h
352         include/xbt/strbuff.h
353         include/xbt/hash.h
354         include/xbt/function_types.h
355         include/xbt/asserts.h 
356         include/xbt/ex.h
357         include/xbt/log.h
358         include/xbt/module.h
359         include/xbt/mallocator.h
360         include/xbt/dynar.h
361         include/xbt/dict.h
362         include/xbt/set.h
363         include/xbt/heap.h
364         include/xbt/graph.h
365         include/xbt/fifo.h
366         include/xbt/swag.h
367         include/xbt/matrix.h
368         include/xbt/peer.h
369         include/xbt/config.h
370         include/xbt/cunit.h
371         include/xbt/graphxml_parse.h
372         include/xbt/graphxml.h
373         include/xbt/time.h
374         include/xbt/synchro.h
375         include/xbt/synchro_core.h
376         include/xbt/queue.h
377         include/xbt/setset.h
378         include/xbt/mmalloc.h
379         include/xbt/replay_trace_reader.h
380         include/xbt/parmap.h
381         include/mc/modelchecker.h
382         include/msg/msg.h
383         include/msg/datatypes.h
384         include/simdag/simdag.h
385         include/simdag/datatypes.h
386         include/smpi/smpi.h
387         ${CMAKE_CURRENT_BINARY_DIR}/include/smpi/smpif.h
388         include/smpi/mpi.h
389         include/smpi/mpif.h
390         include/surf/surfxml_parse.h
391         include/surf/simgrid_dtd.h
392         include/gras/datadesc.h
393         include/gras/transport.h
394         include/gras/virtu.h
395         include/gras/emul.h
396         include/gras/process.h
397         include/gras/module.h
398         include/gras/messages.h
399         include/gras/timer.h
400         include/amok/peermanagement.h
401         include/amok/bandwidth.h
402         include/instr/instr.h
403         ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid_config.h
404         include/gras.h 
405         include/xbt.h
406         include/simix/simix.h
407         include/simix/datatypes.h
408         include/simix/context.h
409 )
410
411 ### depend of some variables setted upper
412 # -->CONTEXT_THREADS CONTEXT_UCONTEXT
413 if(${CONTEXT_THREADS}) #pthread
414         set(SURF_SRC
415                 ${SURF_SRC}
416                 src/xbt/xbt_os_thread.c
417                 src/simix/smx_context_thread.c
418                 )
419 else(${CONTEXT_THREADS}) # NOT pthread
420         set(EXTRA_DIST
421                 ${EXTRA_DIST}
422                 src/xbt/xbt_os_thread.c
423                 src/simix/smx_context_thread.c
424                 )
425 endif(${CONTEXT_THREADS})
426
427 if(${CONTEXT_UCONTEXT}) #ucontext
428         set(SURF_SRC
429                 ${SURF_SRC}
430                 src/simix/smx_context_sysv.c
431         )
432 else(${CONTEXT_UCONTEXT}) # NOT ucontext
433         set(EXTRA_DIST
434                 ${EXTRA_DIST}
435                 src/simix/smx_context_sysv.c
436         )
437 endif(${CONTEXT_UCONTEXT})
438
439 # -->HAVE_GTNETS
440 if(HAVE_GTNETS)
441         set(GTNETS_USED 
442                 ${GTNETS_SRC}
443         )
444 else(HAVE_GTNETS)
445         set(GTNETS_USED "")
446         set(EXTRA_DIST
447                 ${EXTRA_DIST}
448                 ${GTNETS_SRC}
449         )
450 endif(HAVE_GTNETS)
451
452 ### Simgrid Lib sources
453 set(simgrid_sources
454         ${XBT_SRC}
455         ${SURF_SRC}
456         ${GTNETS_USED}
457         ${SIMIX_SRC}
458         ${MSG_SRC}
459         ${TRACING_SRC}
460         ${SIMDAG_SRC}
461         ${GRAS_COMMON_SRC}
462         ${GRAS_SG_SRC}
463         ${AMOK_SRC}
464         ${JEDULE_SRC}
465         ${RNGSTREAM_SRC}
466 )
467
468 if(HAVE_MC)
469         set(simgrid_sources
470                 ${simgrid_sources}
471                 ${MC_SRC}
472                 )
473 endif(HAVE_MC)
474
475 # WINDOWS
476 if(WIN32)
477         set(simgrid_sources
478                 ${simgrid_sources}
479                 src/xbt/win32_ucontext.c
480                 src/xbt/xbt_os_thread.c
481                 src/simix/smx_context_thread.c
482                 )
483 endif(WIN32)
484
485 ### Gras Lib sources
486 set(gras_sources
487         ${XBT_SRC}
488         ${GRAS_COMMON_SRC}
489         ${GRAS_RL_SRC}
490         ${AMOK_SRC}
491 )
492
493 if(${HAVE_LUA})
494         set(simgrid_sources
495                 ${simgrid_sources}
496                 ${LUA_SRC}
497         )
498 elseif(${HAVE_LUA})
499         set(EXTRA_DIST
500                 ${EXTRA_DIST}
501                 ${LUA_SRC}
502         )
503 endif(${HAVE_LUA})
504
505 file(GLOB_RECURSE examples_to_install_in_doc
506 "examples/*.c"
507 "examples/*.h"
508 "examples/*.cxx"
509 "examples/*.hpp"
510 "examples/*.rb"
511 "examples/*.lua"
512 "examples/*.java"
513 "examples/*.xml"
514 "examples/*README"
515 )
516
517 set(DOC_SOURCES
518         doc/contrib.doc
519     doc/FAQ.doc
520         doc/gtut-howto-design.doc
521         doc/gtut-howto.doc
522         doc/gtut-introduction.doc
523         doc/gtut-main.doc
524         doc/gtut-tour-01-bones.doc
525         doc/gtut-tour-02-simple.doc
526         doc/gtut-tour-03-args.doc
527         doc/gtut-tour-04-callback.doc
528         doc/gtut-tour-05-globals.doc
529         doc/gtut-tour-06-logs.doc
530         doc/gtut-tour-07-timers.doc
531         doc/gtut-tour-08-exceptions.doc
532         doc/gtut-tour-09-simpledata.doc
533         doc/gtut-tour-10-rpc.doc
534         doc/gtut-tour-11-explicitwait.doc
535         doc/gtut-tour-12-staticstruct.doc
536         doc/gtut-tour-13-pointers.doc
537         doc/gtut-tour-14-dynar.doc
538         doc/gtut-tour-15-manualdatadef.doc
539         doc/gtut-tour-16-exchangecb.doc
540         doc/gtut-tour.doc
541         doc/gtut-tour-recap-messages.doc
542         doc/history.doc
543         #doc/index-API.doc
544         doc/index.doc
545         doc/module-amok.doc
546         doc/module-gras.doc
547         doc/module-msg.doc
548         doc/module-sd.doc
549         doc/modules.doc
550         doc/module-surf.doc
551         doc/module-xbt.doc
552         doc/people.doc  
553         doc/publis.doc
554         
555         doc/gtut-files/01-bones.c
556         doc/gtut-files/01-bones.output
557         doc/gtut-files/02-simple.c
558         doc/gtut-files/02-simple.output
559         doc/gtut-files/03-args.c
560         doc/gtut-files/03-args.output
561         doc/gtut-files/03-args.xml
562         doc/gtut-files/04-callback.c
563         doc/gtut-files/04-callback.output
564         doc/gtut-files/05-globals.c
565         doc/gtut-files/05-globals.output
566         doc/gtut-files/06-logs.c
567         doc/gtut-files/06-logs.output
568         doc/gtut-files/06-logs.output.error
569         doc/gtut-files/06-logs.output.fmt
570         doc/gtut-files/06-logs.output.fmt-bt
571         doc/gtut-files/06-logs.output.verbose
572         doc/gtut-files/07-timers.c
573         doc/gtut-files/07-timers.output
574         doc/gtut-files/08-exceptions.c
575         doc/gtut-files/08-exceptions.output
576         doc/gtut-files/09-datatype-dump.c
577         doc/gtut-files/09-simpledata.c
578         doc/gtut-files/09-simpledata.output
579         doc/gtut-files/10-rpc.c
580         doc/gtut-files/10-rpc.output
581         doc/gtut-files/11-explicitwait.c
582         doc/gtut-files/11-explicitwait.output
583         doc/gtut-files/11-explicitwait.xml
584         doc/gtut-files/gtut-platform-3nodes.xml
585         doc/gtut-files/gtut-platform.xml
586         doc/gtut-files/Makefile
587         doc/gtut-files/README
588         doc/gtut-files/test.xml
589         
590         doc/webcruft/awstats_logo3.png
591         doc/webcruft/Paje_MSG_screenshot.jpg
592         doc/webcruft/Paje_MSG_screenshot_thn.jpg
593         doc/webcruft/poster_thumbnail.png
594         doc/webcruft/robots.txt
595         doc/webcruft/simgrid_logo.png
596         doc/webcruft/simgrid_logo_small.png
597         
598         doc/Doxyfile.in
599         doc/footer.html.in
600         
601         tools/doxygen/bibtex2html_table_count.pl
602         tools/doxygen/doxygen_postprocesser.pl
603         tools/doxygen/index_create.pl
604         tools/doxygen/toc_create.pl
605         tools/doxygen/bibtex2html_wrapper.pl
606         tools/doxygen/fig2dev_postprocessor.pl
607         tools/doxygen/index_php.pl
608         tools/doxygen/xbt_log_extract_hierarchy.pl
609 )
610
611 set(DOC_FIGS
612         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules.fig
613         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules2.fig
614         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_test.fig
615         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_sat.fig
616         ${CMAKE_HOME_DIRECTORY}/doc/fig/gras_comm.fig
617 )
618
619 file(GLOB_RECURSE add_src_files
620 "teshsuite/*.c"
621 "teshsuite/*.cxx"
622 "teshsuite/*CMakeLists.txt"
623 "testsuite/*.c"
624 "testsuite/*.cxx"
625 "testsuite/*CMakeLists.txt"
626 "tools/*.c"
627 "tools/*.cxx"
628 "tools/*CMakeLists.txt"
629 "examples/*.c"
630 "examples/*.cxx"
631 "examples/*.lua"
632 "examples/*.rb"
633 "examples/*CMakeLists.txt"
634 "src/bindings/*.lua"
635 "src/bindings/*.rb"
636 "src/bindings/*.c"
637 "src/bindings/*.h"
638 "src/bindings/*CMakeLists.txt"
639 )
640 set(add_src_files
641         ${add_src_files}
642         CMakeLists.txt
643         src/smpi/smpicc.in
644         src/smpi/smpif2c.in
645         src/smpi/smpiff.in
646         src/smpi/smpirun.in
647         src/simix/smx_context_sysv_private.h
648 )
649
650 file(GLOB_RECURSE include_files
651 "include/*.h"
652 "teshsuite/*.h"
653 "testsuite/*.h"
654 "tools/*.h"
655 "examples/*.h"
656 "examples/*.hpp"
657 "src/*.h.in"
658 "include/*.h.in"
659 )
660
661 file(GLOB_RECURSE xml_files
662 "examples/*.xml"
663 "include/*.xml"
664 "src/*.xml"
665 "teshsuite/*.xml"
666 "testsuite/*.xml"
667 "tools/*.xml"
668 )
669
670 file(GLOB_RECURSE tesh_files
671 "examples/*.tesh"
672 "include/*.tesh"
673 "src/*.tesh"
674 "teshsuite/*.tesh"
675 "testsuite/*.tesh"
676 "tools/*.tesh"
677 )
678
679 set(txt_files
680 "testsuite/surf/trace_A_failure.txt"
681 "testsuite/surf/trace_A.txt"
682 "testsuite/surf/trace_B.txt"
683 "examples/smpi/hostfile"
684 "examples/msg/procmig.trace"
685 "examples/msg/volume.trace"
686 "examples/msg/ms.trace"
687 "examples/msg/trace/file.trace"
688 "examples/msg/link5_state.trace"
689 "examples/msg/categories.trace"
690 "examples/msg/tasks.trace"
691 "examples/msg/fafard_state.trace"
692 "examples/msg/jupiter_state.trace"
693 "examples/msg/actions/actions_allReduce.txt"
694 "examples/msg/actions/actions_reduce.txt"
695 "examples/msg/actions/actions.txt"
696 "examples/msg/actions/actions_barrier.txt"
697 "examples/msg/actions/actions_split_p0.txt"
698 "examples/msg/actions/actions_with_isend.txt"
699 "examples/msg/actions/actions_bcast.txt"
700 "examples/msg/actions/actions_split_p1.txt"
701 "examples/msg/actions/CMakeLists.txt"
702 "examples/msg/migration/migration.deploy"
703 "teshsuite/gras/datadesc/datadesc.little32_4"
704 "teshsuite/gras/datadesc/datadesc.little64"
705 "teshsuite/gras/datadesc/datadesc.big32_8_4"
706 "teshsuite/gras/datadesc/mk_datadesc_structs.pl"
707 "teshsuite/gras/msg_handle/test_rl.tesh"
708 "teshsuite/gras/msg_handle/test_sg_32.tesh"
709 "teshsuite/gras/msg_handle/test_sg_64.tesh"
710 "teshsuite/gras/empty_main/test_rl.tesh"
711 "teshsuite/gras/empty_main/test_sg.tesh"
712 "teshsuite/gras/small_sleep/test_sg_32.tesh"
713 "teshsuite/gras/small_sleep/test_sg_64.tesh"
714 "teshsuite/simdag/platforms/bob.fail"
715 "teshsuite/simdag/platforms/bob.trace"
716 "teshsuite/simdag/platforms/link1.bw"
717 "teshsuite/simdag/platforms/link1.fail"
718 "teshsuite/simdag/platforms/link1.lat"
719 "examples/gras/ping/test_rl.tesh"
720 "examples/gras/rpc/test_rl.tesh"
721 "examples/gras/spawn/test_rl.tesh"
722 "examples/gras/timer/test_rl.tesh"
723 "examples/gras/chrono/test_rl.tesh"
724 "examples/gras/mutual_exclusion/simple_token/test_rl.tesh"
725 "examples/gras/mmrpc/test_rl.tesh"
726 "examples/gras/all2all/test_rl.tesh"
727 "examples/gras/pmm/test_rl.tesh"
728 "examples/gras/synchro/test_rl.tesh"
729 "examples/gras/properties/test_rl.tesh"
730 "examples/gras/ping/test_sg_32.tesh"
731 "examples/gras/rpc/test_sg_32.tesh"
732 "examples/gras/spawn/test_sg_32.tesh"
733 "examples/gras/timer/test_sg_32.tesh"
734 "examples/gras/chrono/test_sg_32.tesh"
735 "examples/gras/mutual_exclusion/simple_token/test_sg_32.tesh"
736 "examples/gras/mmrpc/test_sg_32.tesh"
737 "examples/gras/all2all/test_sg_32.tesh"
738 "examples/gras/pmm/test_sg_32.tesh"
739 "examples/gras/synchro/test_sg_32.tesh"
740 "examples/gras/ping/test_sg_64.tesh"
741 "examples/gras/rpc/test_sg_64.tesh"
742 "examples/gras/spawn/test_sg_64.tesh"
743 "examples/gras/timer/test_sg_64.tesh"
744 "examples/gras/chrono/test_sg_64.tesh"
745 "examples/gras/mutual_exclusion/simple_token/test_sg_64.tesh"
746 "examples/gras/mmrpc/test_sg_64.tesh"
747 "examples/gras/all2all/test_sg_64.tesh"
748 "examples/gras/pmm/test_sg_64.tesh"
749 "examples/gras/synchro/test_sg_64.tesh"
750 "examples/gras/properties/test_sg.tesh"
751 )
752
753 set(txt_files
754         ${txt_files}
755         AUTHORS
756         ChangeLog
757         COPYING
758         LICENSE-LGPL-2.1
759         NEWS
760         TODO
761         configure
762         INSTALL
763 )
764
765 file(GLOB_RECURSE README_files
766 "*README"
767 )
768         
769 string(REPLACE "${CMAKE_HOME_DIRECTORY}/" "" README_files "${README_files}")
770
771 file(GLOB_RECURSE CMAKE_SOURCE_FILES
772 "buildtools/Cmake/test_java.sh"
773 "buildtools/Cmake/*.cmake"
774 "buildtools/Cmake/*.h.in"
775 "buildtools/Cmake/*.pl"
776 "buildtools/Cmake/*.sh"
777 "buildtools/Cmake/test_prog/*.c"
778 "buildtools/Cmake/test_prog/*.cpp"
779 )
780
781 set(bin_files
782 tools/MSG_visualization/colorize.pl
783 tools/sg_unit_extractor.pl
784 tools/simgrid_update_xml.pl
785 buildtools/Cmake/tesh.pl
786 )
787
788 # This is the complete lise of what will be added to the source archive
789 set(source_to_pack      
790         ${XBT_RL_SRC}
791         ${EXTRA_DIST}
792         ${SMPI_SRC}
793         ${GRAS_RL_SRC}
794         ${XBT_SRC}
795         ${GTNETS_SRC}
796         ${SURF_SRC}
797         ${SIMIX_SRC}
798         ${TRACING_SRC}
799         ${MSG_SRC}
800         ${SIMDAG_SRC}
801         ${GRAS_COMMON_SRC}
802         ${GRAS_SG_SRC}
803         ${AMOK_SRC}
804         ${LUA_SRC}
805         ${MC_SRC}
806         ${JEDULE_SRC}
807         ${RNGSTREAM_SRC}
808         ${add_src_files}
809         ${include_files}
810         ${xml_files}
811         ${tesh_files}
812         ${txt_files}
813         ${EXTRA_DIST}
814         ${CMAKE_SOURCE_FILES}
815         ${bin_files}
816         ${DOC_SOURCES}
817         ${DOC_FIGS}
818         ${README_files}
819 )