diff options
| author | 2009-11-30 18:05:10 -0800 | |
|---|---|---|
| committer | 2009-11-30 18:05:10 -0800 | |
| commit | 63459ad555c10de1f316d6de01fc3cd0c0aaa457 (patch) | |
| tree | 7ad778da942760c7ad82559a3fbb56cb313489a3 /tools/aapt/Command.cpp | |
| parent | abf7fed21bfa7eb899be558477d928a7c9f3e1f6 (diff) | |
Add --custom-package to aapt
This is needed to add library support to the SDK.
The goal is to have libraries and main project use the same
package for the R/Manifest classes to that they can share code
and resources.
BUG 2293994
Change-Id: Ie4cdb5a3bdabe1760a91316fd8969e4f53344bf9
Diffstat (limited to 'tools/aapt/Command.cpp')
| -rw-r--r-- | tools/aapt/Command.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index 1a536d6a8085..0ef5d555dff3 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -1151,7 +1151,12 @@ int doPackage(Bundle* bundle) // Write out R.java constants if (assets->getPackage() == assets->getSymbolsPrivatePackage()) { - err = writeResourceSymbols(bundle, assets, assets->getPackage(), true); + if (bundle->getCustomPackage() == NULL) { + err = writeResourceSymbols(bundle, assets, assets->getPackage(), true); + } else { + const String8 customPkg(bundle->getCustomPackage()); + err = writeResourceSymbols(bundle, assets, customPkg, true); + } if (err < 0) { goto bail; } |