Debian Codegraph @

templates/src/objective-c/Libuv-gRPC.podspec.template

raw
1 %YAML 1.2
2 --- |
3 # This file has been automatically generated from a template file.
4 # Please make modifications to
5 # `templates/src/objective-c/libuv-gRPC.podspec.template` instead. This
6 # file can be regenerated from the template by running
7 # `tools/buildgen/generate_projects.sh`.
8
9 # Libuv CocoaPods podspec
10
11 # Copyright 2021, Google Inc.
12 # All rights reserved.
13 #
14 # Redistribution and use in source and binary forms, with or without
15 # modification, are permitted provided that the following conditions are
16 # met:
17 #
18 # * Redistributions of source code must retain the above copyright
19 # notice, this list of conditions and the following disclaimer.
20 # * Redistributions in binary form must reproduce the above
21 # copyright notice, this list of conditions and the following disclaimer
22 # in the documentation and/or other materials provided with the
23 # distribution.
24 # * Neither the name of Google Inc. nor the names of its
25 # contributors may be used to endorse or promote products derived from
26 # this software without specific prior written permission.
27 #
28 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40 Pod::Spec.new do |spec|
41
42 pod_version = "0.0.10"
43 libuv_version = "1.37.0"
44
45 spec.name = "Libuv-gRPC"
46 spec.version = pod_version
47 spec.summary = "gRPC-Only Libuv Pod"
48
49 spec.description = <<-DESC
50 Libuv pod intended to be used only by gRPC iOS. libuv is a multi-platform
51 support library with a focus on asynchronous I/O. It was primarily developed
52 for use by Node.js, but it's also used by Luvit, Julia, pyuv, and others.
53 DESC
54
55 spec.homepage = "https://libuv.org/"
56
57 spec.license = { :type => 'Mixed', :file => 'LICENSE' }
58 spec.author = "libuv"
59
60 # When using multiple platforms
61 spec.ios.deployment_target = '9.0'
62 spec.osx.deployment_target = '10.10'
63 spec.tvos.deployment_target = '10.0'
64 spec.watchos.deployment_target = '4.0'
65
66 spec.source = { :git => "https://github.com/libuv/libuv.git", :tag => "v#{libuv_version}" }
67
68 name = 'uv'
69 spec.module_name = name
70 spec.header_mappings_dir = 'include'
71 spec.header_dir = name
72
73 spec.subspec 'Interface' do |ss|
74 ss.header_mappings_dir = 'include'
75 ss.source_files = "include/uv.h",
76 "include/uv/errno.h",
77 "include/uv/threadpool.h",
78 "include/uv/version.h",
79 "include/uv/tree.h",
80 "include/uv/unix.h",
81 "include/uv/darwin.h"
82 end
83
84 spec.subspec 'Implementation' do |ss|
85 ss.header_mappings_dir = 'src'
86 ss.source_files =
87 "src/fs-poll.c",
88 "src/idna.c",
89 "src/inet.c",
90 "src/strscpy.c",
91 "src/threadpool.c",
92 "src/timer.c",
93 "src/uv-data-getter-setters.c",
94 "src/uv-common.c",
95 "src/version.c",
96 "src/unix/async.c",
97 "src/unix/core.c",
98 "src/unix/dl.c",
99 "src/unix/fs.c",
100 "src/unix/getaddrinfo.c",
101 "src/unix/getnameinfo.c",
102 "src/unix/loop.c",
103 "src/unix/loop-watcher.c",
104 "src/unix/pipe.c",
105 "src/unix/poll.c",
106 "src/unix/process.c",
107 "src/unix/signal.c",
108 "src/unix/stream.c",
109 "src/unix/tcp.c",
110 "src/unix/thread.c",
111 "src/unix/tty.c",
112 "src/unix/udp.c",
113 "src/unix/bsd-ifaddrs.c",
114 "src/unix/darwin.c",
115 "src/unix/fsevents.c",
116 "src/unix/kqueue.c",
117 "src/unix/darwin-proctitle.c",
118 "src/unix/proctitle.c",
119 "src/heap-inl.h",
120 "src/idna.h",
121 "src/queue.h",
122 "src/strscpy.h",
123 "src/uv-common.h",
124 "src/unix/atomic-ops.h",
125 "src/unix/internal.h",
126 "src/unix/spinlock.h"
127
128 ss.dependency "#{spec.name}/Interface", pod_version
129 end
130
131 spec.requires_arc = false
132
133 spec.pod_target_xcconfig = {
134 'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(PODS_TARGET_SRCROOT)/include"',
135 'USER_HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)" "$(PODS_TARGET_SRCROOT)/src" "$(PODS_TARGET_SRCROOT)/include"',
136 'CLANG_WARN_STRICT_PROTOTYPES' => 'NO',
137 'CLANG_WARN_DOCUMENTATION_COMMENTS' => 'NO',
138 'USE_HEADERMAP' => 'NO',
139 'ALWAYS_SEARCH_USER_PATHS' => 'NO',
140 'GCC_TREAT_WARNINGS_AS_ERRORS' => 'NO',
141 'GCC_WARN_INHIBIT_ALL_WARNINGS' => 'YES'
142 }
143
144 spec.libraries = 'c++'
145
146 spec.compiler_flags =
147 "-D_LARGEFILE_SOURCE",
148 "-D_FILE_OFFSET_BITS=64",
149 "-D_GNU_SOURCE",
150 "-D_DARWIN_USE_64_BIT_INODE=1",
151 "-D_DARWIN_UNLIMITED_SELECT=1"
152
153 end