Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
4708dd7f6b1f6135941fedeb7b0b240eee3c23aa
[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/mmalloc/attach.c
20         src/xbt/mmalloc/detach.c        
21         src/xbt/mmalloc/keys.c
22         src/xbt/mmalloc/mcalloc.c
23         src/xbt/mmalloc/mfree.c
24         src/xbt/mmalloc/mm_legacy.c             
25         src/xbt/mmalloc/mm.c
26         src/xbt/mmalloc/mmalloc.c
27         src/xbt/mmalloc/mmap-sup.c
28         src/xbt/mmalloc/mmcheck.c
29         src/xbt/mmalloc/mmemalign.c
30         src/xbt/mmalloc/mmprivate.h
31         src/xbt/mmalloc/mmstats.c
32         src/xbt/mmalloc/mmtrace.c
33         src/xbt/mmalloc/mrealloc.c
34         src/xbt/mmalloc/mvalloc.c
35         src/xbt/mmalloc/sbrk-sup.c
36         src/xbt/mmalloc/test/mmalloc_test.c
37         src/surf/maxmin_private.h
38         src/surf/trace_mgr_private.h
39         src/surf/surf_private.h
40         src/surf/surfxml_parse.c
41         src/surf/simgrid_dtd.c
42         src/surf/simgrid.dtd
43         src/surf/network_private.h
44         src/surf/network_gtnets_private.h
45         src/surf/gtnets/gtnets_interface.h
46         src/surf/gtnets/gtnets_simulator.h
47         src/surf/gtnets/gtnets_topology.h
48         src/surf/cpu_ti_private.h
49         src/surf/surf_routing_private.h
50         src/include/simgrid/platf_interface.h
51         src/include/surf/surf_resource.h
52         src/include/surf/datatypes.h
53         src/include/surf/maxmin.h
54         src/include/surf/trace_mgr.h
55         src/include/surf/surf.h
56         src/include/surf/surfxml_parse_values.h
57         src/include/surf/random_mgr.h
58         src/include/surf/surf_resource_lmm.h
59         src/include/xbt/wine_dbghelp.h
60         src/include/xbt/xbt_os_time.h
61         src/include/xbt/xbt_os_thread.h
62         src/include/mc/datatypes.h
63         src/include/mc/mc.h
64         src/include/simix/context.h
65         src/msg/msg_private.h
66         src/msg/msg_mailbox.h
67         src/simdag/private.h
68         src/simdag/dax.dtd
69         src/simdag/dax_dtd.h
70         src/simdag/dax_dtd.c
71         src/gras/DataDesc/ddt_parse.yy.l
72         src/gras/DataDesc/ddt_parse.yy.h
73         src/gras/Virtu/virtu_rl.h
74         src/gras/Virtu/virtu_sg.h
75         src/gras/Virtu/virtu_interface.h
76         src/gras/Virtu/virtu_private.h
77         src/gras/Transport/transport_interface.h
78         src/amok/Bandwidth/bandwidth_private.h
79         src/amok/amok_modinter.h
80         src/simix/private.h
81         src/simix/process_private.h
82         src/simix/host_private.h
83         src/simix/network_private.h
84         src/simix/smurf_private.h
85         src/simix/synchro_private.h
86         
87         src/smpi/private.h
88         src/smpi/smpi_mpi_dt_private.h
89         src/smpi/README
90         src/mk_supernovae.pl
91         
92         examples/gras/ping/ping.h
93         examples/gras/console/ping.h
94         examples/gras/mmrpc/mmrpc.h
95
96         tools/gras/gras_stub_generator.h
97         tools/tesh/run_context.h  
98         tools/tesh/tesh.h
99         
100         src/surf/network_ns3_private.h
101         src/surf/ns3/ns3_interface.h
102         src/surf/ns3/ns3_simulator.h
103         src/surf/ns3/my-point-to-point-helper.h
104         src/surf/ns3/red-queue.h
105 )
106
107 set(XBT_RL_SRC 
108         src/xbt/xbt_rl_synchro.c
109         src/xbt/xbt_rl_time.c
110 )
111
112 set(XBT_SG_SRC 
113         src/xbt/xbt_sg_synchro.c
114         src/xbt/xbt_sg_time.c
115 )     
116
117 set(SMPI_SRC
118         src/smpi/smpi_base.c
119         src/smpi/smpi_bench.c
120         src/smpi/smpi_global.c
121         src/smpi/smpi_mpi.c
122         src/smpi/smpi_pmpi.c
123         src/smpi/smpi_c99.c
124         src/smpi/smpi_f77.c
125         src/smpi/smpi_comm.c
126         src/smpi/smpi_group.c
127         src/smpi/smpi_coll.c
128         src/smpi/smpi_mpi_dt.c
129 )
130
131
132 set(GRAS_RL_SRC
133         src/gras/rl_stubs.c
134         src/xbt/xbt_os_thread.c
135         src/gras/Transport/rl_transport.c
136         src/gras/Transport/transport_plugin_file.c
137         src/gras/Transport/transport_plugin_tcp.c
138         src/gras/Virtu/rl_emul.c
139         src/gras/Virtu/rl_process.c
140         src/gras/Virtu/rl_dns.c
141         src/gras/Msg/rl_msg.c
142         ${XBT_RL_SRC}
143 )
144
145 set(XBT_SRC 
146         src/xbt/snprintf.c
147         src/xbt/xbt_str.c
148         src/xbt/xbt_strbuff.c
149         src/xbt/xbt_sha.c
150         src/xbt/ex.c
151         src/xbt_modinter.h
152         src/gras_modinter.h
153         src/xbt/xbt_virtu.c
154         src/xbt/xbt_os_time.c
155         src/xbt/log.c
156         src/xbt/xbt_log_appender_file.c
157         src/xbt/xbt_log_layout_simple.c
158         src/xbt/xbt_log_layout_format.c
159         src/xbt/mallocator.c
160         src/xbt/dynar.c
161         src/xbt/dict.c
162         src/xbt/dict_elm.c
163         src/xbt/dict_cursor.c
164         src/xbt/dict_multi.c
165         src/xbt/heap.c
166         src/xbt/fifo.c
167         src/xbt/swag.c
168         src/xbt/graph.c
169         src/xbt/set.c
170         src/xbt/xbt_matrix.c
171         src/xbt/xbt_queue.c
172         src/xbt/xbt_synchro.c
173         src/xbt/xbt_peer.c
174         src/xbt/xbt_main.c
175         src/xbt/config.c
176         src/xbt/cunit.c
177         src/xbt/graphxml_parse.c
178         src/xbt/setset.c
179         src/xbt/parmap.c
180         src/xbt/xbt_replay_trace_reader.c
181         src/xbt/lib.c
182 )
183
184 if(HAVE_MMAP)
185         set(XBT_SRC
186         ${XBT_SRC}
187         src/xbt/mmalloc/mm.c    
188         )
189 endif(HAVE_MMAP)
190
191 set(GTNETS_SRC 
192         src/surf/gtnets/gtnets_simulator.cc
193         src/surf/gtnets/gtnets_topology.cc
194         src/surf/gtnets/gtnets_interface.cc
195         src/surf/network_gtnets.c
196 )
197
198 set(NS3_SRC
199         src/surf/network_ns3.c
200         src/surf/ns3/ns3_interface.cc
201         src/surf/ns3/ns3_simulator.cc
202         src/surf/ns3/red-queue.cc
203         src/surf/ns3/my-point-to-point-helper.cc
204 )
205         
206 set(SURF_SRC 
207         src/surf/surf_model.c
208         src/surf/surf_action.c
209         src/surf/surf_routing.c
210         src/surf/surf_routing_none.c
211         src/surf/surf_routing_generic.c
212         src/surf/surf_routing_full.c
213         src/surf/surf_routing_floyd.c
214         src/surf/surf_routing_rulebased.c
215         src/surf/surf_routing_dijkstra.c
216         src/surf/surf_routing_cluster.c
217         src/surf/surf_routing_vivaldi.c
218         src/surf/surf_config.c
219         src/surf/maxmin.c
220         src/surf/fair_bottleneck.c
221         src/surf/lagrange.c
222         src/surf/trace_mgr.c
223         src/surf/random_mgr.c
224         src/surf/surf.c
225         src/surf/surfxml_parse.c
226         src/surf/surfxml_parseplatf.c
227         src/surf/cpu.c
228         src/surf/network.c
229         src/surf/network_im.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_im.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 )
371
372 set(RNGSTREAM_SRC
373         src/rngstreams/RngStream.h
374         src/rngstreams/RngStream.c
375 )
376
377 set(headers_to_install
378         include/xbt/misc.h
379         include/xbt/sysdep.h
380         include/xbt/virtu.h
381         include/xbt/str.h
382         include/xbt/strbuff.h
383         include/xbt/hash.h
384         include/xbt/function_types.h
385         include/xbt/asserts.h 
386         include/xbt/ex.h
387         include/xbt/log.h
388         include/xbt/module.h
389         include/xbt/mallocator.h
390         include/xbt/dynar.h
391         include/xbt/dict.h
392         include/xbt/set.h
393         include/xbt/heap.h
394         include/xbt/graph.h
395         include/xbt/fifo.h
396         include/xbt/swag.h
397         include/xbt/lib.h
398         include/xbt/matrix.h
399         include/xbt/peer.h
400         include/xbt/config.h
401         include/xbt/cunit.h
402         include/xbt/graphxml_parse.h
403         include/xbt/graphxml.h
404         include/xbt/time.h
405         include/xbt/synchro.h
406         include/xbt/synchro_core.h
407         include/xbt/queue.h
408         include/xbt/setset.h
409         include/xbt/mmalloc.h
410         include/xbt/replay_trace_reader.h
411         include/xbt/parmap.h
412         include/simgrid/platf.h
413         include/mc/modelchecker.h
414         include/msg/msg.h
415         include/msg/datatypes.h
416         include/simdag/simdag.h
417         include/simdag/datatypes.h
418         include/smpi/smpi.h
419         include/smpi/mpi.h
420         include/smpi/mpif.h
421         include/smpi/smpi_cocci.h
422         include/surf/surfxml_parse.h
423         include/surf/simgrid_dtd.h
424         include/surf/surf_routing.h
425         include/gras/datadesc.h
426         include/gras/transport.h
427         include/gras/virtu.h
428         include/gras/emul.h
429         include/gras/process.h
430         include/gras/module.h
431         include/gras/messages.h
432         include/gras/timer.h
433         include/amok/peermanagement.h
434         include/amok/bandwidth.h
435         include/instr/instr.h
436         include/gras.h 
437         include/xbt.h
438         include/simix/simix.h
439         include/simix/datatypes.h
440         include/simix/context.h
441 )
442 set(source_of_generated_headers
443         include/simgrid_config.h.in
444         include/smpi/smpif.h.in
445         src/context_sysv_config.h.in)
446
447 ### depend of some variables setted upper
448 # -->CONTEXT_THREADS CONTEXT_UCONTEXT
449 if(${CONTEXT_THREADS}) #pthread
450         set(SURF_SRC
451                 ${SURF_SRC}
452                 src/xbt/xbt_os_thread.c
453                 src/simix/smx_context_thread.c
454                 )
455 else(${CONTEXT_THREADS}) # NOT pthread
456         set(EXTRA_DIST
457                 ${EXTRA_DIST}
458                 src/xbt/xbt_os_thread.c
459                 src/simix/smx_context_thread.c
460                 )
461 endif(${CONTEXT_THREADS})
462
463 if(${CONTEXT_UCONTEXT}) #ucontext
464         set(SURF_SRC
465                 ${SURF_SRC}
466                 src/simix/smx_context_sysv.c
467         )
468 else(${CONTEXT_UCONTEXT}) # NOT ucontext
469         set(EXTRA_DIST
470                 ${EXTRA_DIST}
471                 src/simix/smx_context_sysv.c
472         )
473 endif(${CONTEXT_UCONTEXT})
474
475 # -->HAVE_GTNETS
476 if(HAVE_GTNETS)
477         set(GTNETS_USED 
478                 ${GTNETS_SRC}
479         )
480 else(HAVE_GTNETS)
481         set(GTNETS_USED "")
482         set(EXTRA_DIST
483                 ${EXTRA_DIST}
484                 ${GTNETS_SRC}
485         )
486 endif(HAVE_GTNETS)
487
488 ### Simgrid Lib sources
489 set(simgrid_sources
490         ${XBT_SRC}
491         ${SURF_SRC}
492         ${GTNETS_USED}
493         ${SIMIX_SRC}
494         ${MSG_SRC}
495         ${TRACING_SRC}
496         ${SIMDAG_SRC}
497         ${GRAS_COMMON_SRC}
498         ${GRAS_SG_SRC}
499         ${AMOK_SRC}
500         ${JEDULE_SRC}
501         ${RNGSTREAM_SRC}
502 )
503
504 if(HAVE_MC)
505         set(simgrid_sources
506                 ${simgrid_sources}
507                 ${MC_SRC}
508                 )
509 endif(HAVE_MC)
510
511 if(HAVE_NS3)
512         set(simgrid_sources
513                 ${simgrid_sources}
514                 ${NS3_SRC}
515         )
516 endif(HAVE_NS3)
517
518 # WINDOWS
519 if(WIN32)
520         set(simgrid_sources
521                 ${simgrid_sources}
522                 src/xbt/win32_ucontext.c
523                 src/xbt/xbt_os_thread.c
524                 src/simix/smx_context_thread.c
525                 )
526 endif(WIN32)
527
528 ### Gras Lib sources
529 set(gras_sources
530         ${XBT_SRC}
531         ${GRAS_COMMON_SRC}
532         ${GRAS_RL_SRC}
533         ${AMOK_SRC}
534 )
535
536 if(${HAVE_LUA})
537         set(simgrid_sources
538                 ${simgrid_sources}
539                 ${LUA_SRC}
540         )
541 elseif(${HAVE_LUA})
542         set(EXTRA_DIST
543                 ${EXTRA_DIST}
544                 ${LUA_SRC}
545         )
546 endif(${HAVE_LUA})
547
548 file(GLOB_RECURSE examples_to_install_in_doc
549 "examples/*.c"
550 "examples/*.h"
551 "examples/*.cxx"
552 "examples/*.hpp"
553 "examples/*.rb"
554 "examples/*.lua"
555 "examples/*.java"
556 "examples/*.xml"
557 "examples/*README"
558 )
559
560
561     
562 set(DOC_SOURCES
563         doc/installSimgrid.doc
564         doc/bindings.doc
565         doc/options.doc
566         doc/use.doc
567         doc/tracing.doc
568         doc/pls.doc
569         doc/gtut-howto-design.doc
570         doc/gtut-howto.doc
571         doc/gtut-introduction.doc
572         doc/gtut-main.doc
573         doc/gtut-tour-00-install.doc
574         doc/gtut-tour-01-bones.doc
575         doc/gtut-tour-02-simple.doc
576         doc/gtut-tour-03-args.doc
577         doc/gtut-tour-04-callback.doc
578         doc/gtut-tour-05-globals.doc
579         doc/gtut-tour-06-logs.doc
580         doc/gtut-tour-07-timers.doc
581         doc/gtut-tour-08-exceptions.doc
582         doc/gtut-tour-09-simpledata.doc
583         doc/gtut-tour-10-rpc.doc
584         doc/gtut-tour-11-explicitwait.doc
585         doc/gtut-tour-12-staticstruct.doc
586         doc/gtut-tour-13-pointers.doc
587         doc/gtut-tour-14-dynar.doc
588         doc/gtut-tour-15-manualdatadef.doc
589         doc/gtut-tour-16-exchangecb.doc
590         doc/gtut-tour.doc
591         doc/gtut-tour-recap-messages.doc
592         
593         #doc/index-API.doc
594         doc/index.doc
595         doc/module-amok.doc
596         doc/module-gras.doc
597         doc/module-msg.doc
598         doc/module-sd.doc
599         doc/modules.doc
600         doc/module-surf.doc
601         doc/module-xbt.doc
602         
603         doc/gtut-files/01-bones.c
604         doc/gtut-files/01-bones.output
605         doc/gtut-files/02-simple.c
606         doc/gtut-files/02-simple.output
607         doc/gtut-files/03-args.c
608         doc/gtut-files/03-args.output
609         doc/gtut-files/03-args.xml
610         doc/gtut-files/04-callback.c
611         doc/gtut-files/04-callback.output
612         doc/gtut-files/05-globals.c
613         doc/gtut-files/05-globals.output
614         doc/gtut-files/06-logs.c
615         doc/gtut-files/06-logs.output
616         doc/gtut-files/06-logs.output.error
617         doc/gtut-files/06-logs.output.fmt
618         doc/gtut-files/06-logs.output.fmt-bt
619         doc/gtut-files/06-logs.output.verbose
620         doc/gtut-files/07-timers.c
621         doc/gtut-files/07-timers.output
622         doc/gtut-files/08-exceptions.c
623         doc/gtut-files/08-exceptions.output
624         doc/gtut-files/09-datatype-dump.c
625         doc/gtut-files/09-simpledata.c
626         doc/gtut-files/09-simpledata.output
627         doc/gtut-files/10-rpc.c
628         doc/gtut-files/10-rpc.output
629         doc/gtut-files/11-explicitwait.c
630         doc/gtut-files/11-explicitwait.output
631         doc/gtut-files/11-explicitwait.xml
632         doc/gtut-files/gtut-platform-3nodes.xml
633         doc/gtut-files/gtut-platform.xml
634         doc/gtut-files/Makefile
635         doc/gtut-files/README
636         doc/gtut-files/test.xml
637         
638         doc/webcruft/awstats_logo3.png
639         doc/webcruft/Paje_MSG_screenshot.jpg
640         doc/webcruft/Paje_MSG_screenshot_thn.jpg
641         doc/webcruft/poster_thumbnail.png
642         doc/webcruft/simgrid_logo.png
643         doc/webcruft/simgrid_logo_small.png
644         doc/triva-graph_configuration.png
645         doc/triva-graph_visualization.png
646         doc/simgrid.css
647         
648         doc/Doxyfile.in
649         doc/footer.html.in
650         
651         tools/doxygen/doxygen_postprocesser.pl
652         tools/doxygen/index_create.pl
653         tools/doxygen/toc_create.pl
654         tools/doxygen/bibtex2html_wrapper.pl
655         tools/doxygen/fig2dev_postprocessor.pl
656         tools/doxygen/xbt_log_extract_hierarchy.pl
657 )
658
659 set(DOC_FIGS
660         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules.fig
661         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules2.fig
662         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_test.fig
663         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_sat.fig
664         ${CMAKE_HOME_DIRECTORY}/doc/fig/gras_comm.fig
665 )
666
667 file(GLOB_RECURSE add_src_files
668 "teshsuite/*.c"
669 "teshsuite/*.cxx"
670 "teshsuite/*CMakeLists.txt"
671 "testsuite/*.c"
672 "testsuite/*.cxx"
673 "testsuite/*CMakeLists.txt"
674 "tools/*.c"
675 "tools/*.cxx"
676 "tools/*CMakeLists.txt"
677 "examples/*.c"
678 "examples/*.cxx"
679 "examples/*.lua"
680 "examples/*.rb"
681 "examples/*CMakeLists.txt"
682 "src/bindings/*.lua"
683 "src/bindings/*.rb"
684 "src/bindings/*.c"
685 "src/bindings/*.h"
686 "src/bindings/*CMakeLists.txt"
687 )
688 set(add_src_files
689         ${add_src_files}
690         CMakeLists.txt
691         src/smpi/smpicc.in
692         src/smpi/smpif2c.in
693         src/smpi/smpiff.in
694         src/smpi/smpirun.in
695         src/simix/smx_context_sysv_private.h
696 )
697
698 file(GLOB_RECURSE xml_files
699 "examples/*.xml"
700 "include/*.xml"
701 "src/*.xml"
702 "teshsuite/*.xml"
703 "testsuite/*.xml"
704 "tools/*.xml"
705 )
706
707 file(GLOB_RECURSE tesh_files
708 "examples/*.tesh"
709 "include/*.tesh"
710 "src/*.tesh"
711 "teshsuite/*.tesh"
712 "testsuite/*.tesh"
713 "tools/*.tesh"
714 )
715
716 set(txt_files
717 "testsuite/surf/trace_A_failure.txt"
718 "testsuite/surf/trace_A.txt"
719 "testsuite/surf/trace_B.txt"
720 "examples/smpi/hostfile"
721 "examples/msg/trace/file.trace"
722 "examples/msg/link5_state.trace"
723 "examples/msg/fafard_state.trace"
724 "examples/msg/jupiter_state.trace"
725 "examples/msg/actions/actions_allReduce.txt"
726 "examples/msg/actions/actions_reduce.txt"
727 "examples/msg/actions/actions.txt"
728 "examples/msg/actions/actions_barrier.txt"
729 "examples/msg/actions/actions_split_p0.txt"
730 "examples/msg/actions/actions_with_isend.txt"
731 "examples/msg/actions/actions_bcast.txt"
732 "examples/msg/actions/actions_split_p1.txt"
733 "examples/msg/actions/CMakeLists.txt"
734 "examples/msg/migration/migration.deploy"
735 "teshsuite/gras/datadesc/datadesc.little32_4"
736 "teshsuite/gras/datadesc/datadesc.little64"
737 "teshsuite/gras/datadesc/datadesc.big32_8_4"
738 "teshsuite/gras/datadesc/mk_datadesc_structs.pl"
739 "teshsuite/gras/msg_handle/test_rl.tesh"
740 "teshsuite/gras/msg_handle/test_sg_32.tesh"
741 "teshsuite/gras/msg_handle/test_sg_64.tesh"
742 "teshsuite/gras/empty_main/test_rl.tesh"
743 "teshsuite/gras/empty_main/test_sg.tesh"
744 "teshsuite/gras/small_sleep/test_sg_32.tesh"
745 "teshsuite/gras/small_sleep/test_sg_64.tesh"
746 "teshsuite/simdag/platforms/bob.fail"
747 "teshsuite/simdag/platforms/bob.trace"
748 "teshsuite/simdag/platforms/bob0_availability_file.trace"
749 "teshsuite/simdag/platforms/bob0_state_file.trace"
750 "teshsuite/simdag/platforms/bob2_availability_file.trace"
751 "teshsuite/simdag/platforms/bob2_state_file.trace"
752 "teshsuite/simdag/platforms/link1.bw"
753 "teshsuite/simdag/platforms/link1.fail"
754 "teshsuite/simdag/platforms/link1.lat"
755 "examples/gras/ping/test_rl.tesh"
756 "examples/gras/rpc/test_rl.tesh"
757 "examples/gras/spawn/test_rl.tesh"
758 "examples/gras/timer/test_rl.tesh"
759 "examples/gras/chrono/test_rl.tesh"
760 "examples/gras/mutual_exclusion/simple_token/test_rl.tesh"
761 "examples/gras/mmrpc/test_rl.tesh"
762 "examples/gras/all2all/test_rl.tesh"
763 "examples/gras/pmm/test_rl.tesh"
764 "examples/gras/synchro/test_rl.tesh"
765 "examples/gras/properties/test_rl.tesh"
766 "examples/gras/ping/test_sg_32.tesh"
767 "examples/gras/rpc/test_sg_32.tesh"
768 "examples/gras/spawn/test_sg_32.tesh"
769 "examples/gras/timer/test_sg_32.tesh"
770 "examples/gras/chrono/test_sg_32.tesh"
771 "examples/gras/mutual_exclusion/simple_token/test_sg_32.tesh"
772 "examples/gras/mmrpc/test_sg_32.tesh"
773 "examples/gras/all2all/test_sg_32.tesh"
774 "examples/gras/pmm/test_sg_32.tesh"
775 "examples/gras/synchro/test_sg_32.tesh"
776 "examples/gras/ping/test_sg_64.tesh"
777 "examples/gras/rpc/test_sg_64.tesh"
778 "examples/gras/spawn/test_sg_64.tesh"
779 "examples/gras/timer/test_sg_64.tesh"
780 "examples/gras/chrono/test_sg_64.tesh"
781 "examples/gras/mutual_exclusion/simple_token/test_sg_64.tesh"
782 "examples/gras/mmrpc/test_sg_64.tesh"
783 "examples/gras/all2all/test_sg_64.tesh"
784 "examples/gras/pmm/test_sg_64.tesh"
785 "examples/gras/synchro/test_sg_64.tesh"
786 "examples/gras/properties/test_sg.tesh"
787 )
788
789 set(txt_files
790         ${txt_files}
791         AUTHORS
792         ChangeLog
793         COPYING
794         LICENSE-LGPL-2.1
795         NEWS
796         TODO
797         configure
798         INSTALL
799 )
800
801 file(GLOB_RECURSE README_files
802 "*README"
803 )
804         
805 string(REPLACE "${CMAKE_HOME_DIRECTORY}/" "" README_files "${README_files}")
806
807 file(GLOB_RECURSE CMAKE_SOURCE_FILES
808 "buildtools/Cmake/Makefile.default"
809 "buildtools/Cmake/test_java.sh"
810 "buildtools/Cmake/*.cmake"
811 "buildtools/Cmake/*.h.in"
812 "buildtools/Cmake/*.pl"
813 "buildtools/Cmake/*.sh"
814 "buildtools/Cmake/test_prog/*.c"
815 "buildtools/Cmake/test_prog/*.cpp"
816 )
817
818 set(bin_files
819 tools/MSG_visualization/colorize.pl
820 tools/sg_unit_extractor.pl
821 tools/simgrid_update_xml.pl
822 buildtools/Cmake/tesh.pl
823 )
824
825 # This is the complete list of what will be added to the source archive
826 set(source_to_pack      
827         ${headers_to_install}
828         ${source_of_generated_headers}
829         ${XBT_RL_SRC}
830         ${EXTRA_DIST}
831         ${SMPI_SRC}
832         ${GRAS_RL_SRC}
833         ${XBT_SRC}
834         ${GTNETS_SRC}
835         ${NS3_SRC}
836         ${SURF_SRC}
837         ${SIMIX_SRC}
838         ${TRACING_SRC}
839         ${MSG_SRC}
840         ${SIMDAG_SRC}
841         ${GRAS_COMMON_SRC}
842         ${GRAS_SG_SRC}
843         ${AMOK_SRC}
844         ${LUA_SRC}
845         ${MC_SRC}
846         ${JEDULE_SRC}
847         ${RNGSTREAM_SRC}
848         ${add_src_files}
849         ${xml_files}
850         ${tesh_files}
851         ${txt_files}
852         ${CMAKE_SOURCE_FILES}
853         ${bin_files}
854         ${DOC_SOURCES}
855         ${DOC_FIGS}
856         ${README_files}
857         buildtools/Cmake/simgrid.nsi.in 
858 )