From 811764e8cc5450c950cc531ad207a27fe2c65f93 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 25 Oct 2009 23:17:58 +0000 Subject: Add warning when no engine definitions are found (or the configure file is missing). svn-id: r45384 --- tools/create_msvc/create_msvc.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp index a791a2ea46..c9b4b39a09 100644 --- a/tools/create_msvc/create_msvc.cpp +++ b/tools/create_msvc/create_msvc.cpp @@ -84,8 +84,20 @@ int main(int argc, char *argv[]) { const std::string srcDir = argv[1]; BuildSetup setup; - setup.filePrefix = setup.srcDir = unifyPath(srcDir); + setup.srcDir = unifyPath(srcDir); + + if (setup.srcDir.at(setup.srcDir.size() - 1) == '/') + setup.srcDir.erase(setup.srcDir.size() - 1); + + setup.filePrefix = setup.srcDir; + setup.engines = parseConfigure(setup.srcDir); + + if (setup.engines.empty()) { + std::cout << "WARNING: No engines found in configure file or configure file missing in \"" << setup.srcDir << "\"\n"; + return 0; + } + setup.features = getAllFeatures(); int msvcVersion = 9; -- cgit v1.2.3