Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8378442652067b5ac6a3ffd822efc4ac9b593e41
[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_routing_full.c
191         src/surf/surf_routing_floyd.c
192         src/surf/surf_routing_rulebased.c
193         src/surf/surf_routing_dijkstra.c
194         src/surf/surf_routing_none.c
195         src/surf/surf_config.c
196         src/surf/maxmin.c
197         src/surf/fair_bottleneck.c
198         src/surf/lagrange.c
199         src/surf/trace_mgr.c
200         src/surf/random_mgr.c
201         src/surf/surf.c
202         src/surf/surfxml_parse.c
203         src/surf/cpu.c
204         src/surf/network.c
205         src/surf/network_im.c
206         src/surf/network_constant.c
207         src/surf/workstation.c
208         src/surf/workstation_ptask_L07.c
209         src/surf/cpu_ti.c
210         src/surf/cpu_im.c
211         src/xbt/xbt_sg_stubs.c
212 )
213
214 set(SIMIX_SRC 
215         src/simix/smx_global.c
216         src/simix/smx_deployment.c
217         src/simix/smx_environment.c
218         src/simix/smx_host.c
219         src/simix/smx_process.c
220         src/simix/smx_context.c
221         src/simix/smx_synchro.c
222         src/simix/smx_network.c
223         src/simix/smx_context_base.c
224         src/simix/smx_user.c
225         src/simix/smx_smurf.c
226         src/simix/smx_context_raw.c
227 )
228
229 set(MSG_SRC
230         src/msg/msg_config.c
231         src/msg/task.c
232         src/msg/host.c
233         src/msg/m_process.c
234         src/msg/gos.c
235         src/msg/global.c
236         src/msg/environment.c
237         src/msg/deployment.c
238         src/msg/msg_mailbox.c
239         src/msg/msg_actions.c
240 )
241
242 set(SIMDAG_SRC
243         src/simdag/sd_global.c
244         src/simdag/sd_link.c
245         src/simdag/sd_task.c
246         src/simdag/sd_workstation.c
247         src/simdag/sd_daxloader.c
248 )
249 if(HAVE_GRAPHVIZ)
250         set(SIMDAG_SRC 
251             ${SIMDAG_SRC} src/simdag/sd_dotloader.c
252         )
253 else(HAVE_GRAPHVIZ)
254         set(EXTRA_DIST
255             ${EXTRA_DIST} src/simdag/sd_dotloader.c
256         )
257 endif(HAVE_GRAPHVIZ)
258
259 set(GRAS_COMMON_SRC
260         src/gras/gras.c
261         src/gras/Transport/transport.c
262         src/gras/Transport/transport_private.h
263         src/gras/Msg/gras_msg_mod.c
264         src/gras/Msg/gras_msg_types.c
265         src/gras/Msg/gras_msg_exchange.c
266         src/gras/Msg/gras_msg_listener.c
267         src/gras/Msg/rpc.c 
268         src/gras/Msg/timer.c
269         src/gras/Msg/msg_interface.h
270         src/gras/Msg/msg_private.h
271         src/gras/Virtu/process.c
272         src/gras/Virtu/gras_module.c
273         src/gras/DataDesc/ddt_create.c
274         src/gras/DataDesc/ddt_convert.c
275         src/gras/DataDesc/ddt_exchange.c
276         src/gras/DataDesc/cbps.c
277         src/gras/DataDesc/datadesc.c
278         src/gras/DataDesc/datadesc_interface.h
279         src/gras/DataDesc/datadesc_private.h
280         src/gras/DataDesc/ddt_parse.c
281         src/gras/DataDesc/ddt_parse.yy.c
282 )
283
284 set(GRAS_SG_SRC
285         src/gras/Transport/sg_transport.c
286         src/gras/Transport/transport_plugin_sg.c
287         src/gras/Virtu/sg_emul.c
288         src/gras/Virtu/sg_process.c
289         src/gras/Virtu/sg_dns.c
290         src/gras/Msg/sg_msg.c
291         ${XBT_SG_SRC}
292 )
293
294 set(AMOK_SRC
295         src/amok/amok_base.c
296         src/amok/Bandwidth/bandwidth.c
297         src/amok/Bandwidth/saturate.c
298         src/amok/PeerManagement/peermanagement.c
299 )
300
301 set(LUA_SRC
302         src/bindings/lua/simgrid_lua.c
303         src/bindings/lua/lua_stub_generator.c
304         src/bindings/lua/lua_console.c
305 )
306
307 set(TRACING_SRC
308         src/instr/instr_routing.c
309         src/instr/instr_config.c
310         src/instr/instr_interface.c
311         src/instr/instr_paje.c
312         src/instr/instr_paje_trace.c
313         src/instr/instr_msg_task.c
314         src/instr/instr_msg_process.c
315         src/instr/instr_msg_volume.c
316         src/instr/instr_smx.c
317         src/instr/instr_surf.c
318         src/instr/instr_smpi.c
319         src/instr/instr_simdag.c
320         src/instr/instr_resource_utilization.c
321         src/instr/instr_private.h
322 )
323
324
325 set(JEDULE_SRC
326         include/instr/jedule/jedule_events.h
327         include/instr/jedule/jedule_output.h
328         include/instr/jedule/jedule_platform.h
329         include/instr/jedule/jedule_sd_binding.h
330         src/instr/jedule/jedule_events.c
331         src/instr/jedule/jedule_output.c
332         src/instr/jedule/jedule_platform.c
333         src/instr/jedule/jedule_sd_binding.c
334 )
335
336 set(MC_SRC
337         src/mc/mc_memory.c
338         src/mc/mc_checkpoint.c
339         src/mc/mc_state.c
340         src/mc/memory_map.c
341         src/mc/mc_global.c
342         src/mc/mc_dpor.c
343         src/mc/mc_request.c
344         src/mc/private.h
345 )
346
347 set(RNGSTREAM_SRC
348         src/rngstreams/RngStream.h
349         src/rngstreams/RngStream.c
350 )
351
352 set(install_HEADERS
353         include/xbt/misc.h
354         include/xbt/sysdep.h
355         include/xbt/virtu.h
356         include/xbt/str.h
357         include/xbt/strbuff.h
358         include/xbt/hash.h
359         include/xbt/function_types.h
360         include/xbt/asserts.h 
361         include/xbt/ex.h
362         include/xbt/log.h
363         include/xbt/module.h
364         include/xbt/mallocator.h
365         include/xbt/dynar.h
366         include/xbt/dict.h
367         include/xbt/set.h
368         include/xbt/heap.h
369         include/xbt/graph.h
370         include/xbt/fifo.h
371         include/xbt/swag.h
372         include/xbt/matrix.h
373         include/xbt/peer.h
374         include/xbt/config.h
375         include/xbt/cunit.h
376         include/xbt/graphxml_parse.h
377         include/xbt/graphxml.h
378         include/xbt/time.h
379         include/xbt/synchro.h
380         include/xbt/synchro_core.h
381         include/xbt/queue.h
382         include/xbt/setset.h
383         include/xbt/mmalloc.h
384         include/xbt/replay_trace_reader.h
385         include/xbt/parmap.h
386         include/mc/modelchecker.h
387         include/msg/msg.h
388         include/msg/datatypes.h
389         include/simdag/simdag.h
390         include/simdag/datatypes.h
391         include/smpi/smpi.h
392         ${CMAKE_CURRENT_BINARY_DIR}/include/smpi/smpif.h
393         include/smpi/mpi.h
394         include/smpi/mpif.h
395         include/surf/surfxml_parse.h
396         include/surf/simgrid_dtd.h
397         include/gras/datadesc.h
398         include/gras/transport.h
399         include/gras/virtu.h
400         include/gras/emul.h
401         include/gras/process.h
402         include/gras/module.h
403         include/gras/messages.h
404         include/gras/timer.h
405         include/amok/peermanagement.h
406         include/amok/bandwidth.h
407         include/instr/instr.h
408         ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid_config.h
409         include/gras.h 
410         include/xbt.h
411         include/simix/simix.h
412         include/simix/datatypes.h
413         include/simix/context.h
414 )
415
416 ### depend of some variables setted upper
417 # -->CONTEXT_THREADS CONTEXT_UCONTEXT
418 if(${CONTEXT_THREADS}) #pthread
419         set(SURF_SRC
420                 ${SURF_SRC}
421                 src/xbt/xbt_os_thread.c
422                 src/simix/smx_context_thread.c
423                 )
424 else(${CONTEXT_THREADS}) # NOT pthread
425         set(EXTRA_DIST
426                 ${EXTRA_DIST}
427                 src/xbt/xbt_os_thread.c
428                 src/simix/smx_context_thread.c
429                 )
430 endif(${CONTEXT_THREADS})
431
432 if(${CONTEXT_UCONTEXT}) #ucontext
433         set(SURF_SRC
434                 ${SURF_SRC}
435                 src/simix/smx_context_sysv.c
436         )
437 else(${CONTEXT_UCONTEXT}) # NOT ucontext
438         set(EXTRA_DIST
439                 ${EXTRA_DIST}
440                 src/simix/smx_context_sysv.c
441         )
442 endif(${CONTEXT_UCONTEXT})
443
444 # -->HAVE_GTNETS
445 if(HAVE_GTNETS)
446         set(GTNETS_USED 
447                 ${GTNETS_SRC}
448         )
449 else(HAVE_GTNETS)
450         set(GTNETS_USED "")
451         set(EXTRA_DIST
452                 ${EXTRA_DIST}
453                 ${GTNETS_SRC}
454         )
455 endif(HAVE_GTNETS)
456
457 ### Simgrid Lib sources
458 set(simgrid_sources
459         ${XBT_SRC}
460         ${SURF_SRC}
461         ${GTNETS_USED}
462         ${SIMIX_SRC}
463         ${MSG_SRC}
464         ${TRACING_SRC}
465         ${SIMDAG_SRC}
466         ${GRAS_COMMON_SRC}
467         ${GRAS_SG_SRC}
468         ${AMOK_SRC}
469         ${JEDULE_SRC}
470         ${RNGSTREAM_SRC}
471 )
472
473 if(HAVE_MC)
474         set(simgrid_sources
475                 ${simgrid_sources}
476                 ${MC_SRC}
477                 )
478 endif(HAVE_MC)
479
480 # WINDOWS
481 if(WIN32)
482         set(simgrid_sources
483                 ${simgrid_sources}
484                 src/xbt/win32_ucontext.c
485                 src/xbt/xbt_os_thread.c
486                 src/simix/smx_context_thread.c
487                 )
488 endif(WIN32)
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 file(GLOB_RECURSE examples_to_install_in_doc
511 "examples/*.c"
512 "examples/*.h"
513 "examples/*.cxx"
514 "examples/*.hpp"
515 "examples/*.rb"
516 "examples/*.lua"
517 "examples/*.java"
518 "examples/*.xml"
519 "examples/*README"
520 )
521
522 set(DOC_SOURCES
523         doc/contrib.doc
524     doc/FAQ.doc
525         doc/gtut-howto-design.doc
526         doc/gtut-howto.doc
527         doc/gtut-introduction.doc
528         doc/gtut-main.doc
529         doc/gtut-tour-01-bones.doc
530         doc/gtut-tour-02-simple.doc
531         doc/gtut-tour-03-args.doc
532         doc/gtut-tour-04-callback.doc
533         doc/gtut-tour-05-globals.doc
534         doc/gtut-tour-06-logs.doc
535         doc/gtut-tour-07-timers.doc
536         doc/gtut-tour-08-exceptions.doc
537         doc/gtut-tour-09-simpledata.doc
538         doc/gtut-tour-10-rpc.doc
539         doc/gtut-tour-11-explicitwait.doc
540         doc/gtut-tour-12-staticstruct.doc
541         doc/gtut-tour-13-pointers.doc
542         doc/gtut-tour-14-dynar.doc
543         doc/gtut-tour-15-manualdatadef.doc
544         doc/gtut-tour-16-exchangecb.doc
545         doc/gtut-tour.doc
546         doc/gtut-tour-recap-messages.doc
547         doc/history.doc
548         #doc/index-API.doc
549         doc/index.doc
550         doc/module-amok.doc
551         doc/module-gras.doc
552         doc/module-msg.doc
553         doc/module-sd.doc
554         doc/modules.doc
555         doc/module-surf.doc
556         doc/module-xbt.doc
557         doc/people.doc  
558         doc/publis.doc
559         
560         doc/gtut-files/01-bones.c
561         doc/gtut-files/01-bones.output
562         doc/gtut-files/02-simple.c
563         doc/gtut-files/02-simple.output
564         doc/gtut-files/03-args.c
565         doc/gtut-files/03-args.output
566         doc/gtut-files/03-args.xml
567         doc/gtut-files/04-callback.c
568         doc/gtut-files/04-callback.output
569         doc/gtut-files/05-globals.c
570         doc/gtut-files/05-globals.output
571         doc/gtut-files/06-logs.c
572         doc/gtut-files/06-logs.output
573         doc/gtut-files/06-logs.output.error
574         doc/gtut-files/06-logs.output.fmt
575         doc/gtut-files/06-logs.output.fmt-bt
576         doc/gtut-files/06-logs.output.verbose
577         doc/gtut-files/07-timers.c
578         doc/gtut-files/07-timers.output
579         doc/gtut-files/08-exceptions.c
580         doc/gtut-files/08-exceptions.output
581         doc/gtut-files/09-datatype-dump.c
582         doc/gtut-files/09-simpledata.c
583         doc/gtut-files/09-simpledata.output
584         doc/gtut-files/10-rpc.c
585         doc/gtut-files/10-rpc.output
586         doc/gtut-files/11-explicitwait.c
587         doc/gtut-files/11-explicitwait.output
588         doc/gtut-files/11-explicitwait.xml
589         doc/gtut-files/gtut-platform-3nodes.xml
590         doc/gtut-files/gtut-platform.xml
591         doc/gtut-files/Makefile
592         doc/gtut-files/README
593         doc/gtut-files/test.xml
594         
595         doc/webcruft/awstats_logo3.png
596         doc/webcruft/Paje_MSG_screenshot.jpg
597         doc/webcruft/Paje_MSG_screenshot_thn.jpg
598         doc/webcruft/poster_thumbnail.png
599         doc/webcruft/robots.txt
600         doc/webcruft/simgrid_logo.png
601         doc/webcruft/simgrid_logo_small.png
602         
603         doc/Doxyfile.in
604         doc/footer.html.in
605         
606         tools/doxygen/bibtex2html_table_count.pl
607         tools/doxygen/doxygen_postprocesser.pl
608         tools/doxygen/index_create.pl
609         tools/doxygen/toc_create.pl
610         tools/doxygen/bibtex2html_wrapper.pl
611         tools/doxygen/fig2dev_postprocessor.pl
612         tools/doxygen/index_php.pl
613         tools/doxygen/xbt_log_extract_hierarchy.pl
614 )
615
616 set(DOC_FIGS
617         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules.fig
618         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules2.fig
619         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_test.fig
620         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_sat.fig
621         ${CMAKE_HOME_DIRECTORY}/doc/fig/gras_comm.fig
622 )
623
624 file(GLOB_RECURSE add_src_files
625 "teshsuite/*.c"
626 "teshsuite/*.cxx"
627 "teshsuite/*CMakeLists.txt"
628 "testsuite/*.c"
629 "testsuite/*.cxx"
630 "testsuite/*CMakeLists.txt"
631 "tools/*.c"
632 "tools/*.cxx"
633 "tools/*CMakeLists.txt"
634 "examples/*.c"
635 "examples/*.cxx"
636 "examples/*.lua"
637 "examples/*.rb"
638 "examples/*CMakeLists.txt"
639 "src/bindings/*.lua"
640 "src/bindings/*.rb"
641 "src/bindings/*.c"
642 "src/bindings/*.h"
643 "src/bindings/*CMakeLists.txt"
644 )
645 set(add_src_files
646         ${add_src_files}
647         CMakeLists.txt
648         src/smpi/smpicc.in
649         src/smpi/smpif2c.in
650         src/smpi/smpiff.in
651         src/smpi/smpirun.in
652         src/simix/smx_context_sysv_private.h
653 )
654
655 file(GLOB_RECURSE include_files
656 "include/*.h"
657 "teshsuite/*.h"
658 "testsuite/*.h"
659 "tools/*.h"
660 "examples/*.h"
661 "examples/*.hpp"
662 "src/*.h.in"
663 "include/*.h.in"
664 )
665
666 file(GLOB_RECURSE xml_files
667 "examples/*.xml"
668 "include/*.xml"
669 "src/*.xml"
670 "teshsuite/*.xml"
671 "testsuite/*.xml"
672 "tools/*.xml"
673 )
674
675 file(GLOB_RECURSE tesh_files
676 "examples/*.tesh"
677 "include/*.tesh"
678 "src/*.tesh"
679 "teshsuite/*.tesh"
680 "testsuite/*.tesh"
681 "tools/*.tesh"
682 )
683
684 set(txt_files
685 "testsuite/surf/trace_A_failure.txt"
686 "testsuite/surf/trace_A.txt"
687 "testsuite/surf/trace_B.txt"
688 "examples/smpi/hostfile"
689 "examples/msg/procmig.trace"
690 "examples/msg/volume.trace"
691 "examples/msg/ms.trace"
692 "examples/msg/trace/file.trace"
693 "examples/msg/link5_state.trace"
694 "examples/msg/categories.trace"
695 "examples/msg/tasks.trace"
696 "examples/msg/fafard_state.trace"
697 "examples/msg/jupiter_state.trace"
698 "examples/msg/actions/actions_allReduce.txt"
699 "examples/msg/actions/actions_reduce.txt"
700 "examples/msg/actions/actions.txt"
701 "examples/msg/actions/actions_barrier.txt"
702 "examples/msg/actions/actions_split_p0.txt"
703 "examples/msg/actions/actions_with_isend.txt"
704 "examples/msg/actions/actions_bcast.txt"
705 "examples/msg/actions/actions_split_p1.txt"
706 "examples/msg/actions/CMakeLists.txt"
707 "examples/msg/migration/migration.deploy"
708 "teshsuite/gras/datadesc/datadesc.little32_4"
709 "teshsuite/gras/datadesc/datadesc.little64"
710 "teshsuite/gras/datadesc/datadesc.big32_8_4"
711 "teshsuite/gras/datadesc/mk_datadesc_structs.pl"
712 "teshsuite/gras/msg_handle/test_rl.tesh"
713 "teshsuite/gras/msg_handle/test_sg_32.tesh"
714 "teshsuite/gras/msg_handle/test_sg_64.tesh"
715 "teshsuite/gras/empty_main/test_rl.tesh"
716 "teshsuite/gras/empty_main/test_sg.tesh"
717 "teshsuite/gras/small_sleep/test_sg_32.tesh"
718 "teshsuite/gras/small_sleep/test_sg_64.tesh"
719 "teshsuite/simdag/platforms/bob.fail"
720 "teshsuite/simdag/platforms/bob.trace"
721 "teshsuite/simdag/platforms/link1.bw"
722 "teshsuite/simdag/platforms/link1.fail"
723 "teshsuite/simdag/platforms/link1.lat"
724 "examples/gras/ping/test_rl.tesh"
725 "examples/gras/rpc/test_rl.tesh"
726 "examples/gras/spawn/test_rl.tesh"
727 "examples/gras/timer/test_rl.tesh"
728 "examples/gras/chrono/test_rl.tesh"
729 "examples/gras/mutual_exclusion/simple_token/test_rl.tesh"
730 "examples/gras/mmrpc/test_rl.tesh"
731 "examples/gras/all2all/test_rl.tesh"
732 "examples/gras/pmm/test_rl.tesh"
733 "examples/gras/synchro/test_rl.tesh"
734 "examples/gras/properties/test_rl.tesh"
735 "examples/gras/ping/test_sg_32.tesh"
736 "examples/gras/rpc/test_sg_32.tesh"
737 "examples/gras/spawn/test_sg_32.tesh"
738 "examples/gras/timer/test_sg_32.tesh"
739 "examples/gras/chrono/test_sg_32.tesh"
740 "examples/gras/mutual_exclusion/simple_token/test_sg_32.tesh"
741 "examples/gras/mmrpc/test_sg_32.tesh"
742 "examples/gras/all2all/test_sg_32.tesh"
743 "examples/gras/pmm/test_sg_32.tesh"
744 "examples/gras/synchro/test_sg_32.tesh"
745 "examples/gras/ping/test_sg_64.tesh"
746 "examples/gras/rpc/test_sg_64.tesh"
747 "examples/gras/spawn/test_sg_64.tesh"
748 "examples/gras/timer/test_sg_64.tesh"
749 "examples/gras/chrono/test_sg_64.tesh"
750 "examples/gras/mutual_exclusion/simple_token/test_sg_64.tesh"
751 "examples/gras/mmrpc/test_sg_64.tesh"
752 "examples/gras/all2all/test_sg_64.tesh"
753 "examples/gras/pmm/test_sg_64.tesh"
754 "examples/gras/synchro/test_sg_64.tesh"
755 "examples/gras/properties/test_sg.tesh"
756 )
757
758 set(txt_files
759         ${txt_files}
760         AUTHORS
761         ChangeLog
762         COPYING
763         LICENSE-LGPL-2.1
764         NEWS
765         TODO
766         configure
767         INSTALL
768 )
769
770 file(GLOB_RECURSE README_files
771 "*README"
772 )
773         
774 string(REPLACE "${CMAKE_HOME_DIRECTORY}/" "" README_files "${README_files}")
775
776 file(GLOB_RECURSE CMAKE_SOURCE_FILES
777 "buildtools/Cmake/test_java.sh"
778 "buildtools/Cmake/*.cmake"
779 "buildtools/Cmake/*.h.in"
780 "buildtools/Cmake/*.pl"
781 "buildtools/Cmake/*.sh"
782 "buildtools/Cmake/test_prog/*.c"
783 "buildtools/Cmake/test_prog/*.cpp"
784 )
785
786 set(bin_files
787 tools/MSG_visualization/colorize.pl
788 tools/sg_unit_extractor.pl
789 tools/simgrid_update_xml.pl
790 buildtools/Cmake/tesh.pl
791 )
792
793 # This is the complete lise of what will be added to the source archive
794 set(source_to_pack      
795         ${XBT_RL_SRC}
796         ${EXTRA_DIST}
797         ${SMPI_SRC}
798         ${GRAS_RL_SRC}
799         ${XBT_SRC}
800         ${GTNETS_SRC}
801         ${SURF_SRC}
802         ${SIMIX_SRC}
803         ${TRACING_SRC}
804         ${MSG_SRC}
805         ${SIMDAG_SRC}
806         ${GRAS_COMMON_SRC}
807         ${GRAS_SG_SRC}
808         ${AMOK_SRC}
809         ${LUA_SRC}
810         ${MC_SRC}
811         ${JEDULE_SRC}
812         ${RNGSTREAM_SRC}
813         ${add_src_files}
814         ${include_files}
815         ${xml_files}
816         ${tesh_files}
817         ${txt_files}
818         ${EXTRA_DIST}
819         ${CMAKE_SOURCE_FILES}
820         ${bin_files}
821         ${DOC_SOURCES}
822         ${DOC_FIGS}
823         ${README_files}
824 )