Logo AND Algorithmique Numérique Distribuée

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