DEVTOOLS: Adapt create_project to create engines/ dir if necessary

This commit is contained in:
Johannes Schickel 2013-11-07 12:58:35 +01:00 committed by D G Turner
parent c00ab00f25
commit 8b3fc996a1

View file

@ -1629,6 +1629,10 @@ void ProjectProvider::createModuleList(const std::string &moduleDir, const Strin
}
void ProjectProvider::createEnginePluginsTable(const BuildSetup &setup) {
// First we need to create the "engines" directory.
createDirectory(setup.outputDir + "/engines");
// Then, we can generate the actual "plugins_table.h" file.
const std::string enginePluginsTableFile = setup.outputDir + "/engines/plugins_table.h";
std::ofstream enginePluginsTable(enginePluginsTableFile.c_str());
if (!enginePluginsTable) {