blob: 75fd592e7560b21554be5612f4cf8d91ce1603eb [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'
Juanli Shen8ceb27a2018-08-27 14:27:55 -070024 version = '1.16.0-dev'
Jorge Canizalese487a722016-04-30 12:05:26 -070025 s.version = version
26 s.summary = 'RPC library for Protocol Buffers, based on gRPC'
Mehrdad Afsharibb3d95b2017-07-10 22:24:28 +000027 s.homepage = 'https://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'
Jorge Canizalese487a722016-04-30 12:05:26 -070044
Muxi Yan6df75c52018-06-07 16:27:54 -070045 s.default_subspec = 'Main'
Muxi Yan08876da2018-06-06 20:06:35 -070046
47 s.subspec 'Main' do |ss|
48 ss.header_mappings_dir = "#{src_dir}"
49 ss.dependency 'gRPC', version
50 ss.dependency 'gRPC-RxLibrary', version
51 ss.dependency 'Protobuf', '~> 3.0'
52
53 ss.source_files = "#{src_dir}/*.{h,m}"
54 end
55 s.subspec 'CFStream' do |ss|
56 ss.dependency 'gRPC/CFStream', version
57 ss.dependency "#{s.name}/Main", version
58 ss.pod_target_xcconfig = {
59 'GCC_PREPROCESSOR_DEFINITIONS' => 'GRPC_CFSTREAM=1'
60 }
61 end
62
Jorge Canizalese487a722016-04-30 12:05:26 -070063 s.pod_target_xcconfig = {
Jorge Canizalese4704d32016-07-18 11:08:04 -070064 # This is needed by all pods that depend on Protobuf:
Jorge Canizalese487a722016-04-30 12:05:26 -070065 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
Jorge Canizalese4704d32016-07-18 11:08:04 -070066 # This is needed by all pods that depend on gRPC-RxLibrary:
67 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
Muxi Yan94d669e2017-10-22 14:56:10 -070068 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
Jorge Canizalese487a722016-04-30 12:05:26 -070069 }
70end