aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorShawn Willden <swillden@google.com>2020-11-24 19:05:09 -0700
committerShawn Willden <swillden@google.com>2020-12-14 09:38:50 -0700
commit03990c2489864216132c319372ae209a1d6e6766 (patch)
tree29614bcd70bb06afbe966510ddb8049a165d4024 /Android.bp
parent85e5286b597c890689e63ab7febc01db5da67906 (diff)
downloadlibcppbor-03990c2489864216132c319372ae209a1d6e6766.tar.gz
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
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp18
1 files changed, 18 insertions, 0 deletions
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"
],