aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-07-21 15:31:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-07-21 15:31:25 +0000
commitb0e0d998d2f175a586e48b01d39761e4fceaf662 (patch)
tree337c493a010f433ed6b9b78bfcaf8e7482dbb0a1
parentc79f96d205d57b3dfed20655fc8b641b6c32795f (diff)
parentf6e3e75d99453a3d107785d43eb2b4a990dc2551 (diff)
downloadprotobuf-androidx-autofill-release.tar.gz
* changes: Not messing around with individual warnings Disable some overly-verbose warnings Updates BUILD to work in androidx-studio-integration
-rw-r--r--BUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/BUILD b/BUILD
index dbae719ff..07f06747f 100644
--- a/BUILD
+++ b/BUILD
@@ -23,7 +23,7 @@ config_setting(
# ZLIB configuration
################################################################################
-ZLIB_DEPS = ["@zlib//:zlib"]
+ZLIB_DEPS = ["@zlib_repo//:zlib"]
################################################################################
# Protobuf Runtime Library
@@ -49,7 +49,7 @@ MSVC_COPTS = [
]
COPTS = select({
- ":msvc" : MSVC_COPTS,
+ ":msvc": MSVC_COPTS,
"//conditions:default": [
"-DHAVE_PTHREAD",
"-DHAVE_ZLIB",
@@ -59,6 +59,9 @@ COPTS = select({
# Prevents ISO C++ const string assignment warnings for pyext sources.
"-Wno-write-strings",
],
+}) + select({
+ ":android": ["-std=c++11"],
+ "//conditions:default": [],
})
load(":compiler_config_setting.bzl", "create_compiler_config_setting")
@@ -141,7 +144,7 @@ cc_library(
],
hdrs = glob(["src/google/protobuf/**/*.h", "src/google/protobuf/**/*.inc"]),
copts = COPTS,
- includes = ["src/"],
+ includes = ["src/", "config/"],
linkopts = LINK_OPTS,
visibility = ["//visibility:public"],
)