diff options
author | Yu Shan <shanyu@google.com> | 2019-01-25 17:18:49 -0800 |
---|---|---|
committer | Yu Shan <shanyu@google.com> | 2019-02-19 12:05:32 -0800 |
commit | 3f5b6d4262e53c4d20cfabe95090fce39595def0 (patch) | |
tree | af8f6a07ae5d5f42243e5a9821fd88d12906e936 | |
parent | 4090366181d9d4f1158d1013c3656d0a15e14d47 (diff) | |
download | nanopb-c-3f5b6d4262e53c4d20cfabe95090fce39595def0.tar.gz |
Add 32BIT and 16BIT nanopb library.android-q-preview-1android-o-mr1-iot-release-1.0.10
Add 32BIT and 16BIT compile time flag for nanopb library to support
16BIT or 32BIT size, default is 8BIT. User need to use the corresponding
library when define the PB_FIELD_* flag during compilation.
Test: None
Bug: 122292884
Change-Id: I1b3c572e54297d020776e7721d37b65526f1a0ff
-rw-r--r-- | Android.bp | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -29,19 +29,45 @@ cc_defaults { ], sdk_version: "19", export_include_dirs: ["."], + vendor_available: true, } cc_library_static { name: "libprotobuf-c-nano", - vendor_available: true, defaults: ["libprotobuf-c-nano-defaults"], } cc_library_static { name: "libprotobuf-c-nano-enable_malloc", - vendor_available: true, defaults: ["libprotobuf-c-nano-defaults"], cflags: ["-DPB_ENABLE_MALLOC"], } +cc_library_static { + name: "libprotobuf-c-nano-16bit", + defaults: ["libprotobuf-c-nano-defaults"], + + cflags: ["-DPB_FIELD_16BIT"], +} + +cc_library_static { + name: "libprotobuf-c-nano-enable_malloc-16bit", + defaults: ["libprotobuf-c-nano-defaults"], + + cflags: ["-DPB_ENABLE_MALLOC", "-DPB_FIELD_16BIT"], +} + +cc_library_static { + name: "libprotobuf-c-nano-32bit", + defaults: ["libprotobuf-c-nano-defaults"], + + cflags: ["-DPB_FIELD_32BIT"], +} + +cc_library_static { + name: "libprotobuf-c-nano-enable_malloc-32bit", + defaults: ["libprotobuf-c-nano-defaults"], + + cflags: ["-DPB_ENABLE_MALLOC", "-DPB_FIELD_32BIT"], +} |