summaryrefslogtreecommitdiff
path: root/tools/aapt/Main.cpp
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-08-29 17:22:14 -0700
committerDan Willemsen <dwillemsen@google.com>2018-08-29 17:24:18 -0700
commit5d12935f35a04abb39cd02883c8c46d4e0345928 (patch)
tree6963d25051fb87a05d88d30ce0de254da8131ae5 /tools/aapt/Main.cpp
parent13d6540956bc0aff2e08b785d90ad3c91d81663d (diff)
Convert aapt to Soong
See build/soong/README.md for more information. Test: cd frameworks/base/tools/aapt; mma Test: aapt version Change-Id: Ice97e9b32c53cfed30d68acd5717d8c66712df4c
Diffstat (limited to 'tools/aapt/Main.cpp')
-rw-r--r--tools/aapt/Main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/aapt/Main.cpp b/tools/aapt/Main.cpp
index d714687ee914..2f2ef92e72b4 100644
--- a/tools/aapt/Main.cpp
+++ b/tools/aapt/Main.cpp
@@ -6,6 +6,7 @@
#include "Main.h"
#include "Bundle.h"
+#include <build/version.h>
#include <utils/Compat.h>
#include <utils/Log.h>
#include <utils/threads.h>
@@ -20,10 +21,6 @@ using namespace android;
static const char* gProgName = "aapt";
-#ifndef AAPT_VERSION
- #define AAPT_VERSION ""
-#endif
-
/*
* Show version info. All the cool kids do it.
*/
@@ -32,7 +29,7 @@ int doVersion(Bundle* bundle)
if (bundle->getFileSpecCount() != 0) {
printf("(ignoring extra arguments)\n");
}
- printf("Android Asset Packaging Tool, v0.2-" AAPT_VERSION "\n");
+ printf("Android Asset Packaging Tool, v0.2-%s\n", android::build::GetBuildNumber().c_str());
return 0;
}