From: Martin Quinson Date: Fri, 31 Jan 2020 09:03:13 +0000 (+0100) Subject: lower-case -Denable_msg and improve changelog X-Git-Tag: v3.25~19 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5b7aa1fb7cb5b3c0203d9f504b266528237d264a lower-case -Denable_msg and improve changelog --- diff --git a/.appveyor.yml b/.appveyor.yml index 629c106ee9..7bd35914b4 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -43,7 +43,7 @@ install: - cmd: git clone --depth=1 https://github.com/pybind/pybind11.git build_script: -- cmake -G "MinGW Makefiles" -Denable_lua=OFF -Denable_documentation=OFF -Denable_java=ON -Denable_MSG=ON -Denable_smpi=OFF -Denable_mallocators=OFF -Denable_lto=OFF . +- cmake -G "MinGW Makefiles" -Denable_lua=OFF -Denable_documentation=OFF -Denable_java=ON -Denable_msg=ON -Denable_smpi=OFF -Denable_mallocators=OFF -Denable_lto=OFF . - mingw32-make.exe VERBOSE=1 java-all python-bindings # Only the Java and Python parts - ctest --output-on-failure -R java - ctest --output-on-failure -R python diff --git a/.circleci/config.yml b/.circleci/config.yml index fd17da4d2d..3c955d6f0e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,5 +19,5 @@ jobs: name: Configure, build and test da stuff command: | mkdir _build && cd _build - cmake -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=ON -Denable_MSG=ON -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=ON .. + cmake -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=ON -Denable_msg=ON -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=ON .. make -j4 tests && ctest -j4 --output-on-failure diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5dfc1a78c6..2e851a7948 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,7 +51,7 @@ release: script: - apt-get --allow-releaseinfo-change update && apt install -y binutils-x86-64-linux-gnu wget unzip zip # Build the linux version of the jarfile without the boost dependency - - cmake -Denable_documentation=OFF -Denable_java=ON -Denable_MSG=ON -Denable_lib_in_jar=ON -Dminimal-bindings=ON -Denable_compile_optimizations=ON -Denable_smpi=OFF . + - cmake -Denable_documentation=OFF -Denable_java=ON -Denable_msg=ON -Denable_lib_in_jar=ON -Dminimal-bindings=ON -Denable_compile_optimizations=ON -Denable_smpi=OFF . - make VERBOSE=1 dist simgrid simgrid-java_jar # Get the foreign architectures - wget https://ci.appveyor.com/api/projects/mquinson/simgrid/artifacts/simgrid.jar -O simgrid-windows.jar diff --git a/.travis.yml b/.travis.yml index 639e6781fb..aa86b4a3ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,7 +58,7 @@ jobs: - export JAVA_HOME='C:/Program Files/Java/jdk1.8.0_211' # We need pybind11. SimGrid will pick it automatically if the subdir is here # - git clone --depth=1 https://github.com/pybind/pybind11.git - - cmake -G "MinGW Makefiles" -Denable_java=ON -Denable_MSG=ON -Denable_lua=OFF -Denable_documentation=OFF -Denable_smpi=OFF -Denable_mallocators=OFF -Denable_lto=OFF . + - cmake -G "MinGW Makefiles" -Denable_java=ON -Denable_msg=ON -Denable_lua=OFF -Denable_documentation=OFF -Denable_smpi=OFF -Denable_mallocators=OFF -Denable_lto=OFF . - df -h - du -hs /tmp || true - mingw32-make.exe VERBOSE=1 java-all && ctest --output-on-failure -R java diff --git a/CMakeLists.txt b/CMakeLists.txt index f3e237c72e..e9443f1468 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -232,7 +232,7 @@ if(enable_ns3) endif() set(SIMGRID_HAVE_MSG 0) -if(enable_MSG) +if(enable_msg) set(SIMGRID_HAVE_MSG 1) endif() @@ -412,8 +412,8 @@ endif() mark_as_advanced(PATH_LIBDW_H) mark_as_advanced(PATH_LIBDW_LIB) -if(enable_java AND NOT enable_MSG) - message(FATAL_ERROR "Cannot activate the Java bindings without the MSG module. Either add -Denable_MSG=ON or -Denable_java=OFF") +if(enable_java AND NOT enable_msg) + message(FATAL_ERROR "Cannot activate the Java bindings without the MSG module. Either add -Denable_msg=ON or -Denable_java=OFF") endif() if (enable_model-checking AND enable_ns3) diff --git a/ChangeLog b/ChangeLog index 5ca0a64741..dfbd93199b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,8 +8,9 @@ Important user-visible changes: - Python's doc was organized as a separate tree, now integrated with C++. - C bindings of S4U were not part of the doc. - The C++ doc was also improved as methods are now split by theme. -- Further deprecate MSG: you now have to pass -Denable-MSG=ON to cmake. - - The plan is to completely remove MSG by the end of 2020. +- Further deprecate MSG: you now have to pass -Denable_msg=ON to cmake. + - This is mandatory to use the Java bindings. + - OFF by default; The plan is to completely remove MSG by 2020Q4 or 2021Q1. - SimDAG++: Automatic dependencies on S4U activities (experimental) - Some features are already implemented but not all of them - Cannot block an activity until it's scheduled on a resource diff --git a/examples/deprecated/msg/CMakeLists.txt b/examples/deprecated/msg/CMakeLists.txt index 481d2e47ee..0692b9da30 100644 --- a/examples/deprecated/msg/CMakeLists.txt +++ b/examples/deprecated/msg/CMakeLists.txt @@ -5,7 +5,7 @@ foreach(x app-masterworker cloud-masterworker synchro-semaphore trace-categories trace-route-user-variables trace-link-user-variables trace-masterworker trace-process-migration trace-host-user-variables) - if(enable_MSG) + if(enable_msg) add_executable (${x} EXCLUDE_FROM_ALL ${x}/${x}.c) target_link_libraries(${x} simgrid) set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x}) @@ -15,14 +15,14 @@ foreach(x app-masterworker cloud-masterworker set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh) endforeach() -if(SIMGRID_HAVE_NS3 AND enable_MSG) +if(SIMGRID_HAVE_NS3 AND enable_msg) add_executable (network-ns3 EXCLUDE_FROM_ALL network-ns3/network-ns3.c) target_link_libraries(network-ns3 simgrid) set_target_properties(network-ns3 PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/network-ns3) add_dependencies(tests network-ns3) endif() -if(enable_MSG) +if(enable_msg) add_executable (dht-kademlia EXCLUDE_FROM_ALL dht-kademlia/dht-kademlia.c dht-kademlia/node.c dht-kademlia/routing_table.c dht-kademlia/task.c dht-kademlia/answer.c) target_link_libraries(dht-kademlia simgrid) set_target_properties(dht-kademlia PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dht-kademlia) @@ -55,7 +55,7 @@ set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/app-masterworker/a ${CMAKE_CURRENT_SOURCE_DIR}/network-ns3/onelink_d.xml ${CMAKE_CURRENT_SOURCE_DIR}/network-ns3/one_cluster_d.xml PARENT_SCOPE) -if(enable_MSG) +if(enable_msg) foreach(x app-masterworker cloud-masterworker dht-pastry dht-kademlia platform-failures energy-vm @@ -107,4 +107,4 @@ if(enable_MSG) --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms ${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/network-ns3/network-ns3.tesh) endif() -endif(enable_MSG) \ No newline at end of file +endif(enable_msg) \ No newline at end of file diff --git a/teshsuite/msg/CMakeLists.txt b/teshsuite/msg/CMakeLists.txt index 159c008f81..827914ff84 100644 --- a/teshsuite/msg/CMakeLists.txt +++ b/teshsuite/msg/CMakeLists.txt @@ -9,7 +9,7 @@ foreach(x app-pingpong app-token-ring task-priority plugin-hostload trace_integration) - if(enable_MSG) + if(enable_msg) add_executable (${x} EXCLUDE_FROM_ALL ${x}/${x}.c) target_link_libraries(${x} simgrid) set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x}) @@ -22,7 +22,7 @@ endforeach() # CPP examples foreach(x task_destroy_cancel task_listen_from task_progress host_on_off_processes) - if(enable_MSG) + if(enable_msg) add_executable (${x} EXCLUDE_FROM_ALL ${x}/${x}.cpp) target_link_libraries(${x} simgrid) set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x}) @@ -33,7 +33,7 @@ foreach(x task_destroy_cancel task_listen_from task_progress host_on_off_process set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp) endforeach() -if(enable_MSG) +if(enable_msg) add_executable (bittorrent EXCLUDE_FROM_ALL app-bittorrent/bittorrent.c app-bittorrent/bittorrent-messages.c app-bittorrent/bittorrent-peer.c app-bittorrent/tracker.c app-bittorrent/connection.c) target_link_libraries(bittorrent simgrid) set_target_properties(bittorrent PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-bittorrent) @@ -43,7 +43,7 @@ foreach (file bittorrent connection bittorrent-messages bittorrent-peer tracker) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.c ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.h) endforeach() -if(enable_MSG) +if(enable_msg) add_executable (chainsend EXCLUDE_FROM_ALL app-chainsend/chainsend.c app-chainsend/iterator.c app-chainsend/common.c app-chainsend/messages.c app-chainsend/broadcaster.c app-chainsend/peer.c) target_link_libraries(chainsend simgrid) set_target_properties(chainsend PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-chainsend) @@ -89,7 +89,7 @@ set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/ap ${CMAKE_CURRENT_SOURCE_DIR}/trace_integration/test-hbp1-c1s1-c3s2.xml ${CMAKE_CURRENT_SOURCE_DIR}/trace_integration/test-hbp2.5-hbp1.5.xml PARENT_SCOPE) -if(enable_MSG) +if(enable_msg) foreach(x async-wait async-waitall async-waitany app-bittorrent app-chainsend app-pingpong app-token-ring diff --git a/tools/cmake/DefinePackages.cmake b/tools/cmake/DefinePackages.cmake index da2fc12a19..7e411fd572 100644 --- a/tools/cmake/DefinePackages.cmake +++ b/tools/cmake/DefinePackages.cmake @@ -817,7 +817,7 @@ set(simgrid_sources ${SIMDAG_SRC} ) -if(${enable_MSG}) +if(${enable_msg}) set(headers_to_install ${headers_to_install} include/simgrid/msg.h) set(simgrid_sources ${simgrid_sources} ${MSG_SRC}) else() diff --git a/tools/cmake/Option.cmake b/tools/cmake/Option.cmake index 9cf3503a90..84bb93eb09 100644 --- a/tools/cmake/Option.cmake +++ b/tools/cmake/Option.cmake @@ -24,7 +24,7 @@ option(enable_documentation "Whether to produce documentation" off) option(enable_ns3 "Whether ns-3 model is activated." off) option(enable_java "Whether the Java bindings are activated." off) -option(enable_MSG "Whether the MSG module is activated." off) +option(enable_msg "Whether the MSG module is activated." off) option(enable_lib_in_jar "Whether the native libraries are bundled in a Java jar file" on) option(minimal-bindings "Whether to compile the bindings libraries (Java/Python) with the minimal dependency set" off) mark_as_advanced(minimal-bindings) diff --git a/tools/graphicator/CMakeLists.txt b/tools/graphicator/CMakeLists.txt index c66b778edb..7c03fac8bb 100644 --- a/tools/graphicator/CMakeLists.txt +++ b/tools/graphicator/CMakeLists.txt @@ -1,4 +1,4 @@ -if(enable_MSG) +if(enable_msg) add_executable (graphicator graphicator.c) add_dependencies (tests graphicator) target_link_libraries(graphicator simgrid) diff --git a/tools/jenkins/Flags.sh b/tools/jenkins/Flags.sh index 06c5667903..2ab464f1b2 100755 --- a/tools/jenkins/Flags.sh +++ b/tools/jenkins/Flags.sh @@ -86,7 +86,7 @@ then fi echo "Step ${STEP}/${NSTEPS} - Building with java=${buildjava}, debug=${builddebug}, SMPI=${buildsmpi}, MC=${buildmc}, MSG=${buildmsg}" -cmake -Denable_documentation=OFF -Denable_lua=ON -Denable_java=${buildjava} -Denable_MSG=${buildmsg} \ +cmake -Denable_documentation=OFF -Denable_lua=ON -Denable_java=${buildjava} -Denable_msg=${buildmsg} \ -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \ -Denable_jedule=ON -Denable_mallocators=ON -Denable_debug=${builddebug} \ -Denable_smpi=${buildsmpi} -Denable_smpi_MPICH3_testsuite=${buildsmpi} -Denable_model-checking=${buildmc} \ diff --git a/tools/jenkins/build.sh b/tools/jenkins/build.sh index eccc65aaa4..e2f73dc77d 100755 --- a/tools/jenkins/build.sh +++ b/tools/jenkins/build.sh @@ -195,7 +195,7 @@ cmake -G"$GENERATOR" ${INSTALL:+-DCMAKE_INSTALL_PREFIX=$INSTALL} \ -Denable_ns3=$(onoff test "$have_NS3" = "yes" -a "$build_mode" = "Debug") \ -Denable_jedule=OFF -Denable_lua=OFF ${MAY_DISABLE_SOURCE_CHANGE} \ -Denable_java=$(onoff test "$build_mode" = "ModelChecker") \ - -Denable_MSG=$(onoff test "$build_mode" = "ModelChecker") \ + -Denable_msg=$(onoff test "$build_mode" = "ModelChecker") \ $SRCFOLDER # -Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \ set +x