blob: d2dcc429ef11c20653ec33d96c402ee927a511e4 [file] [log] [blame]
Muxi Yan690aee62017-01-27 02:52:47 +00001%YAML 1.2
2--- |
Muxi Yan27e9db42017-01-30 09:21:05 -08003 # This file has been automatically generated from a template file.
4 # Please make modifications to
5 # `templates/gRPC-ProtoRPC.podspec.template` instead. This file can be
6 # regenerated from the template by running
7 # `tools/buildgen/generate_projects.sh`.
8
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02009 # Copyright 2015 gRPC authors.
Muxi Yan690aee62017-01-27 02:52:47 +000010 #
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020011 # Licensed under the Apache License, Version 2.0 (the "License");
12 # you may not use this file except in compliance with the License.
13 # You may obtain a copy of the License at
Muxi Yan690aee62017-01-27 02:52:47 +000014 #
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020015 # http://www.apache.org/licenses/LICENSE-2.0
Muxi Yan690aee62017-01-27 02:52:47 +000016 #
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020017 # Unless required by applicable law or agreed to in writing, software
18 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 # See the License for the specific language governing permissions and
21 # limitations under the License.
Muxi Yan690aee62017-01-27 02:52:47 +000022
Muxi Yan91bac112017-01-30 09:01:26 -080023
Muxi Yan690aee62017-01-27 02:52:47 +000024 Pod::Spec.new do |s|
25 s.name = 'gRPC-ProtoRPC'
26 version = '${settings.version}'
27 s.version = version
28 s.summary = 'RPC library for Protocol Buffers, based on gRPC'
Mehrdad Afsharibb3d95b2017-07-10 22:24:28 +000029 s.homepage = 'https://grpc.io'
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020030 s.license = 'Apache License, Version 2.0'
Muxi Yan690aee62017-01-27 02:52:47 +000031 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
32
33 s.source = {
34 :git => 'https://github.com/grpc/grpc.git',
35 :tag => "v#{version}",
36 }
37
Muxi Yan37d3fba2017-02-28 16:14:40 -080038 s.ios.deployment_target = '7.0'
Muxi Yan690aee62017-01-27 02:52:47 +000039 s.osx.deployment_target = '10.9'
40
41 name = 'ProtoRPC'
42 s.module_name = name
43 s.header_dir = name
44
45 src_dir = 'src/objective-c/ProtoRPC'
46 s.source_files = "#{src_dir}/*.{h,m}"
47 s.header_mappings_dir = "#{src_dir}"
48
49 s.dependency 'gRPC', version
50 s.dependency 'gRPC-RxLibrary', version
51 s.dependency 'Protobuf', '~> 3.0'
52 s.pod_target_xcconfig = {
53 # This is needed by all pods that depend on Protobuf:
54 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
55 # This is needed by all pods that depend on gRPC-RxLibrary:
56 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
Muxi Yan94d669e2017-10-22 14:56:10 -070057 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
Muxi Yan690aee62017-01-27 02:52:47 +000058 }
59 end