diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-02-12 22:18:51 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-02-12 22:21:48 -0800 |
commit | e4bb9eb5af5b0899dc0921d5580220b20e15bd5a (patch) | |
tree | d522014811735f3bdba1f916d83dc699189a14b9 /tools/aapt2/ResourceParser.h | |
parent | 59e04c6f92da584b322c87072f18e6cab4de4c60 (diff) |
AAPT2: Introduce notion of 'product' to ResourceTable
This allows us to preserve the various product definitions during the compile
phase, and allows us to select the product in the link phase.
This allows compiled files to remain product-independent, so that they do not need
to be recompiled when switching targets.
Bug:25958912
Change-Id: Iaa7eed25c834b67a39cdc9be43613e8b5ab6cdd7
Diffstat (limited to 'tools/aapt2/ResourceParser.h')
-rw-r--r-- | tools/aapt2/ResourceParser.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/aapt2/ResourceParser.h b/tools/aapt2/ResourceParser.h index 51cbbe19384e..ee5b33788312 100644 --- a/tools/aapt2/ResourceParser.h +++ b/tools/aapt2/ResourceParser.h @@ -34,13 +34,6 @@ struct ParsedResource; struct ResourceParserOptions { /** - * Optional product names by which to filter resources. - * This is like a preprocessor definition in that we strip out resources - * that don't match before we compile them. - */ - std::vector<std::u16string> products; - - /** * Whether the default setting for this parser is to allow translation. */ bool translatable = true; @@ -106,9 +99,6 @@ private: bool parseArrayImpl(xml::XmlPullParser* parser, ParsedResource* outResource, uint32_t typeMask); bool parsePlural(xml::XmlPullParser* parser, ParsedResource* outResource); - bool shouldStripResource(const ResourceNameRef& name, - const Maybe<std::u16string>& product) const; - IDiagnostics* mDiag; ResourceTable* mTable; Source mSource; |