Logo AND Algorithmique Numérique Distribuée

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