Logo AND Algorithmique Numérique Distribuée

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