diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2015-07-06 13:05:46 -0700 |
---|---|---|
committer | Paul Yang <TeBoring@users.noreply.github.com> | 2015-07-06 13:05:46 -0700 |
commit | ab2094de11155ffa57e7d38a9b996dd038af981e (patch) | |
tree | 640f3c07329273b2979759c38ffe94f420f6a562 /BUILD | |
parent | 0a27430bd4c4e5deb49754b031fa3c3657cfb37d (diff) | |
parent | d5d7bb3bfbe3702617f604834d61d3357c8c87fb (diff) | |
download | protobuf-ab2094de11155ffa57e7d38a9b996dd038af981e.tar.gz protobuf-ab2094de11155ffa57e7d38a9b996dd038af981e.tar.bz2 protobuf-ab2094de11155ffa57e7d38a9b996dd038af981e.zip |
Merge pull request #554 from jcanizales/proto-objc-bazel
Add Bazel target for the Objective-C protobuf runtime
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 49 |
1 files changed, 33 insertions, 16 deletions
@@ -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", ], ) + |