QDoc: Also allow dependant modules to be specified on CLI.
Change-Id: I25dfbadc788616a864ecbf322434a3ce45bb94e5 Reviewed-by: Martin Smith <martin.smith@nokia.com>
This commit is contained in:
parent
14b0722166
commit
0d45699602
@ -98,6 +98,7 @@ static bool highlighting = false;
|
|||||||
static bool showInternal = false;
|
static bool showInternal = false;
|
||||||
static bool obsoleteLinks = false;
|
static bool obsoleteLinks = false;
|
||||||
static QStringList defines;
|
static QStringList defines;
|
||||||
|
static QStringList dependModules;
|
||||||
static QStringList indexDirs;
|
static QStringList indexDirs;
|
||||||
static QHash<QString, Tree *> trees;
|
static QHash<QString, Tree *> trees;
|
||||||
|
|
||||||
@ -110,6 +111,8 @@ static void printHelp()
|
|||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -D<name> "
|
" -D<name> "
|
||||||
"Define <name> as a macro while parsing sources\n"
|
"Define <name> as a macro while parsing sources\n"
|
||||||
|
" -depends "
|
||||||
|
"Specify dependant modules\n"
|
||||||
" -help "
|
" -help "
|
||||||
"Display this information and exit\n"
|
"Display this information and exit\n"
|
||||||
" -highlighting "
|
" -highlighting "
|
||||||
@ -250,7 +253,7 @@ static void processQdocconfFile(const QString &fileName)
|
|||||||
*/
|
*/
|
||||||
QStringList indexFiles = config.getStringList(CONFIG_INDEXES);
|
QStringList indexFiles = config.getStringList(CONFIG_INDEXES);
|
||||||
|
|
||||||
QStringList dependModules = config.getStringList(CONFIG_DEPENDS);
|
dependModules += config.getStringList(CONFIG_DEPENDS);
|
||||||
|
|
||||||
if (dependModules.size() > 0) {
|
if (dependModules.size() > 0) {
|
||||||
if (indexDirs.size() > 0) {
|
if (indexDirs.size() > 0) {
|
||||||
@ -516,6 +519,10 @@ int main(int argc, char **argv)
|
|||||||
QString define = opt.mid(2);
|
QString define = opt.mid(2);
|
||||||
defines += define;
|
defines += define;
|
||||||
}
|
}
|
||||||
|
else if (opt == "-depends") {
|
||||||
|
dependModules += argv[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
else if (opt == "-highlighting") {
|
else if (opt == "-highlighting") {
|
||||||
highlighting = true;
|
highlighting = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user