Logo AND Algorithmique Numérique Distribuée

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