aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-03-30 22:38:55 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-03-30 22:38:55 +0000
commitb6e7adec682c4ad5fae8cc83102b681cfc04f2a6 (patch)
tree835e889b7747cdd6701f5f6c6741e988c54a3a78
parenta7aa66d9fb3d399d889861c3f6f970a5457a485d (diff)
parent9a004f65098ef0bddb64a748733258654ed3d5bb (diff)
downloadplatform_external_protobuf-b6e7adec682c4ad5fae8cc83102b681cfc04f2a6.tar.gz
platform_external_protobuf-b6e7adec682c4ad5fae8cc83102b681cfc04f2a6.tar.bz2
platform_external_protobuf-b6e7adec682c4ad5fae8cc83102b681cfc04f2a6.zip
Merge "Move most protoc sources to libprotoc" am: df8e697966 am: 9a004f6509
Change-Id: Idea8faf32147eee0dbbaefd6fe3ffbd07c906b6c
-rw-r--r--Android.bp112
1 files changed, 37 insertions, 75 deletions
diff --git a/Android.bp b/Android.bp
index 2149ee335..d295f67a8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -232,80 +232,6 @@ cc_library {
srcs: [
"src/google/protobuf/compiler/code_generator.cc",
- "src/google/protobuf/compiler/plugin.cc",
- "src/google/protobuf/compiler/plugin.pb.cc",
- ],
-
- local_include_dirs: [
- "config",
- ],
- export_include_dirs: [
- "src",
- "config",
- ],
-
- target: {
- windows: {
- enabled: true,
- // defined by the global cflags, but redefined by protobuf
- cflags: ["-UWIN32_LEAN_AND_MEAN"],
- },
- },
-
- rtti: true,
-}
-
-cc_library_host_static {
- name: "libprotoc-kythe",
- defaults: ["protobuf-cflags-defaults"],
- srcs: [
- "src/google/protobuf/compiler/code_generator.cc",
- "src/google/protobuf/compiler/cpp/cpp_helpers.cc",
- "src/google/protobuf/compiler/cpp/cpp_enum.cc",
- "src/google/protobuf/compiler/cpp/cpp_enum_field.cc",
- "src/google/protobuf/compiler/cpp/cpp_extension.cc",
- "src/google/protobuf/compiler/cpp/cpp_field.cc",
- "src/google/protobuf/compiler/cpp/cpp_file.cc",
- "src/google/protobuf/compiler/cpp/cpp_generator.cc",
- "src/google/protobuf/compiler/cpp/cpp_map_field.cc",
- "src/google/protobuf/compiler/cpp/cpp_message.cc",
- "src/google/protobuf/compiler/cpp/cpp_message_field.cc",
- "src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc",
- "src/google/protobuf/compiler/cpp/cpp_primitive_field.cc",
- "src/google/protobuf/compiler/cpp/cpp_service.cc",
- "src/google/protobuf/compiler/cpp/cpp_string_field.cc",
- "src/google/protobuf/compiler/plugin.cc",
- "src/google/protobuf/compiler/plugin.pb.cc",
- ],
- local_include_dirs: [
- "src",
- ],
- visibility: ["//external/kythe"],
-}
-
-// Android Protocol buffer compiler, aprotoc (host executable)
-// used by the build systems as $(PROTOC) defined in
-// build/core/config.mk
-// =======================================================
-cc_binary_host {
- name: "aprotoc",
- defaults: ["protobuf-cflags-defaults"],
-
- target: {
- windows: {
- enabled: true,
- // defined by the global cflags, but redefined by protobuf
- cflags: ["-UWIN32_LEAN_AND_MEAN"],
- },
- },
-
- // Statically link libc++ because we copy aprotoc to unbundled projects where
- // libc++.so may not be available.
- stl: "libc++_static",
-
- srcs: [
- "src/google/protobuf/compiler/main.cc",
- "src/google/protobuf/compiler/code_generator.cc",
"src/google/protobuf/compiler/command_line_interface.cc",
"src/google/protobuf/compiler/cpp/cpp_enum.cc",
"src/google/protobuf/compiler/cpp/cpp_enum_field.cc",
@@ -388,9 +314,45 @@ cc_binary_host {
"src/google/protobuf/compiler/zip_writer.cc",
],
- local_include_dirs: [
+ export_include_dirs: [
"android",
"src",
+ "config",
+ ],
+
+ target: {
+ windows: {
+ enabled: true,
+ // defined by the global cflags, but redefined by protobuf
+ cflags: ["-UWIN32_LEAN_AND_MEAN"],
+ },
+ },
+
+ rtti: true,
+}
+
+// Android Protocol buffer compiler, aprotoc (host executable)
+// used by the build systems as $(PROTOC) defined in
+// build/core/config.mk
+// =======================================================
+cc_binary_host {
+ name: "aprotoc",
+ defaults: ["protobuf-cflags-defaults"],
+
+ target: {
+ windows: {
+ enabled: true,
+ // defined by the global cflags, but redefined by protobuf
+ cflags: ["-UWIN32_LEAN_AND_MEAN"],
+ },
+ },
+
+ // Statically link libc++ because we copy aprotoc to unbundled projects where
+ // libc++.so may not be available.
+ stl: "libc++_static",
+
+ srcs: [
+ "src/google/protobuf/compiler/main.cc",
],
static_libs: [