From 03990c2489864216132c319372ae209a1d6e6766 Mon Sep 17 00:00:00 2001 From: Shawn Willden Date: Tue, 24 Nov 2020 19:05:09 -0700 Subject: Improve Map canonicalization and add Map iterators. This CL changes Map storage to use a vector of pairs, which removes the need to copy the contents twice to sort them and makes it easy to support Map iteration. Support for recursive canonicalization is added as well, and Map::get() uses a binary search when the map is canonicalized. Test: cppbor_test_external Change-Id: Ie7cee5d504e205e1768a26ec5df8436805a6eefe --- Android.bp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index e57f1d7..adefa63 100644 --- a/Android.bp +++ b/Android.bp @@ -12,8 +12,20 @@ // See the License for the specific language governing permissions and // limitations under the License. +cc_defaults { + name: "libcppbor_defaults", + cflags: [ + "-Wall", + "-Wextra", + "-Werror", + ], +} + cc_library { name: "libcppbor_external", + defaults: [ + "libcppbor_defaults", + ], vendor_available: true, host_supported: true, srcs: [ @@ -31,6 +43,9 @@ cc_library { cc_test { name: "cppbor_test_external", + defaults: [ + "libcppbor_defaults", + ], srcs: [ "tests/cppbor_test.cpp" ], @@ -46,6 +61,9 @@ cc_test { cc_test_host { name: "cppbor_host_test_external", + defaults: [ + "libcppbor_defaults", + ], srcs: [ "tests/cppbor_test.cpp" ], -- cgit v1.2.3