src/*_unit.c
### Generated files
_*.c
-include/simgrid_config.h
+include/simgrid/config.h
include/smpi/smpif.h
src/internal_config.h
testprog
# Avoid triggering a (full) rebuild by touching the files if they did not really change
configure_file("${CMAKE_HOME_DIRECTORY}/tools/cmake/src/internal_config.h.in" "${CMAKE_BINARY_DIR}/src/internal_config.h.generated" @ONLY IMMEDIATE)
-configure_file("${CMAKE_HOME_DIRECTORY}/include/simgrid_config.h.in" "${CMAKE_BINARY_DIR}/include/simgrid_config.h.generated" @ONLY IMMEDIATE)
+configure_file("${CMAKE_HOME_DIRECTORY}/include/simgrid/config.h.in" "${CMAKE_BINARY_DIR}/include/simgrid/config.h.generated" @ONLY IMMEDIATE)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/src/internal_config.h.generated ${CMAKE_BINARY_DIR}/src/internal_config.h)
-execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/include/simgrid_config.h.generated ${CMAKE_BINARY_DIR}/include/simgrid_config.h)
+execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/include/simgrid/config.h.generated ${CMAKE_BINARY_DIR}/include/simgrid/config.h)
file(REMOVE ${CMAKE_BINARY_DIR}/src/internal_config.h.generated)
-file(REMOVE ${CMAKE_BINARY_DIR}/include/simgrid_config.h.generated)
+file(REMOVE ${CMAKE_BINARY_DIR}/include/simgrid/config.h.generated)
# We need two versions of the SMPI scripts because they contain the path to the library
# so, it depends of whether SimGrid is installed, or run from the sources (during the build)
set(generated_headers_to_install
${CMAKE_CURRENT_BINARY_DIR}/include/smpi/mpif.h
- ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid_config.h
+ ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid/config.h
)
set(generated_headers ${CMAKE_CURRENT_BINARY_DIR}/src/internal_config.h )
message(" ${line}")
endforeach()
message("##########################################")
-message("#### Content of simgrid_config.h ####")
+message("#### Content of simgrid/config.h ####")
message("##########################################")
-file(STRINGS ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid_config.h config_output)
+file(STRINGS ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid/config.h config_output)
LIST(REMOVE_AT config_output 0 1 2 3 4 5 6 7 8 9 -1) # Pass the file header
foreach(line ${config_output})
message(" ${line}")
- Config: the C API is now deprecated (will be removed in 3.23), and
the C++ API has been slightly improved.
+Other:
+ - Move simgrid_config.h to simgrid/config.h (old header still working)
+
Fixed bugs:
- #143: Setting a breakpoint at a given time
- #258: daemonized actors hang after all non-daemonized actors have completed
cmake_minimum_required(VERSION 2.8)
find_path(SimGrid_INCLUDE_DIR
- NAMES simgrid_config.h
+ NAMES simgrid/config.h
PATHS ${SimGrid_PATH}/include /opt/simgrid/include
)
+if (NOT SimGrid_INCLUDE_DIR)
+ # search under the old name
+ find_path(SimGrid_INCLUDE_DIR
+ NAMES simgrid_config.h
+ PATHS ${SimGrid_PATH}/include /opt/simgrid/include
+ )
+endif()
find_library(SimGrid_LIBRARY
NAMES simgrid
PATHS ${SimGrid_PATH}/lib /opt/simgrid/lib
if (SimGrid_INCLUDE_DIR)
set(SimGrid_VERSION_REGEX "^#define SIMGRID_VERSION_(MAJOR|MINOR|PATCH) ([0-9]+)$")
- file(STRINGS "${SimGrid_INCLUDE_DIR}/simgrid_config.h" SimGrid_VERSION_STRING REGEX ${SimGrid_VERSION_REGEX})
+ if (EXISTS "${SimGrid_INCLUDE_DIR}/simgrid/config.h")
+ file(STRINGS "${SimGrid_INCLUDE_DIR}/simgrid/config.h" SimGrid_VERSION_STRING REGEX ${SimGrid_VERSION_REGEX})
+ else()
+ file(STRINGS "${SimGrid_INCLUDE_DIR}/simgrid_config.h" SimGrid_VERSION_STRING REGEX ${SimGrid_VERSION_REGEX})
+ endif()
set(SimGrid_VERSION "")
# Concat the matches to MAJOR.MINOR.PATCH assuming they appear in this order
\endverbatim
By the end of the configuration, cmake reports whether ns-3 was found,
-and this information is also available in <tt>include/simgrid_config.h</tt>
+and this information is also available in <tt>include/simgrid/config.h</tt>
If your local copy defines the variable \c SIMGRID_HAVE_NS3 to 1, then ns-3
was correctly detected. If it's defined to 0, then something went
wrong. Explore <tt>CMakeFiles/CMakeOutput.log</tt> and
-/* simgrid_config.h - Results of the configure made visible to user code. */
+/* simgrid/config.h - Results of the configure made visible to user code. */
/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */
#ifndef JEDULE_HPP_
#define JEDULE_HPP_
+#include <simgrid/config.h>
#include <simgrid/jedule/jedule_events.hpp>
#include <simgrid/jedule/jedule_platform.hpp>
-#include <simgrid_config.h>
#include <cstdio>
#include <simgrid/jedule/jedule_platform.hpp>
+#include <simgrid/config.h>
#include <simgrid/forward.h>
-#include <simgrid_config.h>
#include <vector>
#include <string>
#ifndef JED_SIMGRID_PLATFORM_H_
#define JED_SIMGRID_PLATFORM_H_
+#include <simgrid/config.h>
#include <simgrid/forward.h>
-#include <simgrid_config.h>
#include <xbt/dynar.h>
#include <unordered_map>
#ifndef JEDULE_SD_BINDING_H_
#define JEDULE_SD_BINDING_H_
+#include <simgrid/config.h>
#include <simgrid/simdag.h>
-#include <simgrid_config.h>
#if SIMGRID_HAVE_JEDULE
SG_BEGIN_DECL()
#include <stddef.h> /* size_t */
-#include <simgrid_config.h> /* SIMGRID_HAVE_MC ? */
+#include <simgrid/config.h> /* SIMGRID_HAVE_MC ? */
#include <xbt/base.h>
--- /dev/null
+/* simgrid_config.h - backward-compatibility wrapper. Stop using it */
+
+/* Copyright (c) 2018. The SimGrid Team. All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#warning simgrid_config.h is now deprecated. Please use simgrid/config.h instead
+#include <simgrid/config.h>
#ifndef XBT_MISC_H
#define XBT_MISC_H
-#include <simgrid_config.h>
+#include <simgrid/config.h>
#include <xbt/base.h>
#include <xbt/dynar.h>
#ifndef SIMGRID_XBT_STRING_HPP
#define SIMGRID_XBT_STRING_HPP
-#include <simgrid_config.h>
+#include <simgrid/config.h>
#include <cstdarg>
#include <cstdlib>
#include <xbt/log.h>
#include <xbt/misc.h>
-#include <simgrid_config.h>
+#include <simgrid/config.h>
#include <string.h>
#include <stdlib.h>
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/kernel/routing/NetPoint.hpp"
-#include "simgrid_config.h"
#include "src/instr/instr_private.hpp"
#include "src/surf/network_interface.hpp"
#include "src/surf/surf_private.hpp"
#include "simgrid/instr.h"
#include "simgrid/s4u/Actor.hpp"
-#include "simgrid_config.h"
#include "src/instr/instr_paje_containers.hpp"
#include "src/instr/instr_paje_events.hpp"
#include "src/instr/instr_paje_types.hpp"
#include "src/mc/checker/Checker.hpp"
#include "src/mc/mc_state.hpp"
-#include <simgrid_config.h>
+#include <simgrid/config.h>
#include <xbt/automaton.h>
#include <xbt/base.h>
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include <simgrid_config.h>
+#include <simgrid/config.h>
#include "mc/mc.h"
#include "src/mc/mc_base.h"
#include "xbt/log.h"
#include "xbt/string.hpp"
#include "xbt/sysdep.h"
-#include <simgrid_config.h>
+#include <simgrid/config.h>
#include "src/mc/mc_dwarf.hpp"
#include "src/mc/mc_private.hpp"
#include <sys/types.h>
-#include <simgrid_config.h>
+#include <simgrid/config.h>
#include "xbt/base.h"
#include <xbt/mmalloc.h>
* under the terms of the license (GNU LGPL) which comes with this package. */
#line 10 "parserPromela.lex"
-#include "simgrid_config.h"
+#include "simgrid/config.h"
#if !HAVE_UNISTD_H
#define YY_NO_UNISTD_H /* hello Windows */
#endif
%{
-#include "simgrid_config.h"
+#include "simgrid/config.h"
#if !HAVE_UNISTD_H
#define YY_NO_UNISTD_H /* hello Windows */
#endif
/* Copy the first part of user declarations. */
#line 7 "parserPromela.yacc" /* yacc.c:339 */
-#include "simgrid_config.h"
+#include "simgrid/config.h"
#if !HAVE_UNISTD_H
#define YY_NO_UNISTD_H /* hello Windows */
#endif
* under the terms of the license (GNU LGPL) which comes with this package. */
%{
-#include "simgrid_config.h"
+#include "simgrid/config.h"
#if !HAVE_UNISTD_H
#define YY_NO_UNISTD_H /* hello Windows */
#endif
-/* Copyright (c) 2015-2018. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2015-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include <cstdarg>
-#include <cstdio>
-
-#include <simgrid_config.h>
-
+#include <simgrid/config.h>
#include <xbt/string.hpp>
#include <xbt/sysdep.h>
+#include <cstdarg>
+#include <cstdio>
+
namespace simgrid {
namespace xbt {
#define XBT_LOG_LOCALLY_DEFINE_XBT_CHANNEL /* MSVC don't want it to be declared extern in headers and local here */
-#include "simgrid_config.h"
+#include "simgrid/config.h"
+#include "simgrid/sg_config.hpp"
+#include "src/internal_config.h"
+#include "src/xbt_modinter.h" /* prototype of other module's init/exit in XBT */
#include "xbt/config.hpp"
#include "xbt/dynar.h"
#include "xbt/log.h"
#include "xbt/log.hpp"
#include "xbt/misc.h"
+#include "xbt/module.h" /* this module */
#include "xbt/sysdep.h"
-#include <cmath>
-
-#include "xbt/module.h" /* this module */
-
-#include "src/xbt_modinter.h" /* prototype of other module's init/exit in XBT */
-#include "simgrid/sg_config.hpp"
-
-#include "src/internal_config.h"
+#include <cmath>
#include <cstdio>
#ifdef _WIN32
# include <csignal> /* To silence MSVC on abort() */
set(headers_to_install
+ include/simgrid_config.h
include/simgrid/actor.h
include/simgrid/engine.h
include/simgrid/chrono.hpp
include/xbt/xbt_os_time.h
)
set(source_of_generated_headers
- include/simgrid_config.h.in
+ include/simgrid/config.h.in
include/smpi/mpif.h.in)
### depend of some variables setted upper
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/mc
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/simgrid
COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/include/simgrid.h
- COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/include/simgrid_config.h
+ COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/include/simgrid/config.h
COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/include/xbt.h
COMMAND ${CMAKE_COMMAND} -E echo "uninstall include ok"
COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/share/man/man1/simgrid_update_xml.1
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid_config.h" /* what was compiled in? */
+#include "simgrid/config.h" /* what was compiled in? */
/* Non-standard header files */
/* <execinfo.h> */