diff options
author | Josiah Gaskin <josiahgaskin@google.com> | 2011-06-14 13:57:09 -0700 |
---|---|---|
committer | Josiah Gaskin <josiahgaskin@google.com> | 2011-06-27 16:44:57 -0700 |
commit | 9bf34ca6f85309c65b0ebdf614cb8266401b49ba (patch) | |
tree | 50708801cb3c58aa23a32bc1a1ad39315e3aeff5 /tools/aapt/Main.cpp | |
parent | ce89f1531ed8b96b8b790b3f8b18dd4cf483f7f0 (diff) |
Add dependency generation to Aapt for R.java
Make Aapt generate a dependency file in the location specified
by RClassDir for R.java if the --generate-dependencies flag is set.
This dependency file is then read by the ant exec loop task
to see whether to recreate R.java.
Change-Id: I7152dac86b6ea0e448ef65e3a95694afe233c789
Diffstat (limited to 'tools/aapt/Main.cpp')
-rw-r--r-- | tools/aapt/Main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/aapt/Main.cpp b/tools/aapt/Main.cpp index 732541d7f4b0..8edb5b53b194 100644 --- a/tools/aapt/Main.cpp +++ b/tools/aapt/Main.cpp @@ -146,7 +146,9 @@ void usage(void) " --custom-package\n" " generates R.java into a different package.\n" " --extra-packages\n" - " generate R.java for libraries. Separate libraries with ';'.\n" + " generate R.java for libraries. Separate libraries with ':'.\n" + " --generate-dependencies\n" + " generate a dependency file for R.java.\n" " --auto-add-overlay\n" " Automatically add resources that are only in overlays.\n" " --rename-manifest-package\n" @@ -486,6 +488,8 @@ int main(int argc, char* const argv[]) goto bail; } bundle.setExtraPackages(argv[0]); + } else if (strcmp(cp, "-generate-dependencies") == 0) { + bundle.setGenDependencies(true); } else if (strcmp(cp, "-utf16") == 0) { bundle.setWantUTF16(true); } else if (strcmp(cp, "-rename-manifest-package") == 0) { |