diff options
| author | 2012-02-07 13:48:35 -0800 | |
|---|---|---|
| committer | 2012-02-07 13:48:35 -0800 | |
| commit | c58c61b7777b0405a30b317eb8fb32a7238e7909 (patch) | |
| tree | 82cf6640d0a5303b9ac70ed9d95f460f3edb7fe9 /tools/aapt/Command.cpp | |
| parent | 120a6e1e3a22cac31f58dbcf8f74a27d3f65ab3c (diff) | |
| parent | 424a69d502db85ffaecf9cad00321b677616a9c5 (diff) | |
am 424a69d5: Merge "Only generate private symbols that are needed."
* commit '424a69d502db85ffaecf9cad00321b677616a9c5':
  Only generate private symbols that are needed.
Diffstat (limited to 'tools/aapt/Command.cpp')
| -rw-r--r-- | tools/aapt/Command.cpp | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index 607056a6c1f2..c79e243828c4 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -1617,6 +1617,12 @@ int doPackage(Bundle* bundle)          goto bail;      } +    // Update symbols with information about which ones are needed as Java symbols. +    assets->applyJavaSymbols(); +    if (SourcePos::hasErrors()) { +        goto bail; +    } +      // If we've been asked to generate a dependency file, do that here      if (bundle->getGenDependencies()) {          // If this is the packaging step, generate the dependency file next to @@ -1638,7 +1644,7 @@ int doPackage(Bundle* bundle)      }      // Write out R.java constants -    if (assets->getPackage() == assets->getSymbolsPrivatePackage()) { +    if (!assets->havePrivateSymbols()) {          if (bundle->getCustomPackage() == NULL) {              // Write the R.java file into the appropriate class directory              // e.g. gen/com/foo/app/R.java  |