diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-12-07 14:02:15 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2015-12-07 14:52:53 -0800 |
commit | 78713998f94a2cc2562aa0ae7761bbc563d8eafa (patch) | |
tree | 753a994b7373774fafa2c4258cc9c53afa845c29 /tools/aapt/Resource.cpp | |
parent | 5f986095bed776c119d2f5452e0afeac3a437ea2 (diff) |
Specify private resource package in Android.mk
Private resource package shouldn't be buried in some resource file.
It can now be specified on the command line via the Android.mk file.
Change-Id: I9e3cb0bf54830d6b021077af271913306c024701
Diffstat (limited to 'tools/aapt/Resource.cpp')
-rw-r--r-- | tools/aapt/Resource.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index fb0fe38da1ff..576f076f4a3f 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -1161,6 +1161,12 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& assets, sp<ApkBuil printf("Creating resources for package %s\n", assets->getPackage().string()); } + // Set the private symbols package if it was declared. + // This can also be declared in XML as <private-symbols name="package" /> + if (bundle->getPrivateSymbolsPackage().size() != 0) { + assets->setSymbolsPrivatePackage(bundle->getPrivateSymbolsPackage()); + } + ResourceTable::PackageType packageType = ResourceTable::App; if (bundle->getBuildSharedLibrary()) { packageType = ResourceTable::SharedLibrary; |