1 # Copyright 2019 gRPC authors.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 licenses(["notice"]) # 3-clause BSD
17 package(default_visibility = ["//visibility:public"])
19 load("@com_github_grpc_grpc//bazel:objc_grpc_library.bzl", "objc_grpc_library")
20 load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application")
21 load("@build_bazel_rules_apple//apple:macos.bzl", "macos_application")
24 name = "HelloWorld_grpc_proto",
25 srcs = ["//examples:protos/helloworld.proto"],
27 deps = ["//examples:helloworld_proto"],
30 # This one works with import "external/com_github_grpc_grpc/examples/protos/Keyvaluestore.pbrpc.h"
32 name = "Keyvaluestore_grpc_proto_external",
33 srcs = ["//external/com_github_grpc_grpc/examples:protos/keyvaluestore.proto"],
35 deps = ["@com_github_grpc_grpc//examples:keyvaluestore_proto"],
39 name = "HelloWorld-lib",
40 srcs = glob(["helloworld/**/*.m"]),
41 hdrs = glob(["helloworld/**/*.h"]),
43 "helloworld/HelloWorld/Base.lproj/**",
44 "helloworld/HelloWorld/Images.xcassets/**",
46 includes = ["helloworld/HelloWorld"],
48 deps = [":HelloWorld_grpc_proto"],
53 bundle_id = "Google.HelloWorld",
58 infoplists = ["helloworld/HelloWorld/Info.plist"],
59 minimum_os_version = "8.0",
61 deps = [":HelloWorld-lib"],
65 name = "HelloWorldMacos-lib",
66 srcs = glob(["helloworld_macos/**/*.m"]),
67 hdrs = glob(["helloworld_macos/**/*.h"]),
69 "helloworld_macos/HelloWorld/Base.lproj/**",
70 "helloworld_macos/HelloWorld/Images.xcassets/**",
72 includes = ["helloworld_macos/HelloWorld"],
74 deps = [":HelloWorld_grpc_proto"],
78 name = "HelloWorldMacos",
79 bundle_id = "io.grpc.HelloWorld",
80 entitlements = "helloworld_macos/HelloWorld/Helloworld.entitlements",
81 infoplists = ["helloworld_macos/HelloWorld/Info.plist"],
82 minimum_os_version = "10.13",
84 deps = [":HelloWorldMacos-lib"],
89 srcs = ["//examples:protos/route_guide.proto"],
91 deps = ["//examples:route_guide_proto"],
95 name = "RouteGuideClient-lib",
96 srcs = glob(["route_guide/**/*.m"]),
97 hdrs = glob(["route_guide/**/*.h"]),
99 "route_guide/Misc/Base.lproj/**",
100 "route_guide/Misc/Images.xcassets/**",
101 "route_guide/route_guide_db.json",
103 includes = ["route_guide/Misc"],
105 deps = [":RouteGuide"],
109 name = "RouteGuideClient",
110 bundle_id = "gRPC.RouteGuideClient",
115 infoplists = ["route_guide/Misc/Info.plist"],
116 minimum_os_version = "8.0",
118 deps = [":RouteGuideClient-lib"],