aboutsummaryrefslogtreecommitdiffhomepage
path: root/gRPC.podspec
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-10-19 15:41:42 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-10-19 15:41:42 -0700
commitb5ab8a29f5e996c6be65212081cc219f100f57fb (patch)
tree162021ee2d2932bb193a53426a020576d623b291 /gRPC.podspec
parentc22adbcd1f67b652faafebf3e95809b755037ca8 (diff)
parente2a1bf46f975a47497977a19a556dd9f07ae944a (diff)
Merge branch 'master' of github.com:grpc/grpc into microchannels
Diffstat (limited to 'gRPC.podspec')
-rw-r--r--gRPC.podspec124
1 files changed, 51 insertions, 73 deletions
diff --git a/gRPC.podspec b/gRPC.podspec
index 93a6e64da1..d101253bb1 100644
--- a/gRPC.podspec
+++ b/gRPC.podspec
@@ -36,7 +36,7 @@
Pod::Spec.new do |s|
s.name = 'gRPC'
- version = '0.11.1'
+ version = '0.11.2'
s.version = version
s.summary = 'gRPC client library for iOS/OSX'
s.homepage = 'http://www.grpc.io'
@@ -69,37 +69,37 @@ Pod::Spec.new do |s|
'src/core/support/file.h',
'src/core/support/murmur_hash.h',
'src/core/support/stack_lockfree.h',
- 'src/core/support/grpc_string.h',
+ 'src/core/support/string.h',
'src/core/support/string_win32.h',
'src/core/support/thd_internal.h',
'src/core/support/time_precise.h',
- 'grpc/support/alloc.h',
- 'grpc/support/atm.h',
- 'grpc/support/atm_gcc_atomic.h',
- 'grpc/support/atm_gcc_sync.h',
- 'grpc/support/atm_win32.h',
- 'grpc/support/cmdline.h',
- 'grpc/support/cpu.h',
- 'grpc/support/histogram.h',
- 'grpc/support/host_port.h',
- 'grpc/support/log.h',
- 'grpc/support/log_win32.h',
- 'grpc/support/port_platform.h',
- 'grpc/support/slice.h',
- 'grpc/support/slice_buffer.h',
- 'grpc/support/string_util.h',
- 'grpc/support/subprocess.h',
- 'grpc/support/sync.h',
- 'grpc/support/sync_generic.h',
- 'grpc/support/sync_posix.h',
- 'grpc/support/sync_win32.h',
- 'grpc/support/thd.h',
- 'grpc/support/grpc_time.h',
- 'grpc/support/tls.h',
- 'grpc/support/tls_gcc.h',
- 'grpc/support/tls_msvc.h',
- 'grpc/support/tls_pthread.h',
- 'grpc/support/useful.h',
+ 'include/grpc/support/alloc.h',
+ 'include/grpc/support/atm.h',
+ 'include/grpc/support/atm_gcc_atomic.h',
+ 'include/grpc/support/atm_gcc_sync.h',
+ 'include/grpc/support/atm_win32.h',
+ 'include/grpc/support/cmdline.h',
+ 'include/grpc/support/cpu.h',
+ 'include/grpc/support/histogram.h',
+ 'include/grpc/support/host_port.h',
+ 'include/grpc/support/log.h',
+ 'include/grpc/support/log_win32.h',
+ 'include/grpc/support/port_platform.h',
+ 'include/grpc/support/slice.h',
+ 'include/grpc/support/slice_buffer.h',
+ 'include/grpc/support/string_util.h',
+ 'include/grpc/support/subprocess.h',
+ 'include/grpc/support/sync.h',
+ 'include/grpc/support/sync_generic.h',
+ 'include/grpc/support/sync_posix.h',
+ 'include/grpc/support/sync_win32.h',
+ 'include/grpc/support/thd.h',
+ 'include/grpc/support/time.h',
+ 'include/grpc/support/tls.h',
+ 'include/grpc/support/tls_gcc.h',
+ 'include/grpc/support/tls_msvc.h',
+ 'include/grpc/support/tls_pthread.h',
+ 'include/grpc/support/useful.h',
'src/core/profiling/basic_timers.c',
'src/core/profiling/stap_timers.c',
'src/core/support/alloc.c',
@@ -186,13 +186,11 @@ Pod::Spec.new do |s|
'src/core/httpcli/format_request.h',
'src/core/httpcli/httpcli.h',
'src/core/httpcli/parser.h',
- 'src/core/iomgr/alarm.h',
- 'src/core/iomgr/alarm_heap.h',
- 'src/core/iomgr/alarm_internal.h',
'src/core/iomgr/closure.h',
'src/core/iomgr/endpoint.h',
'src/core/iomgr/endpoint_pair.h',
'src/core/iomgr/exec_ctx.h',
+ 'src/core/iomgr/executor.h',
'src/core/iomgr/fd_posix.h',
'src/core/iomgr/iocp_windows.h',
'src/core/iomgr/iomgr.h',
@@ -216,6 +214,9 @@ Pod::Spec.new do |s|
'src/core/iomgr/tcp_server.h',
'src/core/iomgr/tcp_windows.h',
'src/core/iomgr/time_averaged_stats.h',
+ 'src/core/iomgr/timer.h',
+ 'src/core/iomgr/timer_heap.h',
+ 'src/core/iomgr/timer_internal.h',
'src/core/iomgr/udp_server.h',
'src/core/iomgr/wakeup_fd_pipe.h',
'src/core/iomgr/wakeup_fd_posix.h',
@@ -267,13 +268,13 @@ Pod::Spec.new do |s|
'src/core/census/aggregation.h',
'src/core/census/context.h',
'src/core/census/rpc_metric_id.h',
- 'grpc/grpc_security.h',
- 'grpc/byte_buffer.h',
- 'grpc/byte_buffer_reader.h',
- 'grpc/compression.h',
- 'grpc/grpc.h',
- 'grpc/status.h',
- 'grpc/census.h',
+ 'include/grpc/grpc_security.h',
+ 'include/grpc/byte_buffer.h',
+ 'include/grpc/byte_buffer_reader.h',
+ 'include/grpc/compression.h',
+ 'include/grpc/grpc.h',
+ 'include/grpc/status.h',
+ 'include/grpc/census.h',
'src/core/httpcli/httpcli_security_connector.c',
'src/core/security/base64.c',
'src/core/security/client_auth_filter.c',
@@ -329,13 +330,12 @@ Pod::Spec.new do |s|
'src/core/httpcli/format_request.c',
'src/core/httpcli/httpcli.c',
'src/core/httpcli/parser.c',
- 'src/core/iomgr/alarm.c',
- 'src/core/iomgr/alarm_heap.c',
'src/core/iomgr/closure.c',
'src/core/iomgr/endpoint.c',
'src/core/iomgr/endpoint_pair_posix.c',
'src/core/iomgr/endpoint_pair_windows.c',
'src/core/iomgr/exec_ctx.c',
+ 'src/core/iomgr/executor.c',
'src/core/iomgr/fd_posix.c',
'src/core/iomgr/iocp_windows.c',
'src/core/iomgr/iomgr.c',
@@ -361,6 +361,8 @@ Pod::Spec.new do |s|
'src/core/iomgr/tcp_server_windows.c',
'src/core/iomgr/tcp_windows.c',
'src/core/iomgr/time_averaged_stats.c',
+ 'src/core/iomgr/timer.c',
+ 'src/core/iomgr/timer_heap.c',
'src/core/iomgr/udp_server.c',
'src/core/iomgr/wakeup_fd_eventfd.c',
'src/core/iomgr/wakeup_fd_nospecial.c',
@@ -478,13 +480,11 @@ Pod::Spec.new do |s|
'src/core/httpcli/format_request.h',
'src/core/httpcli/httpcli.h',
'src/core/httpcli/parser.h',
- 'src/core/iomgr/alarm.h',
- 'src/core/iomgr/alarm_heap.h',
- 'src/core/iomgr/alarm_internal.h',
'src/core/iomgr/closure.h',
'src/core/iomgr/endpoint.h',
'src/core/iomgr/endpoint_pair.h',
'src/core/iomgr/exec_ctx.h',
+ 'src/core/iomgr/executor.h',
'src/core/iomgr/fd_posix.h',
'src/core/iomgr/iocp_windows.h',
'src/core/iomgr/iomgr.h',
@@ -508,6 +508,9 @@ Pod::Spec.new do |s|
'src/core/iomgr/tcp_server.h',
'src/core/iomgr/tcp_windows.h',
'src/core/iomgr/time_averaged_stats.h',
+ 'src/core/iomgr/timer.h',
+ 'src/core/iomgr/timer_heap.h',
+ 'src/core/iomgr/timer_internal.h',
'src/core/iomgr/udp_server.h',
'src/core/iomgr/wakeup_fd_pipe.h',
'src/core/iomgr/wakeup_fd_posix.h',
@@ -561,6 +564,10 @@ Pod::Spec.new do |s|
'src/core/census/rpc_metric_id.h'
ss.header_mappings_dir = '.'
+ # This isn't officially supported in Cocoapods. We've asked for an alternative:
+ # https://github.com/CocoaPods/CocoaPods/issues/4386
+ ss.xcconfig = { 'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/Headers/Private/gRPC" ' +
+ '"$(PODS_ROOT)/Headers/Private/gRPC/include"' }
ss.requires_arc = false
ss.libraries = 'z'
@@ -569,35 +576,6 @@ Pod::Spec.new do |s|
# ss.compiler_flags = '-GCC_WARN_INHIBIT_ALL_WARNINGS', '-w'
end
- # This is a workaround for Cocoapods Issue #1437.
- # It renames time.h and string.h to grpc_time.h and grpc_string.h.
- # It needs to be here (top-level) instead of in the C-Core subspec because Cocoapods doesn't run
- # prepare_command's of subspecs.
- #
- # TODO(jcanizales): Try out others' solutions at Issue #1437.
- s.prepare_command = <<-CMD
- # Move contents of include up a level to avoid manually specifying include paths
- cp -r "include/grpc" "."
-
- DIR_TIME="grpc/support"
- BAD_TIME="$DIR_TIME/time.h"
- GOOD_TIME="$DIR_TIME/grpc_time.h"
- grep -rl "$BAD_TIME" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g
- if [ -f "$BAD_TIME" ];
- then
- mv -f "$BAD_TIME" "$GOOD_TIME"
- fi
-
- DIR_STRING="src/core/support"
- BAD_STRING="$DIR_STRING/string.h"
- GOOD_STRING="$DIR_STRING/grpc_string.h"
- grep -rl "$BAD_STRING" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g
- if [ -f "$BAD_STRING" ];
- then
- mv -f "$BAD_STRING" "$GOOD_STRING"
- fi
- CMD
-
# Objective-C wrapper around the core gRPC library.
s.subspec 'GRPCClient' do |ss|
src_dir = "#{objc_dir}/GRPCClient"