Logo AND Algorithmique Numérique Distribuée

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