Logo AND Algorithmique Numérique Distribuée

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