diff options
Diffstat (limited to 'tools/create_msvc')
-rw-r--r-- | tools/create_msvc/create_msvc.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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; |