blob: 4d0aa9040cecf6de580929c75375fb93abf1b97f [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, 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
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
Nicolas "Pixel" Noble49bfb922016-07-12 09:31:41 +020045set(PACKAGE_VERSION "1.1.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030051if (NOT MSVC)
52 set(gRPC_INSTALL ON CACHE BOOL "Generate installation target")
53else()
54 set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target")
55endif()
56
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030057set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
58set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010059
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
61set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010062
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030063set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
64set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010065
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010067
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030068if (MSVC)
Jan Tattermusch3aab96f2017-01-11 16:12:46 +010069 add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS)
70 # needed to compile boringssl
71 add_definitions(/wd4464 /wd4623 /wd4668 /wd4701 /wd4702 /wd4777 /wd5027)
72 # needed to compile protobuf
73 add_definitions(/wd4065 /wd4506)
74 # TODO(jtattermusch): revisit C4267 occurrences throughout the code
75 add_definitions(/wd4267)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030076endif()
77
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030078if (gRPC_USE_PROTO_LITE)
79 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010080 add_definitions("-DGRPC_USE_PROTO_LITE")
81else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030082 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010083endif()
84
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030085if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
86 if(NOT ZLIB_ROOT_DIR)
87 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
88 endif()
89 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
90 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
91 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
92 if(TARGET zlibstatic)
93 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
94 endif()
95 else()
96 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
97 endif()
98elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
99 find_package(ZLIB)
100 if(TARGET ZLIB::ZLIB)
101 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
102 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300103 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100104endif()
105
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300106if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
107 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
108 # Disable them unless they are explicitly requested from the cmake command line (when we assume
109 # gmock is downloaded to the right location inside protobuf).
110 if(NOT protobuf_BUILD_TESTS)
111 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
112 endif()
113 if(NOT PROTOBUF_ROOT_DIR)
114 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
115 endif()
116 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300117 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300118 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
119 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
120 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
121 endif()
122 if(TARGET libprotoc)
123 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
124 endif()
125 else()
126 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
127 endif()
128elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
129 find_package(protobuf CONFIG)
130 if(protobuf_FOUND)
131 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
132 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
133 endif()
134 if(TARGET protobuf::libprotoc)
135 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
136 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300137 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300138 else()
139 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300140 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300141 endif()
142endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100143
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300144if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
145 if(NOT BORINGSSL_ROOT_DIR)
146 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
147 endif()
148 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
149 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
150 if(TARGET ssl)
151 set(_gRPC_SSL_LIBRARIES ssl)
152 endif()
153 else()
154 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
155 endif()
156elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
157 find_package(OpenSSL)
158 if(TARGET OpenSSL::SSL)
159 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
160 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300161 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300162endif()
163
164if(NOT MSVC)
165 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
166 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
167endif()
168
169if(WIN32 AND MSVC)
170 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100171endif()
172
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300173include(GNUInstallDirs)
174if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
175 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
176endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100177
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200178
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100179add_library(gpr
180 src/core/lib/profiling/basic_timers.c
181 src/core/lib/profiling/stap_timers.c
182 src/core/lib/support/alloc.c
183 src/core/lib/support/avl.c
184 src/core/lib/support/backoff.c
185 src/core/lib/support/cmdline.c
186 src/core/lib/support/cpu_iphone.c
187 src/core/lib/support/cpu_linux.c
188 src/core/lib/support/cpu_posix.c
189 src/core/lib/support/cpu_windows.c
190 src/core/lib/support/env_linux.c
191 src/core/lib/support/env_posix.c
192 src/core/lib/support/env_windows.c
193 src/core/lib/support/histogram.c
194 src/core/lib/support/host_port.c
195 src/core/lib/support/log.c
196 src/core/lib/support/log_android.c
197 src/core/lib/support/log_linux.c
198 src/core/lib/support/log_posix.c
199 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700200 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100201 src/core/lib/support/murmur_hash.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100202 src/core/lib/support/stack_lockfree.c
203 src/core/lib/support/string.c
204 src/core/lib/support/string_posix.c
205 src/core/lib/support/string_util_windows.c
206 src/core/lib/support/string_windows.c
207 src/core/lib/support/subprocess_posix.c
208 src/core/lib/support/subprocess_windows.c
209 src/core/lib/support/sync.c
210 src/core/lib/support/sync_posix.c
211 src/core/lib/support/sync_windows.c
212 src/core/lib/support/thd.c
213 src/core/lib/support/thd_posix.c
214 src/core/lib/support/thd_windows.c
215 src/core/lib/support/time.c
216 src/core/lib/support/time_posix.c
217 src/core/lib/support/time_precise.c
218 src/core/lib/support/time_windows.c
219 src/core/lib/support/tls_pthread.c
220 src/core/lib/support/tmpfile_msys.c
221 src/core/lib/support/tmpfile_posix.c
222 src/core/lib/support/tmpfile_windows.c
223 src/core/lib/support/wrap_memcpy.c
224)
225
226target_include_directories(gpr
227 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
228 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
229 PRIVATE ${BORINGSSL_ROOT_DIR}/include
230 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300231 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100232 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
233)
234
235
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300236foreach(_hdr
237 include/grpc/support/alloc.h
238 include/grpc/support/atm.h
239 include/grpc/support/atm_gcc_atomic.h
240 include/grpc/support/atm_gcc_sync.h
241 include/grpc/support/atm_windows.h
242 include/grpc/support/avl.h
243 include/grpc/support/cmdline.h
244 include/grpc/support/cpu.h
245 include/grpc/support/histogram.h
246 include/grpc/support/host_port.h
247 include/grpc/support/log.h
248 include/grpc/support/log_windows.h
249 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300250 include/grpc/support/string_util.h
251 include/grpc/support/subprocess.h
252 include/grpc/support/sync.h
253 include/grpc/support/sync_generic.h
254 include/grpc/support/sync_posix.h
255 include/grpc/support/sync_windows.h
256 include/grpc/support/thd.h
257 include/grpc/support/time.h
258 include/grpc/support/tls.h
259 include/grpc/support/tls_gcc.h
260 include/grpc/support/tls_msvc.h
261 include/grpc/support/tls_pthread.h
262 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300263 include/grpc/impl/codegen/atm.h
264 include/grpc/impl/codegen/atm_gcc_atomic.h
265 include/grpc/impl/codegen/atm_gcc_sync.h
266 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800267 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700268 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300269 include/grpc/impl/codegen/port_platform.h
270 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300271 include/grpc/impl/codegen/sync.h
272 include/grpc/impl/codegen/sync_generic.h
273 include/grpc/impl/codegen/sync_posix.h
274 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300275)
276 string(REPLACE "include/" "" _path ${_hdr})
277 get_filename_component(_path ${_path} PATH)
278 install(FILES ${_hdr}
279 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
280 )
281endforeach()
282
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200283
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300284if (gRPC_INSTALL)
285 install(TARGETS gpr EXPORT gRPCTargets
286 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
287 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
288 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
289 )
290endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300291
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200292
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100293add_library(grpc
294 src/core/lib/surface/init.c
295 src/core/lib/channel/channel_args.c
296 src/core/lib/channel/channel_stack.c
297 src/core/lib/channel/channel_stack_builder.c
298 src/core/lib/channel/compress_filter.c
299 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700300 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700301 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800302 src/core/lib/channel/handshaker_factory.c
303 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100304 src/core/lib/channel/http_client_filter.c
305 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700306 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100307 src/core/lib/compression/compression.c
308 src/core/lib/compression/message_compress.c
309 src/core/lib/debug/trace.c
310 src/core/lib/http/format_request.c
311 src/core/lib/http/httpcli.c
312 src/core/lib/http/parser.c
313 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700314 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100315 src/core/lib/iomgr/endpoint.c
316 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700317 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100318 src/core/lib/iomgr/endpoint_pair_windows.c
319 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200320 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100321 src/core/lib/iomgr/ev_poll_posix.c
322 src/core/lib/iomgr/ev_posix.c
323 src/core/lib/iomgr/exec_ctx.c
324 src/core/lib/iomgr/executor.c
325 src/core/lib/iomgr/iocp_windows.c
326 src/core/lib/iomgr/iomgr.c
327 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700328 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100329 src/core/lib/iomgr/iomgr_windows.c
330 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200331 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100332 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700333 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100334 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700335 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100336 src/core/lib/iomgr/pollset_windows.c
337 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700338 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100339 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700340 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100341 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700342 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100343 src/core/lib/iomgr/socket_utils_common_posix.c
344 src/core/lib/iomgr/socket_utils_linux.c
345 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700346 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700347 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100348 src/core/lib/iomgr/socket_windows.c
349 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700350 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100351 src/core/lib/iomgr/tcp_client_windows.c
352 src/core/lib/iomgr/tcp_posix.c
353 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700354 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100355 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700356 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100357 src/core/lib/iomgr/tcp_windows.c
358 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700359 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100360 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700361 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100362 src/core/lib/iomgr/udp_server.c
363 src/core/lib/iomgr/unix_sockets_posix.c
364 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700365 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100366 src/core/lib/iomgr/wakeup_fd_eventfd.c
367 src/core/lib/iomgr/wakeup_fd_nospecial.c
368 src/core/lib/iomgr/wakeup_fd_pipe.c
369 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700370 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100371 src/core/lib/iomgr/workqueue_windows.c
372 src/core/lib/json/json.c
373 src/core/lib/json/json_reader.c
374 src/core/lib/json/json_string.c
375 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700376 src/core/lib/slice/percent_encoding.c
377 src/core/lib/slice/slice.c
378 src/core/lib/slice/slice_buffer.c
379 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100380 src/core/lib/surface/alarm.c
381 src/core/lib/surface/api_trace.c
382 src/core/lib/surface/byte_buffer.c
383 src/core/lib/surface/byte_buffer_reader.c
384 src/core/lib/surface/call.c
385 src/core/lib/surface/call_details.c
386 src/core/lib/surface/call_log_batch.c
387 src/core/lib/surface/channel.c
388 src/core/lib/surface/channel_init.c
389 src/core/lib/surface/channel_ping.c
390 src/core/lib/surface/channel_stack_type.c
391 src/core/lib/surface/completion_queue.c
392 src/core/lib/surface/event_string.c
393 src/core/lib/surface/lame_client.c
394 src/core/lib/surface/metadata_array.c
395 src/core/lib/surface/server.c
396 src/core/lib/surface/validate_metadata.c
397 src/core/lib/surface/version.c
398 src/core/lib/transport/byte_stream.c
399 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700400 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100401 src/core/lib/transport/metadata.c
402 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700403 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700404 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100405 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400406 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100407 src/core/lib/transport/transport.c
408 src/core/lib/transport/transport_op_string.c
409 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
410 src/core/ext/transport/chttp2/transport/bin_decoder.c
411 src/core/ext/transport/chttp2/transport/bin_encoder.c
412 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
413 src/core/ext/transport/chttp2/transport/chttp2_transport.c
414 src/core/ext/transport/chttp2/transport/frame_data.c
415 src/core/ext/transport/chttp2/transport/frame_goaway.c
416 src/core/ext/transport/chttp2/transport/frame_ping.c
417 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
418 src/core/ext/transport/chttp2/transport/frame_settings.c
419 src/core/ext/transport/chttp2/transport/frame_window_update.c
420 src/core/ext/transport/chttp2/transport/hpack_encoder.c
421 src/core/ext/transport/chttp2/transport/hpack_parser.c
422 src/core/ext/transport/chttp2/transport/hpack_table.c
423 src/core/ext/transport/chttp2/transport/huffsyms.c
424 src/core/ext/transport/chttp2/transport/incoming_metadata.c
425 src/core/ext/transport/chttp2/transport/parsing.c
426 src/core/ext/transport/chttp2/transport/status_conversion.c
427 src/core/ext/transport/chttp2/transport/stream_lists.c
428 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100429 src/core/ext/transport/chttp2/transport/varint.c
430 src/core/ext/transport/chttp2/transport/writing.c
431 src/core/ext/transport/chttp2/alpn/alpn.c
432 src/core/lib/http/httpcli_security_connector.c
433 src/core/lib/security/context/security_context.c
434 src/core/lib/security/credentials/composite/composite_credentials.c
435 src/core/lib/security/credentials/credentials.c
436 src/core/lib/security/credentials/credentials_metadata.c
437 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700438 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100439 src/core/lib/security/credentials/google_default/google_default_credentials.c
440 src/core/lib/security/credentials/iam/iam_credentials.c
441 src/core/lib/security/credentials/jwt/json_token.c
442 src/core/lib/security/credentials/jwt/jwt_credentials.c
443 src/core/lib/security/credentials/jwt/jwt_verifier.c
444 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
445 src/core/lib/security/credentials/plugin/plugin_credentials.c
446 src/core/lib/security/credentials/ssl/ssl_credentials.c
447 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100448 src/core/lib/security/transport/secure_endpoint.c
449 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800450 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100451 src/core/lib/security/transport/server_auth_filter.c
452 src/core/lib/security/transport/tsi_error.c
453 src/core/lib/security/util/b64.c
454 src/core/lib/security/util/json_util.c
455 src/core/lib/surface/init_secure.c
456 src/core/lib/tsi/fake_transport_security.c
457 src/core/lib/tsi/ssl_transport_security.c
458 src/core/lib/tsi/transport_security.c
Mark D. Roth71403822016-12-02 10:51:39 -0800459 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100460 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700461 src/core/ext/client_channel/channel_connectivity.c
462 src/core/ext/client_channel/client_channel.c
463 src/core/ext/client_channel/client_channel_factory.c
464 src/core/ext/client_channel/client_channel_plugin.c
465 src/core/ext/client_channel/connector.c
466 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700467 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700468 src/core/ext/client_channel/initial_connect_string.c
469 src/core/ext/client_channel/lb_policy.c
470 src/core/ext/client_channel/lb_policy_factory.c
471 src/core/ext/client_channel/lb_policy_registry.c
472 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -0800473 src/core/ext/client_channel/proxy_mapper.c
474 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700475 src/core/ext/client_channel/resolver.c
476 src/core/ext/client_channel/resolver_factory.c
477 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700478 src/core/ext/client_channel/subchannel.c
479 src/core/ext/client_channel/subchannel_index.c
480 src/core/ext/client_channel/uri_parser.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800481 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100482 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
483 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
484 src/core/ext/transport/chttp2/client/insecure/channel_create.c
485 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700486 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100487 src/core/ext/lb_policy/grpclb/load_balancer_api.c
488 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
489 third_party/nanopb/pb_common.c
490 third_party/nanopb/pb_decode.c
491 third_party/nanopb/pb_encode.c
492 src/core/ext/lb_policy/pick_first/pick_first.c
493 src/core/ext/lb_policy/round_robin/round_robin.c
494 src/core/ext/resolver/dns/native/dns_resolver.c
495 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
496 src/core/ext/load_reporting/load_reporting.c
497 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700498 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100499 src/core/ext/census/context.c
500 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700501 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100502 src/core/ext/census/grpc_context.c
503 src/core/ext/census/grpc_filter.c
504 src/core/ext/census/grpc_plugin.c
505 src/core/ext/census/initialize.c
506 src/core/ext/census/mlog.c
507 src/core/ext/census/operation.c
508 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700509 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700510 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100511 src/core/ext/census/tracing.c
512 src/core/plugin_registry/grpc_plugin_registry.c
513)
514
515target_include_directories(grpc
516 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
517 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
518 PRIVATE ${BORINGSSL_ROOT_DIR}/include
519 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300520 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100521 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
522)
523
524target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300525 ${_gRPC_BASELIB_LIBRARIES}
526 ${_gRPC_SSL_LIBRARIES}
527 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100528 gpr
529)
530
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300531foreach(_hdr
532 include/grpc/byte_buffer.h
533 include/grpc/byte_buffer_reader.h
534 include/grpc/compression.h
535 include/grpc/grpc.h
536 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200537 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700538 include/grpc/slice.h
539 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300540 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300541 include/grpc/impl/codegen/byte_buffer_reader.h
542 include/grpc/impl/codegen/compression_types.h
543 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -0800544 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300545 include/grpc/impl/codegen/grpc_types.h
546 include/grpc/impl/codegen/propagation_bits.h
547 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300548 include/grpc/impl/codegen/atm.h
549 include/grpc/impl/codegen/atm_gcc_atomic.h
550 include/grpc/impl/codegen/atm_gcc_sync.h
551 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800552 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700553 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300554 include/grpc/impl/codegen/port_platform.h
555 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300556 include/grpc/impl/codegen/sync.h
557 include/grpc/impl/codegen/sync_generic.h
558 include/grpc/impl/codegen/sync_posix.h
559 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300560 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300561 include/grpc/census.h
562)
563 string(REPLACE "include/" "" _path ${_hdr})
564 get_filename_component(_path ${_path} PATH)
565 install(FILES ${_hdr}
566 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
567 )
568endforeach()
569
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200570
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300571if (gRPC_INSTALL)
572 install(TARGETS grpc EXPORT gRPCTargets
573 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
574 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
575 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
576 )
577endif()
578
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200579
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100580add_library(grpc_cronet
581 src/core/lib/surface/init.c
582 src/core/lib/channel/channel_args.c
583 src/core/lib/channel/channel_stack.c
584 src/core/lib/channel/channel_stack_builder.c
585 src/core/lib/channel/compress_filter.c
586 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700587 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700588 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800589 src/core/lib/channel/handshaker_factory.c
590 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100591 src/core/lib/channel/http_client_filter.c
592 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700593 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100594 src/core/lib/compression/compression.c
595 src/core/lib/compression/message_compress.c
596 src/core/lib/debug/trace.c
597 src/core/lib/http/format_request.c
598 src/core/lib/http/httpcli.c
599 src/core/lib/http/parser.c
600 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700601 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100602 src/core/lib/iomgr/endpoint.c
603 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700604 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100605 src/core/lib/iomgr/endpoint_pair_windows.c
606 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200607 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100608 src/core/lib/iomgr/ev_poll_posix.c
609 src/core/lib/iomgr/ev_posix.c
610 src/core/lib/iomgr/exec_ctx.c
611 src/core/lib/iomgr/executor.c
612 src/core/lib/iomgr/iocp_windows.c
613 src/core/lib/iomgr/iomgr.c
614 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700615 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100616 src/core/lib/iomgr/iomgr_windows.c
617 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200618 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100619 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700620 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100621 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700622 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100623 src/core/lib/iomgr/pollset_windows.c
624 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700625 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100626 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700627 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100628 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700629 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100630 src/core/lib/iomgr/socket_utils_common_posix.c
631 src/core/lib/iomgr/socket_utils_linux.c
632 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700633 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700634 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100635 src/core/lib/iomgr/socket_windows.c
636 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700637 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100638 src/core/lib/iomgr/tcp_client_windows.c
639 src/core/lib/iomgr/tcp_posix.c
640 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700641 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100642 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700643 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100644 src/core/lib/iomgr/tcp_windows.c
645 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700646 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100647 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700648 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100649 src/core/lib/iomgr/udp_server.c
650 src/core/lib/iomgr/unix_sockets_posix.c
651 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700652 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100653 src/core/lib/iomgr/wakeup_fd_eventfd.c
654 src/core/lib/iomgr/wakeup_fd_nospecial.c
655 src/core/lib/iomgr/wakeup_fd_pipe.c
656 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700657 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100658 src/core/lib/iomgr/workqueue_windows.c
659 src/core/lib/json/json.c
660 src/core/lib/json/json_reader.c
661 src/core/lib/json/json_string.c
662 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700663 src/core/lib/slice/percent_encoding.c
664 src/core/lib/slice/slice.c
665 src/core/lib/slice/slice_buffer.c
666 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100667 src/core/lib/surface/alarm.c
668 src/core/lib/surface/api_trace.c
669 src/core/lib/surface/byte_buffer.c
670 src/core/lib/surface/byte_buffer_reader.c
671 src/core/lib/surface/call.c
672 src/core/lib/surface/call_details.c
673 src/core/lib/surface/call_log_batch.c
674 src/core/lib/surface/channel.c
675 src/core/lib/surface/channel_init.c
676 src/core/lib/surface/channel_ping.c
677 src/core/lib/surface/channel_stack_type.c
678 src/core/lib/surface/completion_queue.c
679 src/core/lib/surface/event_string.c
680 src/core/lib/surface/lame_client.c
681 src/core/lib/surface/metadata_array.c
682 src/core/lib/surface/server.c
683 src/core/lib/surface/validate_metadata.c
684 src/core/lib/surface/version.c
685 src/core/lib/transport/byte_stream.c
686 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700687 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100688 src/core/lib/transport/metadata.c
689 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700690 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700691 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100692 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400693 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100694 src/core/lib/transport/transport.c
695 src/core/lib/transport/transport_op_string.c
696 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
697 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
698 src/core/ext/transport/cronet/transport/cronet_transport.c
699 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
700 src/core/ext/transport/chttp2/transport/bin_decoder.c
701 src/core/ext/transport/chttp2/transport/bin_encoder.c
702 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
703 src/core/ext/transport/chttp2/transport/chttp2_transport.c
704 src/core/ext/transport/chttp2/transport/frame_data.c
705 src/core/ext/transport/chttp2/transport/frame_goaway.c
706 src/core/ext/transport/chttp2/transport/frame_ping.c
707 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
708 src/core/ext/transport/chttp2/transport/frame_settings.c
709 src/core/ext/transport/chttp2/transport/frame_window_update.c
710 src/core/ext/transport/chttp2/transport/hpack_encoder.c
711 src/core/ext/transport/chttp2/transport/hpack_parser.c
712 src/core/ext/transport/chttp2/transport/hpack_table.c
713 src/core/ext/transport/chttp2/transport/huffsyms.c
714 src/core/ext/transport/chttp2/transport/incoming_metadata.c
715 src/core/ext/transport/chttp2/transport/parsing.c
716 src/core/ext/transport/chttp2/transport/status_conversion.c
717 src/core/ext/transport/chttp2/transport/stream_lists.c
718 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100719 src/core/ext/transport/chttp2/transport/varint.c
720 src/core/ext/transport/chttp2/transport/writing.c
721 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700722 src/core/ext/client_channel/channel_connectivity.c
723 src/core/ext/client_channel/client_channel.c
724 src/core/ext/client_channel/client_channel_factory.c
725 src/core/ext/client_channel/client_channel_plugin.c
726 src/core/ext/client_channel/connector.c
727 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700728 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700729 src/core/ext/client_channel/initial_connect_string.c
730 src/core/ext/client_channel/lb_policy.c
731 src/core/ext/client_channel/lb_policy_factory.c
732 src/core/ext/client_channel/lb_policy_registry.c
733 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -0800734 src/core/ext/client_channel/proxy_mapper.c
735 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700736 src/core/ext/client_channel/resolver.c
737 src/core/ext/client_channel/resolver_factory.c
738 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700739 src/core/ext/client_channel/subchannel.c
740 src/core/ext/client_channel/subchannel_index.c
741 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100742 src/core/lib/http/httpcli_security_connector.c
743 src/core/lib/security/context/security_context.c
744 src/core/lib/security/credentials/composite/composite_credentials.c
745 src/core/lib/security/credentials/credentials.c
746 src/core/lib/security/credentials/credentials_metadata.c
747 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700748 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100749 src/core/lib/security/credentials/google_default/google_default_credentials.c
750 src/core/lib/security/credentials/iam/iam_credentials.c
751 src/core/lib/security/credentials/jwt/json_token.c
752 src/core/lib/security/credentials/jwt/jwt_credentials.c
753 src/core/lib/security/credentials/jwt/jwt_verifier.c
754 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
755 src/core/lib/security/credentials/plugin/plugin_credentials.c
756 src/core/lib/security/credentials/ssl/ssl_credentials.c
757 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100758 src/core/lib/security/transport/secure_endpoint.c
759 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800760 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100761 src/core/lib/security/transport/server_auth_filter.c
762 src/core/lib/security/transport/tsi_error.c
763 src/core/lib/security/util/b64.c
764 src/core/lib/security/util/json_util.c
765 src/core/lib/surface/init_secure.c
766 src/core/lib/tsi/fake_transport_security.c
767 src/core/lib/tsi/ssl_transport_security.c
768 src/core/lib/tsi/transport_security.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800769 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100770 src/core/plugin_registry/grpc_cronet_plugin_registry.c
771)
772
773target_include_directories(grpc_cronet
774 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
775 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
776 PRIVATE ${BORINGSSL_ROOT_DIR}/include
777 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300778 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100779 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
780)
781
782target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300783 ${_gRPC_BASELIB_LIBRARIES}
784 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100785 gpr
786)
787
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300788foreach(_hdr
789 include/grpc/byte_buffer.h
790 include/grpc/byte_buffer_reader.h
791 include/grpc/compression.h
792 include/grpc/grpc.h
793 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200794 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700795 include/grpc/slice.h
796 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300797 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300798 include/grpc/impl/codegen/byte_buffer_reader.h
799 include/grpc/impl/codegen/compression_types.h
800 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -0800801 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300802 include/grpc/impl/codegen/grpc_types.h
803 include/grpc/impl/codegen/propagation_bits.h
804 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300805 include/grpc/impl/codegen/atm.h
806 include/grpc/impl/codegen/atm_gcc_atomic.h
807 include/grpc/impl/codegen/atm_gcc_sync.h
808 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800809 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700810 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300811 include/grpc/impl/codegen/port_platform.h
812 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300813 include/grpc/impl/codegen/sync.h
814 include/grpc/impl/codegen/sync_generic.h
815 include/grpc/impl/codegen/sync_posix.h
816 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300817 include/grpc/grpc_cronet.h
818 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300819)
820 string(REPLACE "include/" "" _path ${_hdr})
821 get_filename_component(_path ${_path} PATH)
822 install(FILES ${_hdr}
823 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
824 )
825endforeach()
826
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200827
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300828if (gRPC_INSTALL)
829 install(TARGETS grpc_cronet EXPORT gRPCTargets
830 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
831 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
832 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
833 )
834endif()
835
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200836
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100837add_library(grpc_unsecure
838 src/core/lib/surface/init.c
839 src/core/lib/surface/init_unsecure.c
840 src/core/lib/channel/channel_args.c
841 src/core/lib/channel/channel_stack.c
842 src/core/lib/channel/channel_stack_builder.c
843 src/core/lib/channel/compress_filter.c
844 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700845 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700846 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800847 src/core/lib/channel/handshaker_factory.c
848 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100849 src/core/lib/channel/http_client_filter.c
850 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700851 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100852 src/core/lib/compression/compression.c
853 src/core/lib/compression/message_compress.c
854 src/core/lib/debug/trace.c
855 src/core/lib/http/format_request.c
856 src/core/lib/http/httpcli.c
857 src/core/lib/http/parser.c
858 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700859 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100860 src/core/lib/iomgr/endpoint.c
861 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700862 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100863 src/core/lib/iomgr/endpoint_pair_windows.c
864 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200865 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100866 src/core/lib/iomgr/ev_poll_posix.c
867 src/core/lib/iomgr/ev_posix.c
868 src/core/lib/iomgr/exec_ctx.c
869 src/core/lib/iomgr/executor.c
870 src/core/lib/iomgr/iocp_windows.c
871 src/core/lib/iomgr/iomgr.c
872 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700873 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100874 src/core/lib/iomgr/iomgr_windows.c
875 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200876 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100877 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700878 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100879 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700880 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100881 src/core/lib/iomgr/pollset_windows.c
882 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700883 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100884 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700885 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100886 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700887 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100888 src/core/lib/iomgr/socket_utils_common_posix.c
889 src/core/lib/iomgr/socket_utils_linux.c
890 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700891 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700892 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100893 src/core/lib/iomgr/socket_windows.c
894 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700895 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100896 src/core/lib/iomgr/tcp_client_windows.c
897 src/core/lib/iomgr/tcp_posix.c
898 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700899 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100900 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700901 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100902 src/core/lib/iomgr/tcp_windows.c
903 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700904 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100905 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700906 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100907 src/core/lib/iomgr/udp_server.c
908 src/core/lib/iomgr/unix_sockets_posix.c
909 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700910 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100911 src/core/lib/iomgr/wakeup_fd_eventfd.c
912 src/core/lib/iomgr/wakeup_fd_nospecial.c
913 src/core/lib/iomgr/wakeup_fd_pipe.c
914 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700915 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100916 src/core/lib/iomgr/workqueue_windows.c
917 src/core/lib/json/json.c
918 src/core/lib/json/json_reader.c
919 src/core/lib/json/json_string.c
920 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700921 src/core/lib/slice/percent_encoding.c
922 src/core/lib/slice/slice.c
923 src/core/lib/slice/slice_buffer.c
924 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100925 src/core/lib/surface/alarm.c
926 src/core/lib/surface/api_trace.c
927 src/core/lib/surface/byte_buffer.c
928 src/core/lib/surface/byte_buffer_reader.c
929 src/core/lib/surface/call.c
930 src/core/lib/surface/call_details.c
931 src/core/lib/surface/call_log_batch.c
932 src/core/lib/surface/channel.c
933 src/core/lib/surface/channel_init.c
934 src/core/lib/surface/channel_ping.c
935 src/core/lib/surface/channel_stack_type.c
936 src/core/lib/surface/completion_queue.c
937 src/core/lib/surface/event_string.c
938 src/core/lib/surface/lame_client.c
939 src/core/lib/surface/metadata_array.c
940 src/core/lib/surface/server.c
941 src/core/lib/surface/validate_metadata.c
942 src/core/lib/surface/version.c
943 src/core/lib/transport/byte_stream.c
944 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700945 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100946 src/core/lib/transport/metadata.c
947 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700948 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700949 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100950 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400951 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100952 src/core/lib/transport/transport.c
953 src/core/lib/transport/transport_op_string.c
954 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
955 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
956 src/core/ext/transport/chttp2/transport/bin_decoder.c
957 src/core/ext/transport/chttp2/transport/bin_encoder.c
958 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
959 src/core/ext/transport/chttp2/transport/chttp2_transport.c
960 src/core/ext/transport/chttp2/transport/frame_data.c
961 src/core/ext/transport/chttp2/transport/frame_goaway.c
962 src/core/ext/transport/chttp2/transport/frame_ping.c
963 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
964 src/core/ext/transport/chttp2/transport/frame_settings.c
965 src/core/ext/transport/chttp2/transport/frame_window_update.c
966 src/core/ext/transport/chttp2/transport/hpack_encoder.c
967 src/core/ext/transport/chttp2/transport/hpack_parser.c
968 src/core/ext/transport/chttp2/transport/hpack_table.c
969 src/core/ext/transport/chttp2/transport/huffsyms.c
970 src/core/ext/transport/chttp2/transport/incoming_metadata.c
971 src/core/ext/transport/chttp2/transport/parsing.c
972 src/core/ext/transport/chttp2/transport/status_conversion.c
973 src/core/ext/transport/chttp2/transport/stream_lists.c
974 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100975 src/core/ext/transport/chttp2/transport/varint.c
976 src/core/ext/transport/chttp2/transport/writing.c
977 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth71403822016-12-02 10:51:39 -0800978 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100979 src/core/ext/transport/chttp2/client/insecure/channel_create.c
980 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -0800981 src/core/ext/transport/chttp2/client/chttp2_connector.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700982 src/core/ext/client_channel/channel_connectivity.c
983 src/core/ext/client_channel/client_channel.c
984 src/core/ext/client_channel/client_channel_factory.c
985 src/core/ext/client_channel/client_channel_plugin.c
986 src/core/ext/client_channel/connector.c
987 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700988 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700989 src/core/ext/client_channel/initial_connect_string.c
990 src/core/ext/client_channel/lb_policy.c
991 src/core/ext/client_channel/lb_policy_factory.c
992 src/core/ext/client_channel/lb_policy_registry.c
993 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -0800994 src/core/ext/client_channel/proxy_mapper.c
995 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700996 src/core/ext/client_channel/resolver.c
997 src/core/ext/client_channel/resolver_factory.c
998 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700999 src/core/ext/client_channel/subchannel.c
1000 src/core/ext/client_channel/subchannel_index.c
1001 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001002 src/core/ext/resolver/dns/native/dns_resolver.c
1003 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
1004 src/core/ext/load_reporting/load_reporting.c
1005 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -07001006 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001007 src/core/ext/lb_policy/grpclb/load_balancer_api.c
1008 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
1009 third_party/nanopb/pb_common.c
1010 third_party/nanopb/pb_decode.c
1011 third_party/nanopb/pb_encode.c
1012 src/core/ext/lb_policy/pick_first/pick_first.c
1013 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001014 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001015 src/core/ext/census/context.c
1016 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001017 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001018 src/core/ext/census/grpc_context.c
1019 src/core/ext/census/grpc_filter.c
1020 src/core/ext/census/grpc_plugin.c
1021 src/core/ext/census/initialize.c
1022 src/core/ext/census/mlog.c
1023 src/core/ext/census/operation.c
1024 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001025 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001026 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001027 src/core/ext/census/tracing.c
1028 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
1029)
1030
1031target_include_directories(grpc_unsecure
1032 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1033 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1034 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1035 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001036 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001037 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1038)
1039
1040target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001041 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001042 gpr
1043)
1044
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001045foreach(_hdr
1046 include/grpc/byte_buffer.h
1047 include/grpc/byte_buffer_reader.h
1048 include/grpc/compression.h
1049 include/grpc/grpc.h
1050 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001051 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001052 include/grpc/slice.h
1053 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001054 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001055 include/grpc/impl/codegen/byte_buffer_reader.h
1056 include/grpc/impl/codegen/compression_types.h
1057 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001058 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001059 include/grpc/impl/codegen/grpc_types.h
1060 include/grpc/impl/codegen/propagation_bits.h
1061 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001062 include/grpc/impl/codegen/atm.h
1063 include/grpc/impl/codegen/atm_gcc_atomic.h
1064 include/grpc/impl/codegen/atm_gcc_sync.h
1065 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001066 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001067 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001068 include/grpc/impl/codegen/port_platform.h
1069 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001070 include/grpc/impl/codegen/sync.h
1071 include/grpc/impl/codegen/sync_generic.h
1072 include/grpc/impl/codegen/sync_posix.h
1073 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001074 include/grpc/census.h
1075)
1076 string(REPLACE "include/" "" _path ${_hdr})
1077 get_filename_component(_path ${_path} PATH)
1078 install(FILES ${_hdr}
1079 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1080 )
1081endforeach()
1082
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001083
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001084if (gRPC_INSTALL)
1085 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1086 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1087 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1088 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1089 )
1090endif()
1091
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001092
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001093add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001094 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001095 src/cpp/client/secure_credentials.cc
1096 src/cpp/common/auth_property_iterator.cc
1097 src/cpp/common/secure_auth_context.cc
1098 src/cpp/common/secure_channel_arguments.cc
1099 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001100 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001101 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001102 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001103 src/cpp/client/client_context.cc
1104 src/cpp/client/create_channel.cc
1105 src/cpp/client/create_channel_internal.cc
1106 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001107 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001108 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001109 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001110 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001111 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001112 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001113 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001114 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001115 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001116 src/cpp/server/async_generic_service.cc
1117 src/cpp/server/create_default_thread_pool.cc
1118 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001119 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001120 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001121 src/cpp/server/server_context.cc
1122 src/cpp/server/server_credentials.cc
1123 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001124 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001125 src/cpp/util/byte_buffer_cc.cc
1126 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001127 src/cpp/util/status.cc
1128 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001129 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001130 src/cpp/codegen/codegen_init.cc
1131)
1132
1133target_include_directories(grpc++
1134 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1135 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1136 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1137 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001138 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001139 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1140)
1141
1142target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001143 ${_gRPC_BASELIB_LIBRARIES}
1144 ${_gRPC_SSL_LIBRARIES}
1145 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001146 grpc
1147)
1148
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001149foreach(_hdr
1150 include/grpc++/alarm.h
1151 include/grpc++/channel.h
1152 include/grpc++/client_context.h
1153 include/grpc++/completion_queue.h
1154 include/grpc++/create_channel.h
1155 include/grpc++/create_channel_posix.h
1156 include/grpc++/generic/async_generic_service.h
1157 include/grpc++/generic/generic_stub.h
1158 include/grpc++/grpc++.h
1159 include/grpc++/impl/call.h
1160 include/grpc++/impl/client_unary_call.h
1161 include/grpc++/impl/codegen/core_codegen.h
1162 include/grpc++/impl/grpc_library.h
1163 include/grpc++/impl/method_handler_impl.h
1164 include/grpc++/impl/rpc_method.h
1165 include/grpc++/impl/rpc_service_method.h
1166 include/grpc++/impl/serialization_traits.h
1167 include/grpc++/impl/server_builder_option.h
1168 include/grpc++/impl/server_builder_plugin.h
1169 include/grpc++/impl/server_initializer.h
1170 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001171 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001172 include/grpc++/security/auth_context.h
1173 include/grpc++/security/auth_metadata_processor.h
1174 include/grpc++/security/credentials.h
1175 include/grpc++/security/server_credentials.h
1176 include/grpc++/server.h
1177 include/grpc++/server_builder.h
1178 include/grpc++/server_context.h
1179 include/grpc++/server_posix.h
1180 include/grpc++/support/async_stream.h
1181 include/grpc++/support/async_unary_call.h
1182 include/grpc++/support/byte_buffer.h
1183 include/grpc++/support/channel_arguments.h
1184 include/grpc++/support/config.h
1185 include/grpc++/support/slice.h
1186 include/grpc++/support/status.h
1187 include/grpc++/support/status_code_enum.h
1188 include/grpc++/support/string_ref.h
1189 include/grpc++/support/stub_options.h
1190 include/grpc++/support/sync_stream.h
1191 include/grpc++/support/time.h
1192 include/grpc++/impl/codegen/async_stream.h
1193 include/grpc++/impl/codegen/async_unary_call.h
1194 include/grpc++/impl/codegen/call.h
1195 include/grpc++/impl/codegen/call_hook.h
1196 include/grpc++/impl/codegen/channel_interface.h
1197 include/grpc++/impl/codegen/client_context.h
1198 include/grpc++/impl/codegen/client_unary_call.h
1199 include/grpc++/impl/codegen/completion_queue.h
1200 include/grpc++/impl/codegen/completion_queue_tag.h
1201 include/grpc++/impl/codegen/config.h
1202 include/grpc++/impl/codegen/core_codegen_interface.h
1203 include/grpc++/impl/codegen/create_auth_context.h
1204 include/grpc++/impl/codegen/grpc_library.h
1205 include/grpc++/impl/codegen/method_handler_impl.h
1206 include/grpc++/impl/codegen/rpc_method.h
1207 include/grpc++/impl/codegen/rpc_service_method.h
1208 include/grpc++/impl/codegen/security/auth_context.h
1209 include/grpc++/impl/codegen/serialization_traits.h
1210 include/grpc++/impl/codegen/server_context.h
1211 include/grpc++/impl/codegen/server_interface.h
1212 include/grpc++/impl/codegen/service_type.h
1213 include/grpc++/impl/codegen/status.h
1214 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001215 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001216 include/grpc++/impl/codegen/string_ref.h
1217 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001218 include/grpc++/impl/codegen/sync_stream.h
1219 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001220 include/grpc/impl/codegen/byte_buffer_reader.h
1221 include/grpc/impl/codegen/compression_types.h
1222 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001223 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001224 include/grpc/impl/codegen/grpc_types.h
1225 include/grpc/impl/codegen/propagation_bits.h
1226 include/grpc/impl/codegen/status.h
1227 include/grpc/impl/codegen/atm.h
1228 include/grpc/impl/codegen/atm_gcc_atomic.h
1229 include/grpc/impl/codegen/atm_gcc_sync.h
1230 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001231 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001232 include/grpc/impl/codegen/gpr_types.h
1233 include/grpc/impl/codegen/port_platform.h
1234 include/grpc/impl/codegen/slice.h
1235 include/grpc/impl/codegen/sync.h
1236 include/grpc/impl/codegen/sync_generic.h
1237 include/grpc/impl/codegen/sync_posix.h
1238 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001239)
1240 string(REPLACE "include/" "" _path ${_hdr})
1241 get_filename_component(_path ${_path} PATH)
1242 install(FILES ${_hdr}
1243 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1244 )
1245endforeach()
1246
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001247
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001248if (gRPC_INSTALL)
1249 install(TARGETS grpc++ EXPORT gRPCTargets
1250 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1251 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1252 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1253 )
1254endif()
1255
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001256
Garrett Casto931a26b2016-10-04 09:18:29 -07001257add_library(grpc++_cronet
1258 src/cpp/client/cronet_credentials.cc
1259 src/cpp/client/insecure_credentials.cc
1260 src/cpp/common/insecure_create_auth_context.cc
1261 src/cpp/server/insecure_server_credentials.cc
1262 src/cpp/client/channel_cc.cc
1263 src/cpp/client/client_context.cc
1264 src/cpp/client/create_channel.cc
1265 src/cpp/client/create_channel_internal.cc
1266 src/cpp/client/create_channel_posix.cc
1267 src/cpp/client/credentials_cc.cc
1268 src/cpp/client/generic_stub.cc
1269 src/cpp/common/channel_arguments.cc
1270 src/cpp/common/channel_filter.cc
1271 src/cpp/common/completion_queue_cc.cc
1272 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07001273 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001274 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001275 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001276 src/cpp/server/async_generic_service.cc
1277 src/cpp/server/create_default_thread_pool.cc
1278 src/cpp/server/dynamic_thread_pool.cc
1279 src/cpp/server/server_builder.cc
1280 src/cpp/server/server_cc.cc
1281 src/cpp/server/server_context.cc
1282 src/cpp/server/server_credentials.cc
1283 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07001284 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001285 src/cpp/util/byte_buffer_cc.cc
1286 src/cpp/util/slice_cc.cc
1287 src/cpp/util/status.cc
1288 src/cpp/util/string_ref.cc
1289 src/cpp/util/time_cc.cc
1290 src/cpp/codegen/codegen_init.cc
ncteisen3770ac92016-11-28 11:02:41 -08001291 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1292 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08001293 src/core/ext/transport/chttp2/client/chttp2_connector.c
ncteisen3770ac92016-11-28 11:02:41 -08001294 src/core/ext/transport/chttp2/transport/bin_decoder.c
1295 src/core/ext/transport/chttp2/transport/bin_encoder.c
1296 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1297 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1298 src/core/ext/transport/chttp2/transport/frame_data.c
1299 src/core/ext/transport/chttp2/transport/frame_goaway.c
1300 src/core/ext/transport/chttp2/transport/frame_ping.c
1301 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1302 src/core/ext/transport/chttp2/transport/frame_settings.c
1303 src/core/ext/transport/chttp2/transport/frame_window_update.c
1304 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1305 src/core/ext/transport/chttp2/transport/hpack_parser.c
1306 src/core/ext/transport/chttp2/transport/hpack_table.c
1307 src/core/ext/transport/chttp2/transport/huffsyms.c
1308 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1309 src/core/ext/transport/chttp2/transport/parsing.c
1310 src/core/ext/transport/chttp2/transport/status_conversion.c
1311 src/core/ext/transport/chttp2/transport/stream_lists.c
1312 src/core/ext/transport/chttp2/transport/stream_map.c
1313 src/core/ext/transport/chttp2/transport/varint.c
1314 src/core/ext/transport/chttp2/transport/writing.c
1315 src/core/lib/channel/channel_args.c
1316 src/core/lib/channel/channel_stack.c
1317 src/core/lib/channel/channel_stack_builder.c
1318 src/core/lib/channel/compress_filter.c
1319 src/core/lib/channel/connected_channel.c
1320 src/core/lib/channel/deadline_filter.c
1321 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001322 src/core/lib/channel/handshaker_factory.c
1323 src/core/lib/channel/handshaker_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08001324 src/core/lib/channel/http_client_filter.c
1325 src/core/lib/channel/http_server_filter.c
1326 src/core/lib/channel/message_size_filter.c
1327 src/core/lib/compression/compression.c
1328 src/core/lib/compression/message_compress.c
1329 src/core/lib/debug/trace.c
1330 src/core/lib/http/format_request.c
1331 src/core/lib/http/httpcli.c
1332 src/core/lib/http/parser.c
1333 src/core/lib/iomgr/closure.c
1334 src/core/lib/iomgr/combiner.c
1335 src/core/lib/iomgr/endpoint.c
1336 src/core/lib/iomgr/endpoint_pair_posix.c
1337 src/core/lib/iomgr/endpoint_pair_uv.c
1338 src/core/lib/iomgr/endpoint_pair_windows.c
1339 src/core/lib/iomgr/error.c
1340 src/core/lib/iomgr/ev_epoll_linux.c
1341 src/core/lib/iomgr/ev_poll_posix.c
1342 src/core/lib/iomgr/ev_posix.c
1343 src/core/lib/iomgr/exec_ctx.c
1344 src/core/lib/iomgr/executor.c
1345 src/core/lib/iomgr/iocp_windows.c
1346 src/core/lib/iomgr/iomgr.c
1347 src/core/lib/iomgr/iomgr_posix.c
1348 src/core/lib/iomgr/iomgr_uv.c
1349 src/core/lib/iomgr/iomgr_windows.c
1350 src/core/lib/iomgr/load_file.c
1351 src/core/lib/iomgr/network_status_tracker.c
1352 src/core/lib/iomgr/polling_entity.c
1353 src/core/lib/iomgr/pollset_set_uv.c
1354 src/core/lib/iomgr/pollset_set_windows.c
1355 src/core/lib/iomgr/pollset_uv.c
1356 src/core/lib/iomgr/pollset_windows.c
1357 src/core/lib/iomgr/resolve_address_posix.c
1358 src/core/lib/iomgr/resolve_address_uv.c
1359 src/core/lib/iomgr/resolve_address_windows.c
1360 src/core/lib/iomgr/resource_quota.c
1361 src/core/lib/iomgr/sockaddr_utils.c
1362 src/core/lib/iomgr/socket_mutator.c
1363 src/core/lib/iomgr/socket_utils_common_posix.c
1364 src/core/lib/iomgr/socket_utils_linux.c
1365 src/core/lib/iomgr/socket_utils_posix.c
1366 src/core/lib/iomgr/socket_utils_uv.c
1367 src/core/lib/iomgr/socket_utils_windows.c
1368 src/core/lib/iomgr/socket_windows.c
1369 src/core/lib/iomgr/tcp_client_posix.c
1370 src/core/lib/iomgr/tcp_client_uv.c
1371 src/core/lib/iomgr/tcp_client_windows.c
1372 src/core/lib/iomgr/tcp_posix.c
1373 src/core/lib/iomgr/tcp_server_posix.c
1374 src/core/lib/iomgr/tcp_server_uv.c
1375 src/core/lib/iomgr/tcp_server_windows.c
1376 src/core/lib/iomgr/tcp_uv.c
1377 src/core/lib/iomgr/tcp_windows.c
1378 src/core/lib/iomgr/time_averaged_stats.c
1379 src/core/lib/iomgr/timer_generic.c
1380 src/core/lib/iomgr/timer_heap.c
1381 src/core/lib/iomgr/timer_uv.c
1382 src/core/lib/iomgr/udp_server.c
1383 src/core/lib/iomgr/unix_sockets_posix.c
1384 src/core/lib/iomgr/unix_sockets_posix_noop.c
1385 src/core/lib/iomgr/wakeup_fd_cv.c
1386 src/core/lib/iomgr/wakeup_fd_eventfd.c
1387 src/core/lib/iomgr/wakeup_fd_nospecial.c
1388 src/core/lib/iomgr/wakeup_fd_pipe.c
1389 src/core/lib/iomgr/wakeup_fd_posix.c
1390 src/core/lib/iomgr/workqueue_uv.c
1391 src/core/lib/iomgr/workqueue_windows.c
1392 src/core/lib/json/json.c
1393 src/core/lib/json/json_reader.c
1394 src/core/lib/json/json_string.c
1395 src/core/lib/json/json_writer.c
1396 src/core/lib/slice/percent_encoding.c
1397 src/core/lib/slice/slice.c
1398 src/core/lib/slice/slice_buffer.c
1399 src/core/lib/slice/slice_string_helpers.c
1400 src/core/lib/surface/alarm.c
1401 src/core/lib/surface/api_trace.c
1402 src/core/lib/surface/byte_buffer.c
1403 src/core/lib/surface/byte_buffer_reader.c
1404 src/core/lib/surface/call.c
1405 src/core/lib/surface/call_details.c
1406 src/core/lib/surface/call_log_batch.c
1407 src/core/lib/surface/channel.c
1408 src/core/lib/surface/channel_init.c
1409 src/core/lib/surface/channel_ping.c
1410 src/core/lib/surface/channel_stack_type.c
1411 src/core/lib/surface/completion_queue.c
1412 src/core/lib/surface/event_string.c
1413 src/core/lib/surface/lame_client.c
1414 src/core/lib/surface/metadata_array.c
1415 src/core/lib/surface/server.c
1416 src/core/lib/surface/validate_metadata.c
1417 src/core/lib/surface/version.c
1418 src/core/lib/transport/byte_stream.c
1419 src/core/lib/transport/connectivity_state.c
1420 src/core/lib/transport/mdstr_hash_table.c
1421 src/core/lib/transport/metadata.c
1422 src/core/lib/transport/metadata_batch.c
1423 src/core/lib/transport/pid_controller.c
1424 src/core/lib/transport/service_config.c
1425 src/core/lib/transport/static_metadata.c
1426 src/core/lib/transport/timeout_encoding.c
1427 src/core/lib/transport/transport.c
1428 src/core/lib/transport/transport_op_string.c
1429 src/core/ext/transport/chttp2/alpn/alpn.c
1430 src/core/ext/client_channel/channel_connectivity.c
1431 src/core/ext/client_channel/client_channel.c
1432 src/core/ext/client_channel/client_channel_factory.c
1433 src/core/ext/client_channel/client_channel_plugin.c
1434 src/core/ext/client_channel/connector.c
1435 src/core/ext/client_channel/default_initial_connect_string.c
1436 src/core/ext/client_channel/http_connect_handshaker.c
1437 src/core/ext/client_channel/initial_connect_string.c
1438 src/core/ext/client_channel/lb_policy.c
1439 src/core/ext/client_channel/lb_policy_factory.c
1440 src/core/ext/client_channel/lb_policy_registry.c
1441 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08001442 src/core/ext/client_channel/proxy_mapper.c
1443 src/core/ext/client_channel/proxy_mapper_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08001444 src/core/ext/client_channel/resolver.c
1445 src/core/ext/client_channel/resolver_factory.c
1446 src/core/ext/client_channel/resolver_registry.c
1447 src/core/ext/client_channel/subchannel.c
1448 src/core/ext/client_channel/subchannel_index.c
1449 src/core/ext/client_channel/uri_parser.c
1450 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1451 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08001452 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08001453 src/core/ext/census/base_resources.c
1454 src/core/ext/census/context.c
1455 src/core/ext/census/gen/census.pb.c
1456 src/core/ext/census/gen/trace_context.pb.c
1457 src/core/ext/census/grpc_context.c
1458 src/core/ext/census/grpc_filter.c
1459 src/core/ext/census/grpc_plugin.c
1460 src/core/ext/census/initialize.c
1461 src/core/ext/census/mlog.c
1462 src/core/ext/census/operation.c
1463 src/core/ext/census/placeholders.c
1464 src/core/ext/census/resource.c
1465 src/core/ext/census/trace_context.c
1466 src/core/ext/census/tracing.c
1467 third_party/nanopb/pb_common.c
1468 third_party/nanopb/pb_decode.c
1469 third_party/nanopb/pb_encode.c
Garrett Casto931a26b2016-10-04 09:18:29 -07001470)
1471
1472target_include_directories(grpc++_cronet
1473 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1474 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1475 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1476 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1477 PRIVATE ${ZLIB_INCLUDE_DIR}
1478 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1479)
1480
1481target_link_libraries(grpc++_cronet
1482 ${_gRPC_BASELIB_LIBRARIES}
1483 ${_gRPC_SSL_LIBRARIES}
1484 gpr
1485 grpc_cronet
1486)
1487
1488foreach(_hdr
1489 include/grpc++/alarm.h
1490 include/grpc++/channel.h
1491 include/grpc++/client_context.h
1492 include/grpc++/completion_queue.h
1493 include/grpc++/create_channel.h
1494 include/grpc++/create_channel_posix.h
1495 include/grpc++/generic/async_generic_service.h
1496 include/grpc++/generic/generic_stub.h
1497 include/grpc++/grpc++.h
1498 include/grpc++/impl/call.h
1499 include/grpc++/impl/client_unary_call.h
1500 include/grpc++/impl/codegen/core_codegen.h
1501 include/grpc++/impl/grpc_library.h
1502 include/grpc++/impl/method_handler_impl.h
1503 include/grpc++/impl/rpc_method.h
1504 include/grpc++/impl/rpc_service_method.h
1505 include/grpc++/impl/serialization_traits.h
1506 include/grpc++/impl/server_builder_option.h
1507 include/grpc++/impl/server_builder_plugin.h
1508 include/grpc++/impl/server_initializer.h
1509 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07001510 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001511 include/grpc++/security/auth_context.h
1512 include/grpc++/security/auth_metadata_processor.h
1513 include/grpc++/security/credentials.h
1514 include/grpc++/security/server_credentials.h
1515 include/grpc++/server.h
1516 include/grpc++/server_builder.h
1517 include/grpc++/server_context.h
1518 include/grpc++/server_posix.h
1519 include/grpc++/support/async_stream.h
1520 include/grpc++/support/async_unary_call.h
1521 include/grpc++/support/byte_buffer.h
1522 include/grpc++/support/channel_arguments.h
1523 include/grpc++/support/config.h
1524 include/grpc++/support/slice.h
1525 include/grpc++/support/status.h
1526 include/grpc++/support/status_code_enum.h
1527 include/grpc++/support/string_ref.h
1528 include/grpc++/support/stub_options.h
1529 include/grpc++/support/sync_stream.h
1530 include/grpc++/support/time.h
1531 include/grpc++/impl/codegen/async_stream.h
1532 include/grpc++/impl/codegen/async_unary_call.h
1533 include/grpc++/impl/codegen/call.h
1534 include/grpc++/impl/codegen/call_hook.h
1535 include/grpc++/impl/codegen/channel_interface.h
1536 include/grpc++/impl/codegen/client_context.h
1537 include/grpc++/impl/codegen/client_unary_call.h
1538 include/grpc++/impl/codegen/completion_queue.h
1539 include/grpc++/impl/codegen/completion_queue_tag.h
1540 include/grpc++/impl/codegen/config.h
1541 include/grpc++/impl/codegen/core_codegen_interface.h
1542 include/grpc++/impl/codegen/create_auth_context.h
1543 include/grpc++/impl/codegen/grpc_library.h
1544 include/grpc++/impl/codegen/method_handler_impl.h
1545 include/grpc++/impl/codegen/rpc_method.h
1546 include/grpc++/impl/codegen/rpc_service_method.h
1547 include/grpc++/impl/codegen/security/auth_context.h
1548 include/grpc++/impl/codegen/serialization_traits.h
1549 include/grpc++/impl/codegen/server_context.h
1550 include/grpc++/impl/codegen/server_interface.h
1551 include/grpc++/impl/codegen/service_type.h
1552 include/grpc++/impl/codegen/status.h
1553 include/grpc++/impl/codegen/status_code_enum.h
1554 include/grpc++/impl/codegen/status_helper.h
1555 include/grpc++/impl/codegen/string_ref.h
1556 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001557 include/grpc++/impl/codegen/sync_stream.h
1558 include/grpc++/impl/codegen/time.h
1559 include/grpc/impl/codegen/byte_buffer_reader.h
1560 include/grpc/impl/codegen/compression_types.h
1561 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001562 include/grpc/impl/codegen/exec_ctx_fwd.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001563 include/grpc/impl/codegen/grpc_types.h
1564 include/grpc/impl/codegen/propagation_bits.h
1565 include/grpc/impl/codegen/status.h
1566 include/grpc/impl/codegen/atm.h
1567 include/grpc/impl/codegen/atm_gcc_atomic.h
1568 include/grpc/impl/codegen/atm_gcc_sync.h
1569 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001570 include/grpc/impl/codegen/gpr_slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001571 include/grpc/impl/codegen/gpr_types.h
1572 include/grpc/impl/codegen/port_platform.h
1573 include/grpc/impl/codegen/slice.h
1574 include/grpc/impl/codegen/sync.h
1575 include/grpc/impl/codegen/sync_generic.h
1576 include/grpc/impl/codegen/sync_posix.h
1577 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08001578 include/grpc/byte_buffer.h
1579 include/grpc/byte_buffer_reader.h
1580 include/grpc/compression.h
1581 include/grpc/grpc.h
1582 include/grpc/grpc_posix.h
1583 include/grpc/grpc_security_constants.h
1584 include/grpc/slice.h
1585 include/grpc/slice_buffer.h
1586 include/grpc/status.h
1587 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001588)
1589 string(REPLACE "include/" "" _path ${_hdr})
1590 get_filename_component(_path ${_path} PATH)
1591 install(FILES ${_hdr}
1592 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1593 )
1594endforeach()
1595
1596
1597if (gRPC_INSTALL)
1598 install(TARGETS grpc++_cronet EXPORT gRPCTargets
1599 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1600 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1601 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1602 )
1603endif()
1604
1605
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001606add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001607 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001608 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001609 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001610 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001611 src/cpp/client/client_context.cc
1612 src/cpp/client/create_channel.cc
1613 src/cpp/client/create_channel_internal.cc
1614 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001615 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001616 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001617 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001618 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001619 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001620 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001621 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001622 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001623 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001624 src/cpp/server/async_generic_service.cc
1625 src/cpp/server/create_default_thread_pool.cc
1626 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001627 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001628 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001629 src/cpp/server/server_context.cc
1630 src/cpp/server/server_credentials.cc
1631 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001632 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001633 src/cpp/util/byte_buffer_cc.cc
1634 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001635 src/cpp/util/status.cc
1636 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001637 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001638 src/cpp/codegen/codegen_init.cc
1639)
1640
1641target_include_directories(grpc++_unsecure
1642 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1643 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1644 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1645 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001646 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001647 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1648)
1649
1650target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001651 ${_gRPC_BASELIB_LIBRARIES}
1652 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001653 gpr
1654 grpc_unsecure
1655)
1656
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001657foreach(_hdr
1658 include/grpc++/alarm.h
1659 include/grpc++/channel.h
1660 include/grpc++/client_context.h
1661 include/grpc++/completion_queue.h
1662 include/grpc++/create_channel.h
1663 include/grpc++/create_channel_posix.h
1664 include/grpc++/generic/async_generic_service.h
1665 include/grpc++/generic/generic_stub.h
1666 include/grpc++/grpc++.h
1667 include/grpc++/impl/call.h
1668 include/grpc++/impl/client_unary_call.h
1669 include/grpc++/impl/codegen/core_codegen.h
1670 include/grpc++/impl/grpc_library.h
1671 include/grpc++/impl/method_handler_impl.h
1672 include/grpc++/impl/rpc_method.h
1673 include/grpc++/impl/rpc_service_method.h
1674 include/grpc++/impl/serialization_traits.h
1675 include/grpc++/impl/server_builder_option.h
1676 include/grpc++/impl/server_builder_plugin.h
1677 include/grpc++/impl/server_initializer.h
1678 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001679 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001680 include/grpc++/security/auth_context.h
1681 include/grpc++/security/auth_metadata_processor.h
1682 include/grpc++/security/credentials.h
1683 include/grpc++/security/server_credentials.h
1684 include/grpc++/server.h
1685 include/grpc++/server_builder.h
1686 include/grpc++/server_context.h
1687 include/grpc++/server_posix.h
1688 include/grpc++/support/async_stream.h
1689 include/grpc++/support/async_unary_call.h
1690 include/grpc++/support/byte_buffer.h
1691 include/grpc++/support/channel_arguments.h
1692 include/grpc++/support/config.h
1693 include/grpc++/support/slice.h
1694 include/grpc++/support/status.h
1695 include/grpc++/support/status_code_enum.h
1696 include/grpc++/support/string_ref.h
1697 include/grpc++/support/stub_options.h
1698 include/grpc++/support/sync_stream.h
1699 include/grpc++/support/time.h
1700 include/grpc++/impl/codegen/async_stream.h
1701 include/grpc++/impl/codegen/async_unary_call.h
1702 include/grpc++/impl/codegen/call.h
1703 include/grpc++/impl/codegen/call_hook.h
1704 include/grpc++/impl/codegen/channel_interface.h
1705 include/grpc++/impl/codegen/client_context.h
1706 include/grpc++/impl/codegen/client_unary_call.h
1707 include/grpc++/impl/codegen/completion_queue.h
1708 include/grpc++/impl/codegen/completion_queue_tag.h
1709 include/grpc++/impl/codegen/config.h
1710 include/grpc++/impl/codegen/core_codegen_interface.h
1711 include/grpc++/impl/codegen/create_auth_context.h
1712 include/grpc++/impl/codegen/grpc_library.h
1713 include/grpc++/impl/codegen/method_handler_impl.h
1714 include/grpc++/impl/codegen/rpc_method.h
1715 include/grpc++/impl/codegen/rpc_service_method.h
1716 include/grpc++/impl/codegen/security/auth_context.h
1717 include/grpc++/impl/codegen/serialization_traits.h
1718 include/grpc++/impl/codegen/server_context.h
1719 include/grpc++/impl/codegen/server_interface.h
1720 include/grpc++/impl/codegen/service_type.h
1721 include/grpc++/impl/codegen/status.h
1722 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001723 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001724 include/grpc++/impl/codegen/string_ref.h
1725 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001726 include/grpc++/impl/codegen/sync_stream.h
1727 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001728 include/grpc/impl/codegen/byte_buffer_reader.h
1729 include/grpc/impl/codegen/compression_types.h
1730 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001731 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001732 include/grpc/impl/codegen/grpc_types.h
1733 include/grpc/impl/codegen/propagation_bits.h
1734 include/grpc/impl/codegen/status.h
1735 include/grpc/impl/codegen/atm.h
1736 include/grpc/impl/codegen/atm_gcc_atomic.h
1737 include/grpc/impl/codegen/atm_gcc_sync.h
1738 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001739 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001740 include/grpc/impl/codegen/gpr_types.h
1741 include/grpc/impl/codegen/port_platform.h
1742 include/grpc/impl/codegen/slice.h
1743 include/grpc/impl/codegen/sync.h
1744 include/grpc/impl/codegen/sync_generic.h
1745 include/grpc/impl/codegen/sync_posix.h
1746 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001747)
1748 string(REPLACE "include/" "" _path ${_hdr})
1749 get_filename_component(_path ${_path} PATH)
1750 install(FILES ${_hdr}
1751 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1752 )
1753endforeach()
1754
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001755
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001756if (gRPC_INSTALL)
1757 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1758 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1759 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1760 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1761 )
1762endif()
1763
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001764
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001765add_library(grpc_plugin_support
1766 src/compiler/cpp_generator.cc
1767 src/compiler/csharp_generator.cc
1768 src/compiler/node_generator.cc
1769 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07001770 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001771 src/compiler/python_generator.cc
1772 src/compiler/ruby_generator.cc
1773)
1774
1775target_include_directories(grpc_plugin_support
1776 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1777 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1778 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1779 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001780 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001781 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1782)
1783
1784target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001785 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001786)
1787
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001788foreach(_hdr
1789 include/grpc++/impl/codegen/config_protobuf.h
1790)
1791 string(REPLACE "include/" "" _path ${_hdr})
1792 get_filename_component(_path ${_path} PATH)
1793 install(FILES ${_hdr}
1794 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1795 )
1796endforeach()
1797
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001798
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001799if (gRPC_INSTALL)
1800 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1801 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1802 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1803 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1804 )
1805endif()
1806
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001807
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001808
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001809add_executable(gen_hpack_tables
1810 tools/codegen/core/gen_hpack_tables.c
1811)
1812
1813target_include_directories(gen_hpack_tables
1814 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1815 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1816 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1817 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1818 PRIVATE ${ZLIB_ROOT_DIR}
1819 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1820)
1821
1822target_link_libraries(gen_hpack_tables
1823 gpr
1824 grpc
1825)
1826
1827
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001828if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001829 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1830 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1831 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1832 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1833 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001834endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001835
1836
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001837add_executable(gen_legal_metadata_characters
1838 tools/codegen/core/gen_legal_metadata_characters.c
1839)
1840
1841target_include_directories(gen_legal_metadata_characters
1842 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1843 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1844 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1845 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1846 PRIVATE ${ZLIB_ROOT_DIR}
1847 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1848)
1849
1850
1851
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001852if (gRPC_INSTALL)
1853 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1854 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1855 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1856 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1857 )
1858endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001859
1860
Craig Tiller1c7a8422016-08-18 11:13:11 -07001861add_executable(gen_percent_encoding_tables
1862 tools/codegen/core/gen_percent_encoding_tables.c
1863)
1864
1865target_include_directories(gen_percent_encoding_tables
1866 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1867 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1868 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1869 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1870 PRIVATE ${ZLIB_ROOT_DIR}
1871 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1872)
1873
1874
1875
Craig Tiller426dcde2016-09-07 15:43:10 -07001876if (gRPC_INSTALL)
1877 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1878 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1879 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1880 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1881 )
1882endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001883
1884
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001885add_executable(grpc_create_jwt
1886 test/core/security/create_jwt.c
1887)
1888
1889target_include_directories(grpc_create_jwt
1890 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1891 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1892 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1893 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1894 PRIVATE ${ZLIB_ROOT_DIR}
1895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1896)
1897
1898target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001899 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001900 grpc
1901 gpr
1902)
1903
1904
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001905if (gRPC_INSTALL)
1906 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1907 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1908 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1909 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1910 )
1911endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001912
1913
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001914add_executable(grpc_print_google_default_creds_token
1915 test/core/security/print_google_default_creds_token.c
1916)
1917
1918target_include_directories(grpc_print_google_default_creds_token
1919 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1920 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1921 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1922 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1923 PRIVATE ${ZLIB_ROOT_DIR}
1924 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1925)
1926
1927target_link_libraries(grpc_print_google_default_creds_token
1928 grpc
1929 gpr
1930)
1931
1932
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001933if (gRPC_INSTALL)
1934 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1935 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1936 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1937 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1938 )
1939endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001940
1941
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001942add_executable(grpc_verify_jwt
1943 test/core/security/verify_jwt.c
1944)
1945
1946target_include_directories(grpc_verify_jwt
1947 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1948 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1949 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1950 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1951 PRIVATE ${ZLIB_ROOT_DIR}
1952 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1953)
1954
1955target_link_libraries(grpc_verify_jwt
1956 grpc
1957 gpr
1958)
1959
1960
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001961if (gRPC_INSTALL)
1962 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1963 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1964 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1965 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1966 )
1967endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001968
1969
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001970add_executable(grpc_cpp_plugin
1971 src/compiler/cpp_plugin.cc
1972)
1973
1974target_include_directories(grpc_cpp_plugin
1975 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1976 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1977 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1978 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1979 PRIVATE ${ZLIB_ROOT_DIR}
1980 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1981)
1982
1983target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001984 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001985 grpc_plugin_support
1986)
1987
1988
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001989if (gRPC_INSTALL)
1990 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1991 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1992 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1993 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1994 )
1995endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001996
1997
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001998add_executable(grpc_csharp_plugin
1999 src/compiler/csharp_plugin.cc
2000)
2001
2002target_include_directories(grpc_csharp_plugin
2003 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2004 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2005 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2006 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2007 PRIVATE ${ZLIB_ROOT_DIR}
2008 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2009)
2010
2011target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002012 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002013 grpc_plugin_support
2014)
2015
2016
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002017if (gRPC_INSTALL)
2018 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
2019 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2020 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2021 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2022 )
2023endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002024
2025
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002026add_executable(grpc_node_plugin
2027 src/compiler/node_plugin.cc
2028)
2029
2030target_include_directories(grpc_node_plugin
2031 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2032 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2033 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2034 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2035 PRIVATE ${ZLIB_ROOT_DIR}
2036 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2037)
2038
2039target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002040 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002041 grpc_plugin_support
2042)
2043
2044
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002045if (gRPC_INSTALL)
2046 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
2047 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2048 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2049 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2050 )
2051endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002052
2053
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002054add_executable(grpc_objective_c_plugin
2055 src/compiler/objective_c_plugin.cc
2056)
2057
2058target_include_directories(grpc_objective_c_plugin
2059 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2060 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2061 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2062 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2063 PRIVATE ${ZLIB_ROOT_DIR}
2064 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2065)
2066
2067target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002068 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002069 grpc_plugin_support
2070)
2071
2072
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002073if (gRPC_INSTALL)
2074 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
2075 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2076 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2077 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2078 )
2079endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002080
2081
Stanley Cheung857a1302016-09-29 17:26:29 -07002082add_executable(grpc_php_plugin
2083 src/compiler/php_plugin.cc
2084)
2085
2086target_include_directories(grpc_php_plugin
2087 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2088 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2089 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2090 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2091 PRIVATE ${ZLIB_ROOT_DIR}
2092 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2093)
2094
2095target_link_libraries(grpc_php_plugin
2096 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
2097 grpc_plugin_support
2098)
2099
2100
2101if (gRPC_INSTALL)
2102 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
2103 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2104 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2105 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2106 )
2107endif()
2108
2109
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002110add_executable(grpc_python_plugin
2111 src/compiler/python_plugin.cc
2112)
2113
2114target_include_directories(grpc_python_plugin
2115 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2116 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2117 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2118 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2119 PRIVATE ${ZLIB_ROOT_DIR}
2120 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2121)
2122
2123target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002124 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002125 grpc_plugin_support
2126)
2127
2128
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002129if (gRPC_INSTALL)
2130 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
2131 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2132 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2133 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2134 )
2135endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002136
2137
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002138add_executable(grpc_ruby_plugin
2139 src/compiler/ruby_plugin.cc
2140)
2141
2142target_include_directories(grpc_ruby_plugin
2143 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2144 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2145 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2146 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2147 PRIVATE ${ZLIB_ROOT_DIR}
2148 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2149)
2150
2151target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002152 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002153 grpc_plugin_support
2154)
2155
2156
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002157if (gRPC_INSTALL)
2158 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2159 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2160 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2161 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2162 )
2163endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002164
2165
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002166
2167
2168
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002169
2170
2171
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002172if (gRPC_INSTALL)
2173 install(EXPORT gRPCTargets
2174 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2175 NAMESPACE gRPC::
2176 )
2177endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002178
2179foreach(_config gRPCConfig gRPCConfigVersion)
2180 configure_file(tools/cmake/${_config}.cmake.in
2181 ${_config}.cmake @ONLY)
2182 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2183 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2184 )
2185endforeach()