summaryrefslogtreecommitdiffstats
path: root/tools/aapt/Main.cpp
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-02-28 10:15:48 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-02-28 10:15:48 -0800
commit7719436342611a106df5d379fedf180a5dd0809e (patch)
treec18c321d33a27b777765ce9133899d7b6d30d8f4 /tools/aapt/Main.cpp
parent65260be5d4e9793b466d84ca5f59b20a8605126c (diff)
parentb732b7b5e8192501360edc15fb8c6399d11fb97d (diff)
downloadframeworks_base-7719436342611a106df5d379fedf180a5dd0809e.zip
frameworks_base-7719436342611a106df5d379fedf180a5dd0809e.tar.gz
frameworks_base-7719436342611a106df5d379fedf180a5dd0809e.tar.bz2
am b732b7b5: am ce57a7f3: am 6504490c: am dff6b8e7: Merge "Add --non-constant-id to aapt."
* commit 'b732b7b5e8192501360edc15fb8c6399d11fb97d': GpsLocationProvider: Clean up HAL initialization/cleanup sequence Fixed GSM encoded network initiated position request Ensuring thread-safe usage of DateFormat. Fixing infinite loop for zero duration. Fix for an infinite loop while scrolling lists. WAPPushManager, WAP Push over SMS message handler Add --non-constant-id to aapt.
Diffstat (limited to 'tools/aapt/Main.cpp')
-rw-r--r--tools/aapt/Main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/aapt/Main.cpp b/tools/aapt/Main.cpp
index 739b01f..266a02f 100644
--- a/tools/aapt/Main.cpp
+++ b/tools/aapt/Main.cpp
@@ -160,7 +160,11 @@ void usage(void)
" product variants\n"
" --utf16\n"
" changes default encoding for resources to UTF-16. Only useful when API\n"
- " level is set to 7 or higher where the default encoding is UTF-8.\n");
+ " level is set to 7 or higher where the default encoding is UTF-8.\n"
+ " --non-constant-id\n"
+ " Make the resources ID non constant. This is required to make an R java class\n"
+ " that does not contain the final value but is used to make reusable compiled\n"
+ " libraries that need to access resources.\n");
}
/*
@@ -497,6 +501,8 @@ int main(int argc, char* const argv[])
goto bail;
}
bundle.setProduct(argv[0]);
+ } else if (strcmp(cp, "-non-constant-id") == 0) {
+ bundle.setNonConstantId(true);
} else {
fprintf(stderr, "ERROR: Unknown option '-%s'\n", cp);
wantUsage = true;