Logo AND Algorithmique Numérique Distribuée

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