Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 1 | %YAML 1.2 |
| 2 | --- | |
Muxi Yan | 27e9db4 | 2017-01-30 09:21:05 -0800 | [diff] [blame] | 3 | # This file has been automatically generated from a template file. |
| 4 | # Please make modifications to `templates/gRPC.podspec.template` |
| 5 | # instead. This file can be regenerated from the template by running |
| 6 | # `tools/buildgen/generate_projects.sh`. |
| 7 | |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 8 | # Copyright 2015 gRPC authors. |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 9 | # |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 10 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 11 | # you may not use this file except in compliance with the License. |
| 12 | # You may obtain a copy of the License at |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 13 | # |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 14 | # http://www.apache.org/licenses/LICENSE-2.0 |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 15 | # |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 16 | # Unless required by applicable law or agreed to in writing, software |
| 17 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 18 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 | # See the License for the specific language governing permissions and |
| 20 | # limitations under the License. |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 21 | |
| 22 | |
| 23 | Pod::Spec.new do |s| |
| 24 | s.name = 'gRPC' |
| 25 | version = '${settings.version}' |
| 26 | s.version = version |
| 27 | s.summary = 'gRPC client library for iOS/OSX' |
Mehrdad Afshari | bb3d95b | 2017-07-10 22:24:28 +0000 | [diff] [blame] | 28 | s.homepage = 'https://grpc.io' |
Jan Tattermusch | 4d5c310 | 2017-06-07 10:23:56 +0200 | [diff] [blame] | 29 | s.license = 'Apache License, Version 2.0' |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 30 | s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' } |
| 31 | |
| 32 | s.source = { |
| 33 | :git => 'https://github.com/grpc/grpc.git', |
| 34 | :tag => "v#{version}", |
| 35 | } |
| 36 | |
Muxi Yan | 37d3fba | 2017-02-28 16:14:40 -0800 | [diff] [blame] | 37 | s.ios.deployment_target = '7.0' |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 38 | s.osx.deployment_target = '10.9' |
| 39 | |
| 40 | name = 'GRPCClient' |
| 41 | s.module_name = name |
| 42 | s.header_dir = name |
| 43 | |
| 44 | src_dir = 'src/objective-c/GRPCClient' |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 45 | |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 46 | s.dependency 'gRPC-RxLibrary', version |
Muxi Yan | b82f82b | 2017-08-14 12:01:14 -0700 | [diff] [blame^] | 47 | s.default_subspec = 'Main' |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 48 | |
| 49 | # Certificates, to be able to establish TLS connections: |
| 50 | s.resource_bundles = { 'gRPCCertificates' => ['etc/roots.pem'] } |
| 51 | |
| 52 | s.pod_target_xcconfig = { |
| 53 | # This is needed by all pods that depend on gRPC-RxLibrary: |
| 54 | 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES', |
| 55 | } |
Muxi Yan | b82f82b | 2017-08-14 12:01:14 -0700 | [diff] [blame^] | 56 | |
| 57 | s.subspec 'Main' do |ss| |
| 58 | ss.header_mappings_dir = "#{src_dir}" |
| 59 | |
| 60 | ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" |
| 61 | ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}" |
| 62 | ss.private_header_files = "#{src_dir}/private/*.h" |
| 63 | |
| 64 | ss.dependency 'gRPC-Core', version |
| 65 | end |
| 66 | |
| 67 | s.subspec 'GID' do |ss| |
| 68 | ss.header_mappings_dir = "#{src_dir}" |
| 69 | |
| 70 | ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}" |
| 71 | |
| 72 | ss.dependency 'Google/SignIn' |
| 73 | end |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 74 | end |