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/Debug.cpp | |
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/Debug.cpp')
-rw-r--r-- | tools/aapt2/Debug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/aapt2/Debug.cpp b/tools/aapt2/Debug.cpp index b4e75f9be3a9..4bea12973692 100644 --- a/tools/aapt2/Debug.cpp +++ b/tools/aapt2/Debug.cpp @@ -144,8 +144,8 @@ void Debug::printTable(ResourceTable* table) { PrintVisitor visitor; for (const auto& value : entry->values) { - std::cout << " (" << value.config << ") "; - value.value->accept(&visitor); + std::cout << " (" << value->config << ") "; + value->value->accept(&visitor); std::cout << std::endl; } } @@ -176,7 +176,7 @@ void Debug::printStyleGraph(ResourceTable* table, const ResourceName& targetStyl if (result) { ResourceEntry* entry = result.value().entry; for (const auto& value : entry->values) { - if (Style* style = valueCast<Style>(value.value.get())) { + if (Style* style = valueCast<Style>(value->value.get())) { if (style->parent && style->parent.value().name) { parents.insert(style->parent.value().name.value()); stylesToVisit.push(style->parent.value().name.value()); |