aboutsummaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorJorge Canizales <jcanizales@google.com>2015-06-28 15:23:02 -0700
committerJorge Canizales <jcanizales@google.com>2015-07-06 11:17:39 -0700
commitd5d7bb3bfbe3702617f604834d61d3357c8c87fb (patch)
treea7cd08f716f3eaf6b470a0737d422eb3965dcf7b /BUILD
parentd40a0db202433ba002a3e104165d4414e8929432 (diff)
downloadprotobuf-d5d7bb3bfbe3702617f604834d61d3357c8c87fb.tar.gz
protobuf-d5d7bb3bfbe3702617f604834d61d3357c8c87fb.tar.bz2
protobuf-d5d7bb3bfbe3702617f604834d61d3357c8c87fb.zip
Add Bazel target for protobuf ObjC runtime
Also add WKT headers to the umbrella file, and simplify Podspec with it. Plus some layout improvements to the BUILD file.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD49
1 files changed, 33 insertions, 16 deletions
diff --git a/BUILD b/BUILD
index f5077060..5177e43d 100644
--- a/BUILD
+++ b/BUILD
@@ -2,6 +2,10 @@
licenses(["notice"])
+################################################################################
+# Protobuf Runtime Library
+################################################################################
+
COPTS = [
"-DHAVE_PTHREAD",
"-Wall",
@@ -109,6 +113,34 @@ cc_library(
deps = [":protobuf_lite"],
)
+objc_library(
+ name = "protobuf_objc",
+ hdrs = ["objectivec/GPBProtocolBuffers.h"],
+ includes = ["objectivec"],
+ non_arc_srcs = ["objectivec/GPBProtocolBuffers.m"],
+ visibility = ["//visibility:public"],
+)
+
+WELL_KNOWN_PROTOS = [
+ # AUTOGEN(well_known_protos)
+ "google/protobuf/any.proto",
+ "google/protobuf/api.proto",
+ "google/protobuf/compiler/plugin.proto",
+ "google/protobuf/descriptor.proto",
+ "google/protobuf/duration.proto",
+ "google/protobuf/empty.proto",
+ "google/protobuf/field_mask.proto",
+ "google/protobuf/source_context.proto",
+ "google/protobuf/struct.proto",
+ "google/protobuf/timestamp.proto",
+ "google/protobuf/type.proto",
+ "google/protobuf/wrappers.proto",
+]
+
+################################################################################
+# Protocol Buffers Compiler
+################################################################################
+
cc_library(
name = "protoc_lib",
srcs = [
@@ -216,22 +248,6 @@ cc_binary(
deps = [":protoc_lib"],
)
-WELL_KNOWN_PROTOS = [
- # AUTOGEN(well_known_protos)
- "google/protobuf/any.proto",
- "google/protobuf/api.proto",
- "google/protobuf/compiler/plugin.proto",
- "google/protobuf/descriptor.proto",
- "google/protobuf/duration.proto",
- "google/protobuf/empty.proto",
- "google/protobuf/field_mask.proto",
- "google/protobuf/source_context.proto",
- "google/protobuf/struct.proto",
- "google/protobuf/timestamp.proto",
- "google/protobuf/type.proto",
- "google/protobuf/wrappers.proto",
-]
-
################################################################################
# Tests
################################################################################
@@ -403,3 +419,4 @@ cc_test(
"//external:gtest_main",
],
)
+