diff options
author | Paul Olav Tvete <paul.tvete@digia.com> | 2013-10-17 17:18:45 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-30 16:39:02 +0100 |
commit | 49e8d420dad06016aaf5d29cd8e67ab7d794dbbd (patch) | |
tree | 49a3cc1e2d5f7d06c5d78249f8f4758d8ba2033d | |
parent | 254c89c08f4a694c7ff4ccf0f9e41216106631e4 (diff) |
Use stdout for debug output
We need to use the same stream for all debug output, otherwise
they will be shown out of order. Also add some more verbosity.
Change-Id: I66d2e1e67fb6303178a8240815d9faff396f77ea
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
-rw-r--r-- | src/androiddeployqt/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/androiddeployqt/main.cpp b/src/androiddeployqt/main.cpp index a5ce60868..d5ae2ec7b 100644 --- a/src/androiddeployqt/main.cpp +++ b/src/androiddeployqt/main.cpp @@ -1040,6 +1040,10 @@ bool readAndroidDependencyXml(Options *options, continue; usedDependencies->insert(fileName); + + if (options->verbose) + fprintf(stdout, "Appending dependency from xml: %s\n", qPrintable(fileName)); + options->qtDependencies.append(fileName); } } else if (reader.name() == QLatin1String("jar")) { @@ -1166,7 +1170,7 @@ bool readDependenciesFromElf(Options *options, options->qtDependencies.append(dependency); if (options->verbose) - fprintf(stderr, "Appending dependency: %s\n", qPrintable(dependency)); + fprintf(stdout, "Appending dependency: %s\n", qPrintable(dependency)); QString qtBaseName = dependency.mid(sizeof("lib/lib") - 1); qtBaseName = qtBaseName.left(qtBaseName.size() - (sizeof(".so") - 1)); if (!readAndroidDependencyXml(options, qtBaseName, usedDependencies, remainingDependencies)) { @@ -1389,7 +1393,7 @@ bool deployToLocalTmp(Options *options, if (!goodToCopy(options, fileInfo.absoluteFilePath())) { if (options->verbose) - fprintf(stderr, " -- Skipping %s. It has unmet dependencies.\n", qPrintable(fileInfo.absoluteFilePath())); + fprintf(stdout, " -- Skipping %s. It has unmet dependencies.\n", qPrintable(fileInfo.absoluteFilePath())); return true; } @@ -1490,7 +1494,7 @@ bool copyQtFiles(Options *options) if (!goodToCopy(options, sourceFileName)) { if (options->verbose) - fprintf(stderr, " -- Skipping %s. It has unmet dependencies.\n", qPrintable(sourceFileName)); + fprintf(stdout, " -- Skipping %s. It has unmet dependencies.\n", qPrintable(sourceFileName)); continue; } |