Logo AND Algorithmique Numérique Distribuée

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