OSDN Git Service

Use 32BIT nanopb library.
authorYu Shan <shanyu@google.com>
Sat, 26 Jan 2019 01:22:05 +0000 (17:22 -0800)
committerYu Shan <shanyu@google.com>
Tue, 19 Feb 2019 19:55:23 +0000 (11:55 -0800)
Test: None
Bug: 122292884
Change-Id: Idb0d56749e41aa97a760dfed5246330041c3da3a

libril/Android.mk
librilutils/Android.bp

index ee0530f..a7735d2 100644 (file)
@@ -26,9 +26,10 @@ LOCAL_SHARED_LIBRARIES := \
     libhwbinder
 
 LOCAL_STATIC_LIBRARIES := \
-    libprotobuf-c-nano-enable_malloc \
+    libprotobuf-c-nano-enable_malloc-32bit \
 
 LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror
+LOCAL_CFLAGS += -DPB_FIELD_32BIT
 
 ifeq ($(SIM_COUNT), 2)
     LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1
index 91ef34e..c5207f8 100644 (file)
@@ -16,10 +16,11 @@ cc_library {
         "-Wall",
         "-Wextra",
         "-Werror",
+        "-DPB_FIELD_32BIT"
     ],
 
     proto: {
-        type: "nanopb-c-enable_malloc",
+        type: "nanopb-c-enable_malloc-32bit",
         export_proto_headers: true,
     },