aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2015-06-29 10:33:45 -0700
committerGravatar Michael Lumish <mlumish@google.com>2015-06-29 10:33:45 -0700
commit587b5f6b7618b05620797aca6a45f3461a3eb047 (patch)
tree948d5be1d61926ce9311e26920a8ff4d8cc9520b /BUILD
parent6d3fc9573ef62fa151d58ff49dfdc7c9e9c22155 (diff)
parentbba8076ed4539205c5ecaaff31fae0571bd199f3 (diff)
Merge pull request #2240 from jcanizales/bazel-grpc-client
Add Bazel target for the GRPCClient library
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD60
1 files changed, 43 insertions, 17 deletions
diff --git a/BUILD b/BUILD
index 83130eabb3..934146f57e 100644
--- a/BUILD
+++ b/BUILD
@@ -1212,24 +1212,50 @@ objc_path = "src/objective-c"
rx_library_path = objc_path + "/RxLibrary"
objc_library(
- name = "rx_library",
- hdrs = glob([
- rx_library_path + "/*.h",
- rx_library_path + "/transformations/*.h",
- ]),
- srcs = glob([
- rx_library_path + "/*.m",
- rx_library_path + "/transformations/*.m",
- ]),
- includes = [objc_path],
- deps = [
- ":rx_library_private",
- ],
+ name = "rx_library",
+ hdrs = glob([
+ rx_library_path + "/*.h",
+ rx_library_path + "/transformations/*.h",
+ ]),
+ srcs = glob([
+ rx_library_path + "/*.m",
+ rx_library_path + "/transformations/*.m",
+ ]),
+ includes = [objc_path],
+ deps = [
+ ":rx_library_private",
+ ],
+)
+
+objc_library(
+ name = "rx_library_private",
+ hdrs = glob([rx_library_path + "/private/*.h"]),
+ srcs = glob([rx_library_path + "/private/*.m"]),
+ visibility = ["//visibility:private"],
)
+objc_client_path = objc_path + "/GRPCClient"
+
objc_library(
- name = "rx_library_private",
- hdrs = glob([rx_library_path + "/private/*.h"]),
- srcs = glob([rx_library_path + "/private/*.m"]),
- visibility = ["//visibility:private"],
+ name = "grpc_client",
+ hdrs = glob([
+ objc_client_path + "/*.h",
+ objc_client_path + "/private/*.h",
+ ]),
+ srcs = glob([
+ objc_client_path + "/*.m",
+ objc_client_path + "/private/*.m",
+ ]),
+ includes = [objc_path],
+ bundles = [":gRPCCertificates"],
+ deps = [
+ ":grpc_objc",
+ ":rx_library",
+ ],
+)
+
+objc_bundle_library(
+ # The choice of name is signicant here, since it determines the bundle name.
+ name = "gRPCCertificates",
+ resources = ["etc/roots.pem"],
)