Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
put sd_dotloader.c in the archive even if I cannot compile it right now
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
index df22a9e..99fe4c8 100644 (file)
@@ -87,7 +87,7 @@ set(EXTRA_DIST
        src/smpi/smpi_coll_private.h
        src/smpi/smpi_mpi_dt_private.h
        src/smpi/README
-       src/mk_supernovae.sh
+       src/mk_supernovae.pl
 )
 
 set(XBT_RL_SRC 
@@ -268,11 +268,16 @@ set(SIMDAG_SRC
        src/simdag/sd_task.c
        src/simdag/sd_workstation.c
        src/simdag/sd_daxloader.c
+       src/simdag/sd_dotloader.c
 )
 if(HAVE_GRAPHVIZ)
        set(SIMDAG_SRC 
            ${SIMDAG_SRC} src/simdag/sd_dotloader.c
        )
+else(HAVE_GRAPHVIZ)
+       set(EXTRA_DIST
+           ${EXTRA_DIST} src/simdag/sd_dotloader.c
+       )
 endif(HAVE_GRAPHVIZ)
 
 set(GRAS_COMMON_SRC
@@ -419,20 +424,6 @@ set(install_HEADERS
        include/xbt.h
 )
 
-set(TEST_CFILES
-       src/xbt/cunit.c
-       src/xbt/ex.c
-       src/xbt/dynar.c
-       src/xbt/dict.c
-       src/xbt/set.c
-       src/xbt/swag.c
-       src/xbt/xbt_str.c
-       src/xbt/xbt_strbuff.c
-       src/xbt/xbt_sha.c
-       src/xbt/config.c
-       src/xbt/xbt_synchro.c
-)
-
 ### depend of some variables setted upper
 # -->CONTEXT_THREADS
 if(${CONTEXT_THREADS}) #pthread
@@ -535,7 +526,6 @@ else(${HAVE_JAVA})
        set(EXTRA_DIST
                ${EXTRA_DIST}
                ${JMSG_C_SRC}
-               ${MSG_SRC}
        )
 endif(${HAVE_JAVA})
 
@@ -563,6 +553,71 @@ file(GLOB_RECURSE examples_to_install_in_doc
 "examples/*.lua"
 "examples/*.java"
 "examples/*.xml"
+"examples/*.txt"
+)
+
+file(GLOB_RECURSE README_examples_files
+"examples/*README"
+)
+
+set(examples_to_install_in_doc
+${examples_to_install_in_doc}
+${README_examples_files}
+)
+
+set(DOC_SOURCES
+       doc/contrib.doc
+    doc/FAQ.doc
+       doc/gtut-howto-design.doc
+       doc/gtut-howto.doc
+       doc/gtut-introduction.doc
+       doc/gtut-main.doc
+       doc/gtut-tour-01-bones.doc
+       doc/gtut-tour-02-simple.doc
+       doc/gtut-tour-03-args.doc
+       doc/gtut-tour-04-callback.doc
+       doc/gtut-tour-05-globals.doc
+       doc/gtut-tour-06-logs.doc
+       doc/gtut-tour-07-timers.doc
+       doc/gtut-tour-08-exceptions.doc
+       doc/gtut-tour-09-simpledata.doc
+       doc/gtut-tour-10-rpc.doc
+       doc/gtut-tour-11-explicitwait.doc
+       doc/gtut-tour-12-staticstruct.doc
+       doc/gtut-tour-13-pointers.doc
+       doc/gtut-tour-14-dynar.doc
+       doc/gtut-tour-15-manualdatadef.doc
+       doc/gtut-tour-16-exchangecb.doc
+       doc/gtut-tour.doc
+       doc/gtut-tour-recap-messages.doc
+       doc/history.doc
+       doc/index-API.doc
+       doc/index.doc
+       doc/module-amok.doc
+       doc/module-gras.doc
+       doc/module-msg.doc
+       doc/module-sd.doc
+       doc/modules.doc
+       doc/module-surf.doc
+       doc/module-xbt.doc
+       doc/people.doc  
+       doc/publis.doc
+       doc/Doxyfile.in
+       tools/doxygen/bibtex2html_table_count.pl
+       tools/doxygen/doxygen_postprocesser.pl
+       tools/doxygen/index_create.pl
+       tools/doxygen/toc_create.pl
+       tools/doxygen/bibtex2html_wrapper.pl
+       tools/doxygen/fig2dev_postprocessor.pl
+       tools/doxygen/index_php.pl
+       tools/doxygen/xbt_log_extract_hierarchy.pl
+)
+set(DOC_FIGS
+       ${PROJECT_DIRECTORY}/doc/fig/simgrid_modules.fig
+       ${PROJECT_DIRECTORY}/doc/fig/simgrid_modules2.fig
+       ${PROJECT_DIRECTORY}/doc/fig/amok_bw_test.fig
+       ${PROJECT_DIRECTORY}/doc/fig/amok_bw_sat.fig
+       ${PROJECT_DIRECTORY}/doc/fig/gras_comm.fig
 )
 
 foreach(file ${examples_to_install_in_doc})
@@ -582,6 +637,7 @@ endforeach(file ${new_examples_to_install_in_doc})
 file(GLOB_RECURSE add_src_files
 "teshsuite/*.c"
 "teshsuite/*.cxx"
+"teshsuite/*CMakeLists.txt"
 "testsuite/*.c"
 "testsuite/*.cxx"
 "testsuite/*CMakeLists.txt"
@@ -608,18 +664,6 @@ set(add_src_files
        src/smpi/smpiff.in
        src/smpi/smpirun.in
        src/simix/smx_context_sysv_private.h
-       src/simgrid_units_main.c
-       src/cunit_unit.c
-       src/ex_unit.c
-       src/dynar_unit.c
-       src/dict_unit.c
-       src/set_unit.c
-       src/swag_unit.c
-       src/xbt_str_unit.c
-       src/xbt_strbuff_unit.c
-       src/xbt_sha_unit.c
-       src/config_unit.c
-       src/xbt_synchro_unit.c
 )
 
 file(GLOB_RECURSE include_files
@@ -656,6 +700,15 @@ file(GLOB_RECURSE txt_files
 "testsuite/simdag/availability_tremblay.txt"
 "examples/smpi/hostfile"
 "examples/msg/*.trace"
+"examples/msg/actions/actions_allReduce.txt"
+"examples/msg/actions/actions_reduce.txt"
+"examples/msg/actions/actions.txt"
+"examples/msg/actions/actions_barrier.txt"
+"examples/msg/actions/actions_split_p0.txt"
+"examples/msg/actions/actions_with_isend.txt"
+"examples/msg/actions/actions_bcast.txt"
+"examples/msg/actions/actions_split_p1.txt"
+"examples/msg/actions/CMakeLists.txt"
 "examples/msg/migration/migration.deploy"
 "examples/java/runtest"
 "teshsuite/gras/datadesc/datadesc.little32_4"
@@ -720,15 +773,16 @@ set(txt_files
        ChangeLog
        COPYING
        LICENSE-LGPL-2.1
-       missing
        NEWS
-       README
-       README.IEEE
        TODO
-       examples/lua/README
-       examples/ruby/README
 )
 
+file(GLOB_RECURSE README_files
+"*README"
+)
+       
+string(REPLACE "${CMAKE_HOME_DIRECTORY}/" "" README_files "${README_files}")
+
 file(GLOB_RECURSE CMAKE_SOURCE_FILES
 "buildtools/Cmake/test_java.sh"
 "buildtools/Cmake/*.cmake"
@@ -771,8 +825,10 @@ set(source_to_pack
        ${xml_files}
        ${tesh_files}
        ${txt_files}
-       ${TEST_CFILES}
        ${EXTRA_DIST}
        ${CMAKE_SOURCE_FILES}
        ${bin_files}
+       ${DOC_SOURCES}
+       ${DOC_FIGS}
+       ${README_files}
 )