Logo AND Algorithmique Numérique Distribuée

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