Debian Codegraph @

test/cpp/cocoapods/Podfile

raw
1 source 'https://github.com/CocoaPods/Specs.git'
2 platform :ios, '9.0'
3
4 install! 'cocoapods', :deterministic_uuids => false
5
6 # Location of gRPC's repo root relative to this file.
7 GRPC_LOCAL_SRC = '../../..'
8
9 %w(
10 test
11 generic
12 ).each do |target_name|
13 target target_name do
14 pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
15 pod 'gRPC-Core/Tests', :path => GRPC_LOCAL_SRC
16 pod 'gRPC-C++', :path => GRPC_LOCAL_SRC
17 pod 'BoringSSL-GRPC', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c", :inhibit_warnings => true
18 end
19 end
20
21 post_install do |installer|
22 installer.pods_project.targets.each do |target|
23 target.build_configurations.each do |config|
24 config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'YES'
25 end
26
27 # CocoaPods creates duplicated library targets of gRPC-Core when the test targets include
28 # non-default subspecs of gRPC-Core. All of these library targets start with prefix 'gRPC-Core'
29 # and require the same error suppresion.
30 if target.name.start_with?('gRPC-Core')
31 target.build_configurations.each do |config|
32 # TODO(zyc): Remove this setting after the issue is resolved
33 # GPR_UNREACHABLE_CODE causes "Control may reach end of non-void
34 # function" warning
35 config.build_settings['GCC_WARN_ABOUT_RETURN_TYPE'] = 'NO'
36 # Abseil isn't free from the following warning
37 config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO'
38 config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_CRONET_WITH_PACKET_COALESCING=1'
39 end
40 end
41 end
42 end