X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa0d01321f4e20c96c3e3e2e8aa8ffbafd2d6b2b..00aaf3ca0db96212996091ab6d690bd3ee462e3f:/src/simdag/sd_dotloader.cpp?ds=sidebyside diff --git a/src/simdag/sd_dotloader.cpp b/src/simdag/sd_dotloader.cpp index 2acf99c573..b112f36348 100644 --- a/src/simdag/sd_dotloader.cpp +++ b/src/simdag/sd_dotloader.cpp @@ -5,16 +5,15 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/internal_config.h" -#include "src/simdag/simdag_private.h" #include "simgrid/simdag.h" #include "xbt/file.h" #include +#include "simdag_private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_dotparse, sd, "Parsing DOT files"); #if HAVE_GRAPHVIZ #include -#endif typedef enum { sequential =0, @@ -253,3 +252,15 @@ xbt_dynar_t SD_dotload_generic(const char * filename, seq_par_t seq_or_par, bool } return result; } +#else +xbt_dynar_t SD_dotload(const char *filename) { + xbt_die("SD_dotload_generic() is not usable because graphviz was not found.\n" + "Please install graphviz, graphviz-dev, and libgraphviz-dev (and erase CMakeCache.txt) before recompiling."); +} +xbt_dynar_t SD_dotload_with_sched(const char *filename) { + return SD_dotload(filename); +} +xbt_dynar_t SD_PTG_dotload(const char * filename) { + return SD_dotload(filename); +} +#endif