QDoc: Look for template and include() under installdir.
The installdir will now also be used to search for include() qdocconf variables and the stylesheet. Change-Id: I388392114fd5a8d57bab0b71699b30e4a6ddd46e Reviewed-by: Martin Smith <martin.smith@nokia.com>bb10
parent
143daa6ac2
commit
21ebd2e4eb
|
|
@ -714,7 +714,10 @@ void Config::load(Location location, const QString& fileName)
|
|||
|
||||
QFile fin(fileName);
|
||||
if (!fin.open(QFile::ReadOnly | QFile::Text)) {
|
||||
fin.setFileName(fileName + QLatin1String(".qdoc"));
|
||||
if (!Config::installDir.isEmpty()) {
|
||||
int prefix = location.filePath().length() - location.fileName().length();
|
||||
fin.setFileName(Config::installDir + "/" + fileName.right(fileName.length() - prefix));
|
||||
}
|
||||
if (!fin.open(QFile::ReadOnly | QFile::Text))
|
||||
location.fatal(tr("Cannot open file '%1': %2").arg(fileName).arg(fin.errorString()));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1659,6 +1659,10 @@ void Generator::initialize(const Config &config)
|
|||
++e;
|
||||
}
|
||||
|
||||
if (!Config::installDir.isEmpty()) {
|
||||
searchDirs.append(Config::installDir);
|
||||
}
|
||||
|
||||
QStringList styles =
|
||||
config.getCleanPathList((*g)->format()+Config::dot+CONFIG_STYLESHEETS);
|
||||
e = styles.constBegin();
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ static void processQdocconfFile(const QString &fileName)
|
|||
}
|
||||
}
|
||||
else {
|
||||
qDebug() << "Dependant modules specified, but not index directories were set."
|
||||
qDebug() << "Dependant modules specified, but no index directories or install directory were set."
|
||||
<< "There will probably be errors for missing links.";
|
||||
}
|
||||
}
|
||||
|
|
@ -508,6 +508,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
else if (opt == "-installdir") {
|
||||
Config::installDir = argv[i];
|
||||
indexDirs += argv[i];
|
||||
i++;
|
||||
}
|
||||
else if (opt == "-obsoletelinks") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue