aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 9b747a02c..61ce947a0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -184,6 +184,26 @@ cc_library_shared {
},
}
+// Compiler library for the host
+// =======================================================
+cc_library_host_shared {
+ name: "libprotoc",
+ defaults: ["libprotobuf-cpp-lite-defaults"],
+
+ srcs: protobuf_cc_full_src_files + [
+ "src/google/protobuf/compiler/plugin.pb.cc",
+ ],
+
+ local_include_dirs: [
+ "config",
+ ],
+ export_include_dirs: ["src", "config"],
+
+ rtti: true,
+
+ shared_libs: ["libz-host"],
+}
+
// Android Protocol buffer compiler, aprotoc (host executable)
// used by the build systems as $(PROTOC) defined in
// build/core/config.mk