|
@ -99,6 +99,16 @@ namespace storm { |
|
|
} else { |
|
|
} else { |
|
|
carlIncludeDirectory = STORM_CARL_INCLUDE_DIR; |
|
|
carlIncludeDirectory = STORM_CARL_INCLUDE_DIR; |
|
|
} |
|
|
} |
|
|
|
|
|
#ifdef STORM_HAVE_CLN
|
|
|
|
|
|
clnIncludeDirectory = CLN_INCLUDE_DIR; |
|
|
|
|
|
#else
|
|
|
|
|
|
clnIncludeDirectory = ""; |
|
|
|
|
|
#endif
|
|
|
|
|
|
#ifdef STORM_HAVE_GMP
|
|
|
|
|
|
gmpIncludeDirectory = GMP_INCLUDE_DIR; |
|
|
|
|
|
#else
|
|
|
|
|
|
gmpIncludeDirectory = ""; |
|
|
|
|
|
#endif
|
|
|
sparseppIncludeDirectory = STORM_BUILD_DIR "/include/resources/3rdparty/sparsepp/"; |
|
|
sparseppIncludeDirectory = STORM_BUILD_DIR "/include/resources/3rdparty/sparsepp/"; |
|
|
|
|
|
|
|
|
// Register all transient variables as transient.
|
|
|
// Register all transient variables as transient.
|
|
@ -393,7 +403,13 @@ namespace storm { |
|
|
boost::filesystem::path outputFile = temporaryFile; |
|
|
boost::filesystem::path outputFile = temporaryFile; |
|
|
outputFile += ".out"; |
|
|
outputFile += ".out"; |
|
|
std::string outputFilename = boost::filesystem::absolute(outputFile).string(); |
|
|
std::string outputFilename = boost::filesystem::absolute(outputFile).string(); |
|
|
boost::optional<std::string> error = execute(compiler + " " + compilerFlags + " " + temporaryFilename + " -I" + stormIncludeDirectory + " -I" + carlIncludeDirectory + " -o " + outputFilename); |
|
|
|
|
|
|
|
|
std::string includes = ""; |
|
|
|
|
|
for (std::string const& dir : {stormIncludeDirectory, carlIncludeDirectory, clnIncludeDirectory, gmpIncludeDirectory}) { |
|
|
|
|
|
if (dir != "") { |
|
|
|
|
|
includes += " -I" + dir; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
boost::optional<std::string> error = execute(compiler + " " + compilerFlags + " " + temporaryFilename + includes + " -o " + outputFilename); |
|
|
|
|
|
|
|
|
if (error) { |
|
|
if (error) { |
|
|
result = false; |
|
|
result = false; |
|
@ -2488,8 +2504,13 @@ namespace storm { |
|
|
auto dynamicLibraryPath = sourceFile; |
|
|
auto dynamicLibraryPath = sourceFile; |
|
|
dynamicLibraryPath += DYLIB_EXTENSION; |
|
|
dynamicLibraryPath += DYLIB_EXTENSION; |
|
|
std::string dynamicLibraryFilename = boost::filesystem::absolute(dynamicLibraryPath).string(); |
|
|
std::string dynamicLibraryFilename = boost::filesystem::absolute(dynamicLibraryPath).string(); |
|
|
|
|
|
|
|
|
std::string command = compiler + " " + sourceFilename + " " + compilerFlags + " -I" + stormIncludeDirectory + " -I" + sparseppIncludeDirectory + " -I" + boostIncludeDirectory + " -I" + carlIncludeDirectory + " -o " + dynamicLibraryFilename; |
|
|
|
|
|
|
|
|
std::string includes = ""; |
|
|
|
|
|
for (std::string const& dir : {stormIncludeDirectory, sparseppIncludeDirectory, boostIncludeDirectory, carlIncludeDirectory, clnIncludeDirectory, gmpIncludeDirectory}) { |
|
|
|
|
|
if (dir != "") { |
|
|
|
|
|
includes += " -I" + dir; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
std::string command = compiler + " " + sourceFilename + " " + compilerFlags + includes + " -o " + dynamicLibraryFilename; |
|
|
boost::optional<std::string> error = execute(command); |
|
|
boost::optional<std::string> error = execute(command); |
|
|
|
|
|
|
|
|
if (error) { |
|
|
if (error) { |
|
|