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', |
Muxi Yan | 94d669e | 2017-10-22 14:56:10 -0700 | [diff] [blame] | 55 | 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO', |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 56 | } |
Muxi Yan | b82f82b | 2017-08-14 12:01:14 -0700 | [diff] [blame] | 57 | |
| 58 | s.subspec 'Main' do |ss| |
| 59 | ss.header_mappings_dir = "#{src_dir}" |
| 60 | |
| 61 | ss.source_files = "#{src_dir}/*.{h,m}", "#{src_dir}/**/*.{h,m}" |
| 62 | ss.exclude_files = "#{src_dir}/GRPCCall+GID.{h,m}" |
| 63 | ss.private_header_files = "#{src_dir}/private/*.h" |
| 64 | |
| 65 | ss.dependency 'gRPC-Core', version |
| 66 | end |
| 67 | |
| 68 | s.subspec 'GID' do |ss| |
Muxi Yan | 7a1fe0d | 2017-10-06 15:33:10 -0700 | [diff] [blame] | 69 | ss.ios.deployment_target = '7.0' |
| 70 | |
Muxi Yan | b82f82b | 2017-08-14 12:01:14 -0700 | [diff] [blame] | 71 | ss.header_mappings_dir = "#{src_dir}" |
| 72 | |
| 73 | ss.source_files = "#{src_dir}/GRPCCall+GID.{h,m}" |
| 74 | |
Muxi Yan | 7a1fe0d | 2017-10-06 15:33:10 -0700 | [diff] [blame] | 75 | ss.dependency "#{s.name}/Main", version |
Muxi Yan | b82f82b | 2017-08-14 12:01:14 -0700 | [diff] [blame] | 76 | ss.dependency 'Google/SignIn' |
| 77 | end |
Muxi Yan | 690aee6 | 2017-01-27 02:52:47 +0000 | [diff] [blame] | 78 | end |