• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1platform :tvos, '10.0'
2
3install! 'cocoapods', :deterministic_uuids => false
4
5use_frameworks! if ENV['FRAMEWORKS'] != 'NO'
6
7ROOT_DIR = '../../../..'
8
9target 'tvOS-sample' do
10  pod 'gRPC-ProtoRPC', :path => ROOT_DIR
11  pod 'gRPC', :path => ROOT_DIR
12  pod 'gRPC-Core', :path => ROOT_DIR
13  pod 'gRPC-RxLibrary', :path => ROOT_DIR
14  pod 'RemoteTest', :path => "../RemoteTestClient"
15  pod '!ProtoCompiler-gRPCPlugin', :path => "#{ROOT_DIR}/src/objective-c"
16end
17
18pre_install do |installer|
19  grpc_core_spec = installer.pod_targets.find{|t| t.name.start_with?('gRPC-Core')}.root_spec
20
21  src_root = "$(PODS_TARGET_SRCROOT)"
22  grpc_core_spec.pod_target_xcconfig = {
23    'GRPC_SRC_ROOT' => src_root,
24    'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(GRPC_SRC_ROOT)/include"',
25    'USER_HEADER_SEARCH_PATHS' => '"$(GRPC_SRC_ROOT)"',
26    # If we don't set these two settings, `include/grpc/support/time.h` and
27    # `src/core/lib/gpr/string.h` shadow the system `<time.h>` and `<string.h>`, breaking the
28    # build.
29    'USE_HEADERMAP' => 'NO',
30    'ALWAYS_SEARCH_USER_PATHS' => 'NO',
31  }
32end
33
34