blob: d6749e0b6b37ecee2fcaeb21497e7d3154c019fb [file] [log] [blame]
Muxi Yan27e9db42017-01-30 09:21:05 -08001# This file has been automatically generated from a template file.
2# Please make modifications to
3# `templates/gRPC-ProtoRPC.podspec.template` instead. This file can be
4# regenerated from the template by running
5# `tools/buildgen/generate_projects.sh`.
6
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02007# Copyright 2015 gRPC authors.
Jorge Canizalese487a722016-04-30 12:05:26 -07008#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02009# Licensed under the Apache License, Version 2.0 (the "License");
10# you may not use this file except in compliance with the License.
11# You may obtain a copy of the License at
Jorge Canizalese487a722016-04-30 12:05:26 -070012#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020013# http://www.apache.org/licenses/LICENSE-2.0
Jorge Canizalese487a722016-04-30 12:05:26 -070014#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020015# Unless required by applicable law or agreed to in writing, software
16# distributed under the License is distributed on an "AS IS" BASIS,
17# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18# See the License for the specific language governing permissions and
19# limitations under the License.
Jorge Canizalese487a722016-04-30 12:05:26 -070020
Muxi Yan91bac112017-01-30 09:01:26 -080021
Jorge Canizalese487a722016-04-30 12:05:26 -070022Pod::Spec.new do |s|
23 s.name = 'gRPC-ProtoRPC'
David Garcia Quintasaebcdbd2017-05-30 14:14:27 -070024 version = '1.5.0-dev'
Jorge Canizalese487a722016-04-30 12:05:26 -070025 s.version = version
26 s.summary = 'RPC library for Protocol Buffers, based on gRPC'
27 s.homepage = 'http://www.grpc.io'
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020028 s.license = 'Apache License, Version 2.0'
Jorge Canizalese487a722016-04-30 12:05:26 -070029 s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' }
30
31 s.source = {
32 :git => 'https://github.com/grpc/grpc.git',
Muxi Yan690aee62017-01-27 02:52:47 +000033 :tag => "v#{version}",
Jorge Canizalese487a722016-04-30 12:05:26 -070034 }
35
Muxi Yan37d3fba2017-02-28 16:14:40 -080036 s.ios.deployment_target = '7.0'
Jorge Canizalese487a722016-04-30 12:05:26 -070037 s.osx.deployment_target = '10.9'
38
39 name = 'ProtoRPC'
40 s.module_name = name
41 s.header_dir = name
42
43 src_dir = 'src/objective-c/ProtoRPC'
44 s.source_files = "#{src_dir}/*.{h,m}"
45 s.header_mappings_dir = "#{src_dir}"
46
47 s.dependency 'gRPC', version
48 s.dependency 'gRPC-RxLibrary', version
Jorge Canizales72dce2d2016-07-29 15:42:00 -070049 s.dependency 'Protobuf', '~> 3.0'
Jorge Canizalese487a722016-04-30 12:05:26 -070050 s.pod_target_xcconfig = {
Jorge Canizalese4704d32016-07-18 11:08:04 -070051 # This is needed by all pods that depend on Protobuf:
Jorge Canizalese487a722016-04-30 12:05:26 -070052 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
Jorge Canizalese4704d32016-07-18 11:08:04 -070053 # This is needed by all pods that depend on gRPC-RxLibrary:
54 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
Jorge Canizalese487a722016-04-30 12:05:26 -070055 }
56end