diff options
author | 2016-08-01 11:25:59 -0700 | |
---|---|---|
committer | 2016-08-01 11:26:11 -0700 | |
commit | b9be58ee5ac301788a35c26c37fea6f69a0e61fc (patch) | |
tree | 634d3d5851ba23c0e341a99cc0e28cafc9acae5d /src/objective-c/tests/Podfile | |
parent | f8372c607a9751c951092ee5a34cc78f3c718d2d (diff) |
Use dedicated build configuration 'Cronet' for the new target
Diffstat (limited to 'src/objective-c/tests/Podfile')
-rw-r--r-- | src/objective-c/tests/Podfile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/objective-c/tests/Podfile b/src/objective-c/tests/Podfile index 067d37eccc..51dd1b8358 100644 --- a/src/objective-c/tests/Podfile +++ b/src/objective-c/tests/Podfile @@ -31,8 +31,8 @@ GRPC_LOCAL_SRC = '../../..' pod 'RemoteTest', :path => "RemoteTestClient" if target_name == 'InteropTestsRemoteWithCronet' - pod 'CronetFramework', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c" pod 'gRPC-Core/Cronet-Implementation', :path => GRPC_LOCAL_SRC + pod 'CronetFramework', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c" end end end @@ -90,9 +90,14 @@ post_install do |installer| config.build_settings['GCC_WARN_ABOUT_RETURN_TYPE'] = 'NO' end end + + # Activate Cronet for the dedicated build configuration 'Cronet', which will be used solely by + # the test target 'InteropTestsRemoteWithCronet' if target.name == 'gRPC' target.build_configurations.each do |config| - config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_COMPILE_WITH_CRONET=1' + if config.name == 'Cronet' + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_COMPILE_WITH_CRONET=1' + end end end end |