Logo AND Algorithmique Numérique Distribuée

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