diff options
author | Johannes Schickel | 2009-10-25 23:17:58 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-10-25 23:17:58 +0000 |
commit | 811764e8cc5450c950cc531ad207a27fe2c65f93 (patch) | |
tree | c74c4ef1ebd3e701a051824abe3929807f1626fa /tools/create_msvc | |
parent | 3d8492cd300231f159829c25cefc56789821fbc2 (diff) | |
download | scummvm-rg350-811764e8cc5450c950cc531ad207a27fe2c65f93.tar.gz scummvm-rg350-811764e8cc5450c950cc531ad207a27fe2c65f93.tar.bz2 scummvm-rg350-811764e8cc5450c950cc531ad207a27fe2c65f93.zip |
Add warning when no engine definitions are found (or the configure file is missing).
svn-id: r45384
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; |