aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf
diff options
context:
space:
mode:
authorGravatar Carmi Grushko <carmi@google.com>2017-01-24 15:55:44 -0500
committerGravatar László Csomor <laszlocsomor@google.com>2017-01-27 11:01:45 +0100
commit942e3c7a70eca041c468e6615e444bc889668452 (patch)
tree2496c050ee8c92744131d13e2026ef9c6671837b /third_party/protobuf
parent930fa9b24cb7b1e516f92a200d9087fd3ba561e5 (diff)
Make protobuf's BUILD file standlone
This is in preparation for placing it in a local repository of its own. The goal is to make proto_library depend on @com_google_protobuf//:protoc by default instead of //third_party/protobuf:protoc. This, in turn, will allow easier set-up for proto_library: just download a protobuf distro and point at it from their WORKSPACE. Change-Id: I1b1ec61a414a765843553c84a179a6768956180a
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/3.0.0/BUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/third_party/protobuf/3.0.0/BUILD b/third_party/protobuf/3.0.0/BUILD
index 4fadeafa05..35c3084b41 100644
--- a/third_party/protobuf/3.0.0/BUILD
+++ b/third_party/protobuf/3.0.0/BUILD
@@ -2,7 +2,7 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
-load("//third_party/protobuf/3.0.0:protobuf.bzl", "py_proto_library")
+load(":protobuf.bzl", "py_proto_library")
filegroup(
name = "srcs",
@@ -95,13 +95,18 @@ COPTS = [
]
LINK_OPTS = select({
- "//src:freebsd": [
+ ":freebsd": [
"-lpthread",
"-lm",
],
"//conditions:default": ["-lpthread"],
})
+config_setting(
+ name = "freebsd",
+ values = {"cpu": "freebsd"},
+)
+
cc_library(
name = "protobuf_lite",
srcs = [