Logo AND Algorithmique Numérique Distribuée

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