summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@digia.com>2013-10-01 15:59:59 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-02 09:48:28 +0200
commit6399d3a8349859f423c225c5fa8fd9231deeb9a2 (patch)
treede3549cf58ded6dc59393de98443a92044294500
parent3e4cb400ee399b4822d6e88c48dcc064ce18c48c (diff)
downloadqttools-6399d3a8349859f423c225c5fa8fd9231deeb9a2.tar.gz
androiddeployqt: make it easier to diagnose problems
Enumerate the enum so we don't have to count the values each time we need to make sense of the return code. Change-Id: Ibe168798fb167659688519b2cd833a1894a9deec Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
-rw-r--r--src/androiddeployqt/main.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/androiddeployqt/main.cpp b/src/androiddeployqt/main.cpp
index bc3774089..7ad97ac87 100644
--- a/src/androiddeployqt/main.cpp
+++ b/src/androiddeployqt/main.cpp
@@ -1854,22 +1854,22 @@ bool copyGdbServer(const Options &options)
enum ErrorCode
{
Success,
- SyntaxErrorOrHelpRequested,
- CannotReadInputFile,
- CannotCopyAndroidTemplate,
- CannotReadDependencies,
- CannotCopyGnuStl,
- CannotCopyQtFiles,
- CannotFindApplicationBinary,
- CannotCopyGdbServer,
- CannotStripLibraries,
- CannotCopyAndroidExtraLibs,
- CannotCopyAndroidSources,
- CannotUpdateAndroidFiles,
- CannotCreateAndroidProject,
- CannotBuildAndroidProject,
- CannotSignPackage,
- CannotInstallApk
+ SyntaxErrorOrHelpRequested = 1,
+ CannotReadInputFile = 2,
+ CannotCopyAndroidTemplate = 3,
+ CannotReadDependencies = 4,
+ CannotCopyGnuStl = 5,
+ CannotCopyQtFiles = 6,
+ CannotFindApplicationBinary = 7,
+ CannotCopyGdbServer = 8,
+ CannotStripLibraries = 9,
+ CannotCopyAndroidExtraLibs = 10,
+ CannotCopyAndroidSources = 11,
+ CannotUpdateAndroidFiles = 12,
+ CannotCreateAndroidProject = 13,
+ CannotBuildAndroidProject = 14,
+ CannotSignPackage = 15,
+ CannotInstallApk = 16
};
int main(int argc, char *argv[])