Imported Upstream version 1.33.1
[platform/upstream/grpc.git] / src / objective-c / examples / InterceptorSample / Podfile
1 platform :ios, '8.0'
2
3 install! 'cocoapods', :deterministic_uuids => false
4
5 # Default to use framework, so that providing no 'FRAMEWORK' env parameter works consistently
6 # for all Samples, specifically because Swift only supports framework.
7 # Only effective for examples/
8 use_frameworks! if ENV['FRAMEWORKS'] != 'NO'
9
10 ROOT_DIR = '../../../..'
11
12 target 'InterceptorSample' do
13   pod 'gRPC-ProtoRPC', :path => ROOT_DIR
14   pod 'gRPC', :path => ROOT_DIR
15   pod 'gRPC-Core', :path => ROOT_DIR
16   pod 'gRPC-RxLibrary', :path => ROOT_DIR
17   pod 'RemoteTest', :path => "../RemoteTestClient"
18   pod '!ProtoCompiler-gRPCPlugin', :path => "#{ROOT_DIR}/src/objective-c"
19 end
20
21 pre_install do |installer|
22   grpc_core_spec = installer.pod_targets.find{|t| t.name.start_with?('gRPC-Core')}.root_spec
23
24   src_root = "$(PODS_TARGET_SRCROOT)"
25   grpc_core_spec.pod_target_xcconfig = {
26     'GRPC_SRC_ROOT' => src_root,
27     'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(GRPC_SRC_ROOT)/include"',
28     'USER_HEADER_SEARCH_PATHS' => '"$(GRPC_SRC_ROOT)"',
29     # If we don't set these two settings, `include/grpc/support/time.h` and
30     # `src/core/lib/gpr/string.h` shadow the system `<time.h>` and `<string.h>`, breaking the
31     # build.
32     'USE_HEADERMAP' => 'NO',
33     'ALWAYS_SEARCH_USER_PATHS' => 'NO',
34   }
35 end
36