summaryrefslogtreecommitdiff
path: root/libs/androidfw/Android.bp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2016-12-29 16:08:16 -0500
committerAdam Lesinski <adamlesinski@google.com>2017-01-11 17:20:36 -0800
commitda431a22da38f9c4085b5d71ed9a9c6122c6a5a6 (patch)
tree7fc684c1ec3c653ff98bdc8eff50addc081a02e1 /libs/androidfw/Android.bp
parent7ad1110ecd6a840fcd2895c62668828a1ca029c6 (diff)
libandroidfw: Add new support for shared libraries
This adds support for shared resource libraries in the new ResTable/AssetManager implementation. The dynamic package map encoded in resources.arsc is parsed and stored with LoadedArsc, and combined to form a resolved table in AssetManager2. Benchmarks show that this implementation is an order of magnitude faster on angler-userdebug (make libandroidfw_benchmarks). Test: libandroidfw_tests Change-Id: I57c80248728b63b162bf8269ac9495b53c3e7fa0
Diffstat (limited to 'libs/androidfw/Android.bp')
-rw-r--r--libs/androidfw/Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/androidfw/Android.bp b/libs/androidfw/Android.bp
index fb898355db92..ecf6bd4a0cf1 100644
--- a/libs/androidfw/Android.bp
+++ b/libs/androidfw/Android.bp
@@ -38,6 +38,7 @@ cc_library {
"ResourceTypes.cpp",
"StreamingZipInflater.cpp",
"TypeWrappers.cpp",
+ "Util.cpp",
"ZipFileRO.cpp",
"ZipUtils.cpp",
],
@@ -82,6 +83,9 @@ cc_library {
},
windows: {
enabled: true,
+ cppflags: ["-Wno-missing-field-initializers"], // The Windows compiler warns
+ // incorrectly for value
+ // initialization with {}.
},
},
}