blob: 8642578a42d3c3d67ce2f0bb919a253d6d85aaa6 [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)
69 add_definitions( -D_WIN32_WINNT=0x600 )
70endif()
71
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030072if (gRPC_USE_PROTO_LITE)
73 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010074 add_definitions("-DGRPC_USE_PROTO_LITE")
75else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030076 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010077endif()
78
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030079if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
80 if(NOT ZLIB_ROOT_DIR)
81 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
82 endif()
83 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
84 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
85 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
86 if(TARGET zlibstatic)
87 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
88 endif()
89 else()
90 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
91 endif()
92elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
93 find_package(ZLIB)
94 if(TARGET ZLIB::ZLIB)
95 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
96 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +030097 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010098endif()
99
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300100if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
101 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
102 # Disable them unless they are explicitly requested from the cmake command line (when we assume
103 # gmock is downloaded to the right location inside protobuf).
104 if(NOT protobuf_BUILD_TESTS)
105 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
106 endif()
107 if(NOT PROTOBUF_ROOT_DIR)
108 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
109 endif()
110 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300111 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300112 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
113 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
114 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
115 endif()
116 if(TARGET libprotoc)
117 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
118 endif()
119 else()
120 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
121 endif()
122elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
123 find_package(protobuf CONFIG)
124 if(protobuf_FOUND)
125 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
126 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
127 endif()
128 if(TARGET protobuf::libprotoc)
129 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
130 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300131 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300132 else()
133 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300134 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300135 endif()
136endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100137
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300138if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
139 if(NOT BORINGSSL_ROOT_DIR)
140 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
141 endif()
142 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
143 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
144 if(TARGET ssl)
145 set(_gRPC_SSL_LIBRARIES ssl)
146 endif()
147 else()
148 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
149 endif()
150elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
151 find_package(OpenSSL)
152 if(TARGET OpenSSL::SSL)
153 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
154 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300155 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300156endif()
157
158if(NOT MSVC)
159 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
160 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
161endif()
162
163if(WIN32 AND MSVC)
164 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100165endif()
166
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300167include(GNUInstallDirs)
168if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
169 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
170endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100171
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200172
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100173add_library(gpr
174 src/core/lib/profiling/basic_timers.c
175 src/core/lib/profiling/stap_timers.c
176 src/core/lib/support/alloc.c
177 src/core/lib/support/avl.c
178 src/core/lib/support/backoff.c
179 src/core/lib/support/cmdline.c
180 src/core/lib/support/cpu_iphone.c
181 src/core/lib/support/cpu_linux.c
182 src/core/lib/support/cpu_posix.c
183 src/core/lib/support/cpu_windows.c
184 src/core/lib/support/env_linux.c
185 src/core/lib/support/env_posix.c
186 src/core/lib/support/env_windows.c
187 src/core/lib/support/histogram.c
188 src/core/lib/support/host_port.c
189 src/core/lib/support/log.c
190 src/core/lib/support/log_android.c
191 src/core/lib/support/log_linux.c
192 src/core/lib/support/log_posix.c
193 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700194 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100195 src/core/lib/support/murmur_hash.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100196 src/core/lib/support/stack_lockfree.c
197 src/core/lib/support/string.c
198 src/core/lib/support/string_posix.c
199 src/core/lib/support/string_util_windows.c
200 src/core/lib/support/string_windows.c
201 src/core/lib/support/subprocess_posix.c
202 src/core/lib/support/subprocess_windows.c
203 src/core/lib/support/sync.c
204 src/core/lib/support/sync_posix.c
205 src/core/lib/support/sync_windows.c
206 src/core/lib/support/thd.c
207 src/core/lib/support/thd_posix.c
208 src/core/lib/support/thd_windows.c
209 src/core/lib/support/time.c
210 src/core/lib/support/time_posix.c
211 src/core/lib/support/time_precise.c
212 src/core/lib/support/time_windows.c
213 src/core/lib/support/tls_pthread.c
214 src/core/lib/support/tmpfile_msys.c
215 src/core/lib/support/tmpfile_posix.c
216 src/core/lib/support/tmpfile_windows.c
217 src/core/lib/support/wrap_memcpy.c
218)
219
220target_include_directories(gpr
221 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
222 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
223 PRIVATE ${BORINGSSL_ROOT_DIR}/include
224 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300225 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
227)
228
229
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300230foreach(_hdr
231 include/grpc/support/alloc.h
232 include/grpc/support/atm.h
233 include/grpc/support/atm_gcc_atomic.h
234 include/grpc/support/atm_gcc_sync.h
235 include/grpc/support/atm_windows.h
236 include/grpc/support/avl.h
237 include/grpc/support/cmdline.h
238 include/grpc/support/cpu.h
239 include/grpc/support/histogram.h
240 include/grpc/support/host_port.h
241 include/grpc/support/log.h
242 include/grpc/support/log_windows.h
243 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300244 include/grpc/support/string_util.h
245 include/grpc/support/subprocess.h
246 include/grpc/support/sync.h
247 include/grpc/support/sync_generic.h
248 include/grpc/support/sync_posix.h
249 include/grpc/support/sync_windows.h
250 include/grpc/support/thd.h
251 include/grpc/support/time.h
252 include/grpc/support/tls.h
253 include/grpc/support/tls_gcc.h
254 include/grpc/support/tls_msvc.h
255 include/grpc/support/tls_pthread.h
256 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300257 include/grpc/impl/codegen/atm.h
258 include/grpc/impl/codegen/atm_gcc_atomic.h
259 include/grpc/impl/codegen/atm_gcc_sync.h
260 include/grpc/impl/codegen/atm_windows.h
Craig Tiller7cdad962016-11-10 08:37:21 -0800261 include/grpc/impl/codegen/exec_ctx_fwd.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700262 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300263 include/grpc/impl/codegen/port_platform.h
264 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300265 include/grpc/impl/codegen/sync.h
266 include/grpc/impl/codegen/sync_generic.h
267 include/grpc/impl/codegen/sync_posix.h
268 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300269)
270 string(REPLACE "include/" "" _path ${_hdr})
271 get_filename_component(_path ${_path} PATH)
272 install(FILES ${_hdr}
273 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
274 )
275endforeach()
276
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200277
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300278if (gRPC_INSTALL)
279 install(TARGETS gpr EXPORT gRPCTargets
280 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
281 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
282 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
283 )
284endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300285
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200286
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100287add_library(grpc
288 src/core/lib/surface/init.c
289 src/core/lib/channel/channel_args.c
290 src/core/lib/channel/channel_stack.c
291 src/core/lib/channel/channel_stack_builder.c
292 src/core/lib/channel/compress_filter.c
293 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700294 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700295 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100296 src/core/lib/channel/http_client_filter.c
297 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700298 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100299 src/core/lib/compression/compression.c
300 src/core/lib/compression/message_compress.c
301 src/core/lib/debug/trace.c
302 src/core/lib/http/format_request.c
303 src/core/lib/http/httpcli.c
304 src/core/lib/http/parser.c
305 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700306 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100307 src/core/lib/iomgr/endpoint.c
308 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700309 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100310 src/core/lib/iomgr/endpoint_pair_windows.c
311 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200312 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100313 src/core/lib/iomgr/ev_poll_posix.c
314 src/core/lib/iomgr/ev_posix.c
315 src/core/lib/iomgr/exec_ctx.c
316 src/core/lib/iomgr/executor.c
317 src/core/lib/iomgr/iocp_windows.c
318 src/core/lib/iomgr/iomgr.c
319 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700320 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100321 src/core/lib/iomgr/iomgr_windows.c
322 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200323 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100324 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700325 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100326 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700327 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100328 src/core/lib/iomgr/pollset_windows.c
329 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700330 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100331 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700332 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100333 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700334 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100335 src/core/lib/iomgr/socket_utils_common_posix.c
336 src/core/lib/iomgr/socket_utils_linux.c
337 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700338 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700339 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100340 src/core/lib/iomgr/socket_windows.c
341 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700342 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100343 src/core/lib/iomgr/tcp_client_windows.c
344 src/core/lib/iomgr/tcp_posix.c
345 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700346 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100347 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700348 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100349 src/core/lib/iomgr/tcp_windows.c
350 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700351 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100352 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700353 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100354 src/core/lib/iomgr/udp_server.c
355 src/core/lib/iomgr/unix_sockets_posix.c
356 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700357 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100358 src/core/lib/iomgr/wakeup_fd_eventfd.c
359 src/core/lib/iomgr/wakeup_fd_nospecial.c
360 src/core/lib/iomgr/wakeup_fd_pipe.c
361 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700362 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100363 src/core/lib/iomgr/workqueue_windows.c
364 src/core/lib/json/json.c
365 src/core/lib/json/json_reader.c
366 src/core/lib/json/json_string.c
367 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700368 src/core/lib/slice/percent_encoding.c
369 src/core/lib/slice/slice.c
370 src/core/lib/slice/slice_buffer.c
Craig Tiller64b26562016-11-10 08:31:42 -0800371 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -0700372 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100373 src/core/lib/surface/alarm.c
374 src/core/lib/surface/api_trace.c
375 src/core/lib/surface/byte_buffer.c
376 src/core/lib/surface/byte_buffer_reader.c
377 src/core/lib/surface/call.c
378 src/core/lib/surface/call_details.c
379 src/core/lib/surface/call_log_batch.c
380 src/core/lib/surface/channel.c
381 src/core/lib/surface/channel_init.c
382 src/core/lib/surface/channel_ping.c
383 src/core/lib/surface/channel_stack_type.c
384 src/core/lib/surface/completion_queue.c
385 src/core/lib/surface/event_string.c
386 src/core/lib/surface/lame_client.c
387 src/core/lib/surface/metadata_array.c
388 src/core/lib/surface/server.c
389 src/core/lib/surface/validate_metadata.c
390 src/core/lib/surface/version.c
391 src/core/lib/transport/byte_stream.c
392 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700393 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100394 src/core/lib/transport/metadata.c
395 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700396 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700397 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100398 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400399 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100400 src/core/lib/transport/transport.c
401 src/core/lib/transport/transport_op_string.c
402 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
403 src/core/ext/transport/chttp2/transport/bin_decoder.c
404 src/core/ext/transport/chttp2/transport/bin_encoder.c
405 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
406 src/core/ext/transport/chttp2/transport/chttp2_transport.c
407 src/core/ext/transport/chttp2/transport/frame_data.c
408 src/core/ext/transport/chttp2/transport/frame_goaway.c
409 src/core/ext/transport/chttp2/transport/frame_ping.c
410 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
411 src/core/ext/transport/chttp2/transport/frame_settings.c
412 src/core/ext/transport/chttp2/transport/frame_window_update.c
413 src/core/ext/transport/chttp2/transport/hpack_encoder.c
414 src/core/ext/transport/chttp2/transport/hpack_parser.c
415 src/core/ext/transport/chttp2/transport/hpack_table.c
416 src/core/ext/transport/chttp2/transport/huffsyms.c
417 src/core/ext/transport/chttp2/transport/incoming_metadata.c
418 src/core/ext/transport/chttp2/transport/parsing.c
419 src/core/ext/transport/chttp2/transport/status_conversion.c
420 src/core/ext/transport/chttp2/transport/stream_lists.c
421 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100422 src/core/ext/transport/chttp2/transport/varint.c
423 src/core/ext/transport/chttp2/transport/writing.c
424 src/core/ext/transport/chttp2/alpn/alpn.c
425 src/core/lib/http/httpcli_security_connector.c
426 src/core/lib/security/context/security_context.c
427 src/core/lib/security/credentials/composite/composite_credentials.c
428 src/core/lib/security/credentials/credentials.c
429 src/core/lib/security/credentials/credentials_metadata.c
430 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700431 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100432 src/core/lib/security/credentials/google_default/google_default_credentials.c
433 src/core/lib/security/credentials/iam/iam_credentials.c
434 src/core/lib/security/credentials/jwt/json_token.c
435 src/core/lib/security/credentials/jwt/jwt_credentials.c
436 src/core/lib/security/credentials/jwt/jwt_verifier.c
437 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
438 src/core/lib/security/credentials/plugin/plugin_credentials.c
439 src/core/lib/security/credentials/ssl/ssl_credentials.c
440 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100441 src/core/lib/security/transport/secure_endpoint.c
442 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800443 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100444 src/core/lib/security/transport/server_auth_filter.c
445 src/core/lib/security/transport/tsi_error.c
446 src/core/lib/security/util/b64.c
447 src/core/lib/security/util/json_util.c
448 src/core/lib/surface/init_secure.c
449 src/core/lib/tsi/fake_transport_security.c
450 src/core/lib/tsi/ssl_transport_security.c
451 src/core/lib/tsi/transport_security.c
Mark D. Roth71403822016-12-02 10:51:39 -0800452 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100453 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700454 src/core/ext/client_channel/channel_connectivity.c
455 src/core/ext/client_channel/client_channel.c
456 src/core/ext/client_channel/client_channel_factory.c
457 src/core/ext/client_channel/client_channel_plugin.c
458 src/core/ext/client_channel/connector.c
459 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700460 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700461 src/core/ext/client_channel/initial_connect_string.c
462 src/core/ext/client_channel/lb_policy.c
463 src/core/ext/client_channel/lb_policy_factory.c
464 src/core/ext/client_channel/lb_policy_registry.c
465 src/core/ext/client_channel/parse_address.c
466 src/core/ext/client_channel/resolver.c
467 src/core/ext/client_channel/resolver_factory.c
468 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700469 src/core/ext/client_channel/subchannel.c
470 src/core/ext/client_channel/subchannel_index.c
471 src/core/ext/client_channel/uri_parser.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800472 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100473 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
474 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
475 src/core/ext/transport/chttp2/client/insecure/channel_create.c
476 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700477 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100478 src/core/ext/lb_policy/grpclb/load_balancer_api.c
479 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
480 third_party/nanopb/pb_common.c
481 third_party/nanopb/pb_decode.c
482 third_party/nanopb/pb_encode.c
483 src/core/ext/lb_policy/pick_first/pick_first.c
484 src/core/ext/lb_policy/round_robin/round_robin.c
485 src/core/ext/resolver/dns/native/dns_resolver.c
486 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
487 src/core/ext/load_reporting/load_reporting.c
488 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700489 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100490 src/core/ext/census/context.c
491 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700492 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100493 src/core/ext/census/grpc_context.c
494 src/core/ext/census/grpc_filter.c
495 src/core/ext/census/grpc_plugin.c
496 src/core/ext/census/initialize.c
497 src/core/ext/census/mlog.c
498 src/core/ext/census/operation.c
499 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700500 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700501 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100502 src/core/ext/census/tracing.c
503 src/core/plugin_registry/grpc_plugin_registry.c
504)
505
506target_include_directories(grpc
507 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
508 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
509 PRIVATE ${BORINGSSL_ROOT_DIR}/include
510 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300511 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100512 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
513)
514
515target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300516 ${_gRPC_BASELIB_LIBRARIES}
517 ${_gRPC_SSL_LIBRARIES}
518 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100519 gpr
520)
521
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300522foreach(_hdr
523 include/grpc/byte_buffer.h
524 include/grpc/byte_buffer_reader.h
525 include/grpc/compression.h
526 include/grpc/grpc.h
527 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200528 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700529 include/grpc/slice.h
530 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300531 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300532 include/grpc/impl/codegen/byte_buffer_reader.h
533 include/grpc/impl/codegen/compression_types.h
534 include/grpc/impl/codegen/connectivity_state.h
535 include/grpc/impl/codegen/grpc_types.h
536 include/grpc/impl/codegen/propagation_bits.h
537 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300538 include/grpc/impl/codegen/atm.h
539 include/grpc/impl/codegen/atm_gcc_atomic.h
540 include/grpc/impl/codegen/atm_gcc_sync.h
541 include/grpc/impl/codegen/atm_windows.h
Craig Tiller7cdad962016-11-10 08:37:21 -0800542 include/grpc/impl/codegen/exec_ctx_fwd.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700543 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300544 include/grpc/impl/codegen/port_platform.h
545 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300546 include/grpc/impl/codegen/sync.h
547 include/grpc/impl/codegen/sync_generic.h
548 include/grpc/impl/codegen/sync_posix.h
549 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300550 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300551 include/grpc/census.h
552)
553 string(REPLACE "include/" "" _path ${_hdr})
554 get_filename_component(_path ${_path} PATH)
555 install(FILES ${_hdr}
556 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
557 )
558endforeach()
559
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200560
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300561if (gRPC_INSTALL)
562 install(TARGETS grpc EXPORT gRPCTargets
563 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
564 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
565 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
566 )
567endif()
568
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200569
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100570add_library(grpc_cronet
571 src/core/lib/surface/init.c
572 src/core/lib/channel/channel_args.c
573 src/core/lib/channel/channel_stack.c
574 src/core/lib/channel/channel_stack_builder.c
575 src/core/lib/channel/compress_filter.c
576 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700577 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700578 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100579 src/core/lib/channel/http_client_filter.c
580 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700581 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100582 src/core/lib/compression/compression.c
583 src/core/lib/compression/message_compress.c
584 src/core/lib/debug/trace.c
585 src/core/lib/http/format_request.c
586 src/core/lib/http/httpcli.c
587 src/core/lib/http/parser.c
588 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700589 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100590 src/core/lib/iomgr/endpoint.c
591 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700592 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100593 src/core/lib/iomgr/endpoint_pair_windows.c
594 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200595 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100596 src/core/lib/iomgr/ev_poll_posix.c
597 src/core/lib/iomgr/ev_posix.c
598 src/core/lib/iomgr/exec_ctx.c
599 src/core/lib/iomgr/executor.c
600 src/core/lib/iomgr/iocp_windows.c
601 src/core/lib/iomgr/iomgr.c
602 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700603 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100604 src/core/lib/iomgr/iomgr_windows.c
605 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200606 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100607 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700608 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100609 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700610 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100611 src/core/lib/iomgr/pollset_windows.c
612 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700613 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100614 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700615 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100616 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700617 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100618 src/core/lib/iomgr/socket_utils_common_posix.c
619 src/core/lib/iomgr/socket_utils_linux.c
620 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700621 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700622 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100623 src/core/lib/iomgr/socket_windows.c
624 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700625 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100626 src/core/lib/iomgr/tcp_client_windows.c
627 src/core/lib/iomgr/tcp_posix.c
628 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700629 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100630 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700631 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100632 src/core/lib/iomgr/tcp_windows.c
633 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700634 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100635 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700636 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100637 src/core/lib/iomgr/udp_server.c
638 src/core/lib/iomgr/unix_sockets_posix.c
639 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700640 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100641 src/core/lib/iomgr/wakeup_fd_eventfd.c
642 src/core/lib/iomgr/wakeup_fd_nospecial.c
643 src/core/lib/iomgr/wakeup_fd_pipe.c
644 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700645 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100646 src/core/lib/iomgr/workqueue_windows.c
647 src/core/lib/json/json.c
648 src/core/lib/json/json_reader.c
649 src/core/lib/json/json_string.c
650 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700651 src/core/lib/slice/percent_encoding.c
652 src/core/lib/slice/slice.c
653 src/core/lib/slice/slice_buffer.c
Craig Tiller64b26562016-11-10 08:31:42 -0800654 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -0700655 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100656 src/core/lib/surface/alarm.c
657 src/core/lib/surface/api_trace.c
658 src/core/lib/surface/byte_buffer.c
659 src/core/lib/surface/byte_buffer_reader.c
660 src/core/lib/surface/call.c
661 src/core/lib/surface/call_details.c
662 src/core/lib/surface/call_log_batch.c
663 src/core/lib/surface/channel.c
664 src/core/lib/surface/channel_init.c
665 src/core/lib/surface/channel_ping.c
666 src/core/lib/surface/channel_stack_type.c
667 src/core/lib/surface/completion_queue.c
668 src/core/lib/surface/event_string.c
669 src/core/lib/surface/lame_client.c
670 src/core/lib/surface/metadata_array.c
671 src/core/lib/surface/server.c
672 src/core/lib/surface/validate_metadata.c
673 src/core/lib/surface/version.c
674 src/core/lib/transport/byte_stream.c
675 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700676 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100677 src/core/lib/transport/metadata.c
678 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700679 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700680 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100681 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400682 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100683 src/core/lib/transport/transport.c
684 src/core/lib/transport/transport_op_string.c
685 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
686 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
687 src/core/ext/transport/cronet/transport/cronet_transport.c
688 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
689 src/core/ext/transport/chttp2/transport/bin_decoder.c
690 src/core/ext/transport/chttp2/transport/bin_encoder.c
691 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
692 src/core/ext/transport/chttp2/transport/chttp2_transport.c
693 src/core/ext/transport/chttp2/transport/frame_data.c
694 src/core/ext/transport/chttp2/transport/frame_goaway.c
695 src/core/ext/transport/chttp2/transport/frame_ping.c
696 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
697 src/core/ext/transport/chttp2/transport/frame_settings.c
698 src/core/ext/transport/chttp2/transport/frame_window_update.c
699 src/core/ext/transport/chttp2/transport/hpack_encoder.c
700 src/core/ext/transport/chttp2/transport/hpack_parser.c
701 src/core/ext/transport/chttp2/transport/hpack_table.c
702 src/core/ext/transport/chttp2/transport/huffsyms.c
703 src/core/ext/transport/chttp2/transport/incoming_metadata.c
704 src/core/ext/transport/chttp2/transport/parsing.c
705 src/core/ext/transport/chttp2/transport/status_conversion.c
706 src/core/ext/transport/chttp2/transport/stream_lists.c
707 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100708 src/core/ext/transport/chttp2/transport/varint.c
709 src/core/ext/transport/chttp2/transport/writing.c
710 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700711 src/core/ext/client_channel/channel_connectivity.c
712 src/core/ext/client_channel/client_channel.c
713 src/core/ext/client_channel/client_channel_factory.c
714 src/core/ext/client_channel/client_channel_plugin.c
715 src/core/ext/client_channel/connector.c
716 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700717 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700718 src/core/ext/client_channel/initial_connect_string.c
719 src/core/ext/client_channel/lb_policy.c
720 src/core/ext/client_channel/lb_policy_factory.c
721 src/core/ext/client_channel/lb_policy_registry.c
722 src/core/ext/client_channel/parse_address.c
723 src/core/ext/client_channel/resolver.c
724 src/core/ext/client_channel/resolver_factory.c
725 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700726 src/core/ext/client_channel/subchannel.c
727 src/core/ext/client_channel/subchannel_index.c
728 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100729 src/core/lib/http/httpcli_security_connector.c
730 src/core/lib/security/context/security_context.c
731 src/core/lib/security/credentials/composite/composite_credentials.c
732 src/core/lib/security/credentials/credentials.c
733 src/core/lib/security/credentials/credentials_metadata.c
734 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700735 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100736 src/core/lib/security/credentials/google_default/google_default_credentials.c
737 src/core/lib/security/credentials/iam/iam_credentials.c
738 src/core/lib/security/credentials/jwt/json_token.c
739 src/core/lib/security/credentials/jwt/jwt_credentials.c
740 src/core/lib/security/credentials/jwt/jwt_verifier.c
741 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
742 src/core/lib/security/credentials/plugin/plugin_credentials.c
743 src/core/lib/security/credentials/ssl/ssl_credentials.c
744 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100745 src/core/lib/security/transport/secure_endpoint.c
746 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800747 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100748 src/core/lib/security/transport/server_auth_filter.c
749 src/core/lib/security/transport/tsi_error.c
750 src/core/lib/security/util/b64.c
751 src/core/lib/security/util/json_util.c
752 src/core/lib/surface/init_secure.c
753 src/core/lib/tsi/fake_transport_security.c
754 src/core/lib/tsi/ssl_transport_security.c
755 src/core/lib/tsi/transport_security.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800756 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100757 src/core/plugin_registry/grpc_cronet_plugin_registry.c
758)
759
760target_include_directories(grpc_cronet
761 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
762 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
763 PRIVATE ${BORINGSSL_ROOT_DIR}/include
764 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300765 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100766 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
767)
768
769target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300770 ${_gRPC_BASELIB_LIBRARIES}
771 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100772 gpr
773)
774
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300775foreach(_hdr
776 include/grpc/byte_buffer.h
777 include/grpc/byte_buffer_reader.h
778 include/grpc/compression.h
779 include/grpc/grpc.h
780 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200781 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700782 include/grpc/slice.h
783 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300784 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300785 include/grpc/impl/codegen/byte_buffer_reader.h
786 include/grpc/impl/codegen/compression_types.h
787 include/grpc/impl/codegen/connectivity_state.h
788 include/grpc/impl/codegen/grpc_types.h
789 include/grpc/impl/codegen/propagation_bits.h
790 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300791 include/grpc/impl/codegen/atm.h
792 include/grpc/impl/codegen/atm_gcc_atomic.h
793 include/grpc/impl/codegen/atm_gcc_sync.h
794 include/grpc/impl/codegen/atm_windows.h
Craig Tiller7cdad962016-11-10 08:37:21 -0800795 include/grpc/impl/codegen/exec_ctx_fwd.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700796 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300797 include/grpc/impl/codegen/port_platform.h
798 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300799 include/grpc/impl/codegen/sync.h
800 include/grpc/impl/codegen/sync_generic.h
801 include/grpc/impl/codegen/sync_posix.h
802 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300803 include/grpc/grpc_cronet.h
804 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300805)
806 string(REPLACE "include/" "" _path ${_hdr})
807 get_filename_component(_path ${_path} PATH)
808 install(FILES ${_hdr}
809 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
810 )
811endforeach()
812
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200813
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300814if (gRPC_INSTALL)
815 install(TARGETS grpc_cronet EXPORT gRPCTargets
816 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
817 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
818 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
819 )
820endif()
821
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200822
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100823add_library(grpc_unsecure
824 src/core/lib/surface/init.c
825 src/core/lib/surface/init_unsecure.c
826 src/core/lib/channel/channel_args.c
827 src/core/lib/channel/channel_stack.c
828 src/core/lib/channel/channel_stack_builder.c
829 src/core/lib/channel/compress_filter.c
830 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700831 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700832 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100833 src/core/lib/channel/http_client_filter.c
834 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700835 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100836 src/core/lib/compression/compression.c
837 src/core/lib/compression/message_compress.c
838 src/core/lib/debug/trace.c
839 src/core/lib/http/format_request.c
840 src/core/lib/http/httpcli.c
841 src/core/lib/http/parser.c
842 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700843 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100844 src/core/lib/iomgr/endpoint.c
845 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700846 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100847 src/core/lib/iomgr/endpoint_pair_windows.c
848 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200849 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100850 src/core/lib/iomgr/ev_poll_posix.c
851 src/core/lib/iomgr/ev_posix.c
852 src/core/lib/iomgr/exec_ctx.c
853 src/core/lib/iomgr/executor.c
854 src/core/lib/iomgr/iocp_windows.c
855 src/core/lib/iomgr/iomgr.c
856 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700857 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100858 src/core/lib/iomgr/iomgr_windows.c
859 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200860 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100861 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700862 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100863 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700864 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100865 src/core/lib/iomgr/pollset_windows.c
866 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700867 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100868 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700869 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100870 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700871 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100872 src/core/lib/iomgr/socket_utils_common_posix.c
873 src/core/lib/iomgr/socket_utils_linux.c
874 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700875 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700876 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100877 src/core/lib/iomgr/socket_windows.c
878 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700879 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100880 src/core/lib/iomgr/tcp_client_windows.c
881 src/core/lib/iomgr/tcp_posix.c
882 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700883 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100884 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700885 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100886 src/core/lib/iomgr/tcp_windows.c
887 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700888 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100889 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700890 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100891 src/core/lib/iomgr/udp_server.c
892 src/core/lib/iomgr/unix_sockets_posix.c
893 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700894 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100895 src/core/lib/iomgr/wakeup_fd_eventfd.c
896 src/core/lib/iomgr/wakeup_fd_nospecial.c
897 src/core/lib/iomgr/wakeup_fd_pipe.c
898 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700899 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100900 src/core/lib/iomgr/workqueue_windows.c
901 src/core/lib/json/json.c
902 src/core/lib/json/json_reader.c
903 src/core/lib/json/json_string.c
904 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700905 src/core/lib/slice/percent_encoding.c
906 src/core/lib/slice/slice.c
907 src/core/lib/slice/slice_buffer.c
Craig Tiller64b26562016-11-10 08:31:42 -0800908 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -0700909 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100910 src/core/lib/surface/alarm.c
911 src/core/lib/surface/api_trace.c
912 src/core/lib/surface/byte_buffer.c
913 src/core/lib/surface/byte_buffer_reader.c
914 src/core/lib/surface/call.c
915 src/core/lib/surface/call_details.c
916 src/core/lib/surface/call_log_batch.c
917 src/core/lib/surface/channel.c
918 src/core/lib/surface/channel_init.c
919 src/core/lib/surface/channel_ping.c
920 src/core/lib/surface/channel_stack_type.c
921 src/core/lib/surface/completion_queue.c
922 src/core/lib/surface/event_string.c
923 src/core/lib/surface/lame_client.c
924 src/core/lib/surface/metadata_array.c
925 src/core/lib/surface/server.c
926 src/core/lib/surface/validate_metadata.c
927 src/core/lib/surface/version.c
928 src/core/lib/transport/byte_stream.c
929 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700930 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100931 src/core/lib/transport/metadata.c
932 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700933 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700934 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100935 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400936 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100937 src/core/lib/transport/transport.c
938 src/core/lib/transport/transport_op_string.c
939 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
940 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
941 src/core/ext/transport/chttp2/transport/bin_decoder.c
942 src/core/ext/transport/chttp2/transport/bin_encoder.c
943 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
944 src/core/ext/transport/chttp2/transport/chttp2_transport.c
945 src/core/ext/transport/chttp2/transport/frame_data.c
946 src/core/ext/transport/chttp2/transport/frame_goaway.c
947 src/core/ext/transport/chttp2/transport/frame_ping.c
948 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
949 src/core/ext/transport/chttp2/transport/frame_settings.c
950 src/core/ext/transport/chttp2/transport/frame_window_update.c
951 src/core/ext/transport/chttp2/transport/hpack_encoder.c
952 src/core/ext/transport/chttp2/transport/hpack_parser.c
953 src/core/ext/transport/chttp2/transport/hpack_table.c
954 src/core/ext/transport/chttp2/transport/huffsyms.c
955 src/core/ext/transport/chttp2/transport/incoming_metadata.c
956 src/core/ext/transport/chttp2/transport/parsing.c
957 src/core/ext/transport/chttp2/transport/status_conversion.c
958 src/core/ext/transport/chttp2/transport/stream_lists.c
959 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100960 src/core/ext/transport/chttp2/transport/varint.c
961 src/core/ext/transport/chttp2/transport/writing.c
962 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth71403822016-12-02 10:51:39 -0800963 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100964 src/core/ext/transport/chttp2/client/insecure/channel_create.c
965 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -0800966 src/core/ext/transport/chttp2/client/chttp2_connector.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700967 src/core/ext/client_channel/channel_connectivity.c
968 src/core/ext/client_channel/client_channel.c
969 src/core/ext/client_channel/client_channel_factory.c
970 src/core/ext/client_channel/client_channel_plugin.c
971 src/core/ext/client_channel/connector.c
972 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700973 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700974 src/core/ext/client_channel/initial_connect_string.c
975 src/core/ext/client_channel/lb_policy.c
976 src/core/ext/client_channel/lb_policy_factory.c
977 src/core/ext/client_channel/lb_policy_registry.c
978 src/core/ext/client_channel/parse_address.c
979 src/core/ext/client_channel/resolver.c
980 src/core/ext/client_channel/resolver_factory.c
981 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700982 src/core/ext/client_channel/subchannel.c
983 src/core/ext/client_channel/subchannel_index.c
984 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100985 src/core/ext/resolver/dns/native/dns_resolver.c
986 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
987 src/core/ext/load_reporting/load_reporting.c
988 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700989 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100990 src/core/ext/lb_policy/grpclb/load_balancer_api.c
991 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
992 third_party/nanopb/pb_common.c
993 third_party/nanopb/pb_decode.c
994 third_party/nanopb/pb_encode.c
995 src/core/ext/lb_policy/pick_first/pick_first.c
996 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700997 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100998 src/core/ext/census/context.c
999 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001000 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001001 src/core/ext/census/grpc_context.c
1002 src/core/ext/census/grpc_filter.c
1003 src/core/ext/census/grpc_plugin.c
1004 src/core/ext/census/initialize.c
1005 src/core/ext/census/mlog.c
1006 src/core/ext/census/operation.c
1007 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001008 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001009 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001010 src/core/ext/census/tracing.c
1011 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
1012)
1013
1014target_include_directories(grpc_unsecure
1015 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1016 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1017 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1018 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001019 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001020 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1021)
1022
1023target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001024 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001025 gpr
1026)
1027
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001028foreach(_hdr
1029 include/grpc/byte_buffer.h
1030 include/grpc/byte_buffer_reader.h
1031 include/grpc/compression.h
1032 include/grpc/grpc.h
1033 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001034 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001035 include/grpc/slice.h
1036 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001037 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001038 include/grpc/impl/codegen/byte_buffer_reader.h
1039 include/grpc/impl/codegen/compression_types.h
1040 include/grpc/impl/codegen/connectivity_state.h
1041 include/grpc/impl/codegen/grpc_types.h
1042 include/grpc/impl/codegen/propagation_bits.h
1043 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001044 include/grpc/impl/codegen/atm.h
1045 include/grpc/impl/codegen/atm_gcc_atomic.h
1046 include/grpc/impl/codegen/atm_gcc_sync.h
1047 include/grpc/impl/codegen/atm_windows.h
Craig Tiller7cdad962016-11-10 08:37:21 -08001048 include/grpc/impl/codegen/exec_ctx_fwd.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001049 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001050 include/grpc/impl/codegen/port_platform.h
1051 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001052 include/grpc/impl/codegen/sync.h
1053 include/grpc/impl/codegen/sync_generic.h
1054 include/grpc/impl/codegen/sync_posix.h
1055 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001056 include/grpc/census.h
1057)
1058 string(REPLACE "include/" "" _path ${_hdr})
1059 get_filename_component(_path ${_path} PATH)
1060 install(FILES ${_hdr}
1061 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1062 )
1063endforeach()
1064
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001065
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001066if (gRPC_INSTALL)
1067 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1068 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1069 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1070 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1071 )
1072endif()
1073
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001074
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001075add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001076 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001077 src/cpp/client/secure_credentials.cc
1078 src/cpp/common/auth_property_iterator.cc
1079 src/cpp/common/secure_auth_context.cc
1080 src/cpp/common/secure_channel_arguments.cc
1081 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001082 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001083 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001084 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001085 src/cpp/client/client_context.cc
1086 src/cpp/client/create_channel.cc
1087 src/cpp/client/create_channel_internal.cc
1088 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001089 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001090 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001091 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001092 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001093 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001094 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001095 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001096 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001097 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001098 src/cpp/server/async_generic_service.cc
1099 src/cpp/server/create_default_thread_pool.cc
1100 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001101 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001102 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001103 src/cpp/server/server_context.cc
1104 src/cpp/server/server_credentials.cc
1105 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001106 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001107 src/cpp/util/byte_buffer_cc.cc
1108 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001109 src/cpp/util/status.cc
1110 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001111 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001112 src/cpp/codegen/codegen_init.cc
1113)
1114
1115target_include_directories(grpc++
1116 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1117 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1118 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1119 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001120 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001121 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1122)
1123
1124target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001125 ${_gRPC_BASELIB_LIBRARIES}
1126 ${_gRPC_SSL_LIBRARIES}
1127 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001128 grpc
1129)
1130
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001131foreach(_hdr
1132 include/grpc++/alarm.h
1133 include/grpc++/channel.h
1134 include/grpc++/client_context.h
1135 include/grpc++/completion_queue.h
1136 include/grpc++/create_channel.h
1137 include/grpc++/create_channel_posix.h
1138 include/grpc++/generic/async_generic_service.h
1139 include/grpc++/generic/generic_stub.h
1140 include/grpc++/grpc++.h
1141 include/grpc++/impl/call.h
1142 include/grpc++/impl/client_unary_call.h
1143 include/grpc++/impl/codegen/core_codegen.h
1144 include/grpc++/impl/grpc_library.h
1145 include/grpc++/impl/method_handler_impl.h
1146 include/grpc++/impl/rpc_method.h
1147 include/grpc++/impl/rpc_service_method.h
1148 include/grpc++/impl/serialization_traits.h
1149 include/grpc++/impl/server_builder_option.h
1150 include/grpc++/impl/server_builder_plugin.h
1151 include/grpc++/impl/server_initializer.h
1152 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001153 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001154 include/grpc++/security/auth_context.h
1155 include/grpc++/security/auth_metadata_processor.h
1156 include/grpc++/security/credentials.h
1157 include/grpc++/security/server_credentials.h
1158 include/grpc++/server.h
1159 include/grpc++/server_builder.h
1160 include/grpc++/server_context.h
1161 include/grpc++/server_posix.h
1162 include/grpc++/support/async_stream.h
1163 include/grpc++/support/async_unary_call.h
1164 include/grpc++/support/byte_buffer.h
1165 include/grpc++/support/channel_arguments.h
1166 include/grpc++/support/config.h
1167 include/grpc++/support/slice.h
1168 include/grpc++/support/status.h
1169 include/grpc++/support/status_code_enum.h
1170 include/grpc++/support/string_ref.h
1171 include/grpc++/support/stub_options.h
1172 include/grpc++/support/sync_stream.h
1173 include/grpc++/support/time.h
1174 include/grpc++/impl/codegen/async_stream.h
1175 include/grpc++/impl/codegen/async_unary_call.h
1176 include/grpc++/impl/codegen/call.h
1177 include/grpc++/impl/codegen/call_hook.h
1178 include/grpc++/impl/codegen/channel_interface.h
1179 include/grpc++/impl/codegen/client_context.h
1180 include/grpc++/impl/codegen/client_unary_call.h
1181 include/grpc++/impl/codegen/completion_queue.h
1182 include/grpc++/impl/codegen/completion_queue_tag.h
1183 include/grpc++/impl/codegen/config.h
1184 include/grpc++/impl/codegen/core_codegen_interface.h
1185 include/grpc++/impl/codegen/create_auth_context.h
1186 include/grpc++/impl/codegen/grpc_library.h
1187 include/grpc++/impl/codegen/method_handler_impl.h
1188 include/grpc++/impl/codegen/rpc_method.h
1189 include/grpc++/impl/codegen/rpc_service_method.h
1190 include/grpc++/impl/codegen/security/auth_context.h
1191 include/grpc++/impl/codegen/serialization_traits.h
1192 include/grpc++/impl/codegen/server_context.h
1193 include/grpc++/impl/codegen/server_interface.h
1194 include/grpc++/impl/codegen/service_type.h
1195 include/grpc++/impl/codegen/status.h
1196 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001197 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001198 include/grpc++/impl/codegen/string_ref.h
1199 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001200 include/grpc++/impl/codegen/sync_stream.h
1201 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001202 include/grpc/impl/codegen/byte_buffer_reader.h
1203 include/grpc/impl/codegen/compression_types.h
1204 include/grpc/impl/codegen/connectivity_state.h
1205 include/grpc/impl/codegen/grpc_types.h
1206 include/grpc/impl/codegen/propagation_bits.h
1207 include/grpc/impl/codegen/status.h
1208 include/grpc/impl/codegen/atm.h
1209 include/grpc/impl/codegen/atm_gcc_atomic.h
1210 include/grpc/impl/codegen/atm_gcc_sync.h
1211 include/grpc/impl/codegen/atm_windows.h
Craig Tiller7cdad962016-11-10 08:37:21 -08001212 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001213 include/grpc/impl/codegen/gpr_types.h
1214 include/grpc/impl/codegen/port_platform.h
1215 include/grpc/impl/codegen/slice.h
1216 include/grpc/impl/codegen/sync.h
1217 include/grpc/impl/codegen/sync_generic.h
1218 include/grpc/impl/codegen/sync_posix.h
1219 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001220)
1221 string(REPLACE "include/" "" _path ${_hdr})
1222 get_filename_component(_path ${_path} PATH)
1223 install(FILES ${_hdr}
1224 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1225 )
1226endforeach()
1227
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001228
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001229if (gRPC_INSTALL)
1230 install(TARGETS grpc++ EXPORT gRPCTargets
1231 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1232 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1233 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1234 )
1235endif()
1236
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001237
Garrett Casto931a26b2016-10-04 09:18:29 -07001238add_library(grpc++_cronet
1239 src/cpp/client/cronet_credentials.cc
1240 src/cpp/client/insecure_credentials.cc
1241 src/cpp/common/insecure_create_auth_context.cc
1242 src/cpp/server/insecure_server_credentials.cc
1243 src/cpp/client/channel_cc.cc
1244 src/cpp/client/client_context.cc
1245 src/cpp/client/create_channel.cc
1246 src/cpp/client/create_channel_internal.cc
1247 src/cpp/client/create_channel_posix.cc
1248 src/cpp/client/credentials_cc.cc
1249 src/cpp/client/generic_stub.cc
1250 src/cpp/common/channel_arguments.cc
1251 src/cpp/common/channel_filter.cc
1252 src/cpp/common/completion_queue_cc.cc
1253 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07001254 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001255 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001256 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001257 src/cpp/server/async_generic_service.cc
1258 src/cpp/server/create_default_thread_pool.cc
1259 src/cpp/server/dynamic_thread_pool.cc
1260 src/cpp/server/server_builder.cc
1261 src/cpp/server/server_cc.cc
1262 src/cpp/server/server_context.cc
1263 src/cpp/server/server_credentials.cc
1264 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07001265 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001266 src/cpp/util/byte_buffer_cc.cc
1267 src/cpp/util/slice_cc.cc
1268 src/cpp/util/status.cc
1269 src/cpp/util/string_ref.cc
1270 src/cpp/util/time_cc.cc
1271 src/cpp/codegen/codegen_init.cc
ncteisen3770ac92016-11-28 11:02:41 -08001272 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1273 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08001274 src/core/ext/transport/chttp2/client/chttp2_connector.c
ncteisen3770ac92016-11-28 11:02:41 -08001275 src/core/ext/transport/chttp2/transport/bin_decoder.c
1276 src/core/ext/transport/chttp2/transport/bin_encoder.c
1277 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1278 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1279 src/core/ext/transport/chttp2/transport/frame_data.c
1280 src/core/ext/transport/chttp2/transport/frame_goaway.c
1281 src/core/ext/transport/chttp2/transport/frame_ping.c
1282 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1283 src/core/ext/transport/chttp2/transport/frame_settings.c
1284 src/core/ext/transport/chttp2/transport/frame_window_update.c
1285 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1286 src/core/ext/transport/chttp2/transport/hpack_parser.c
1287 src/core/ext/transport/chttp2/transport/hpack_table.c
1288 src/core/ext/transport/chttp2/transport/huffsyms.c
1289 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1290 src/core/ext/transport/chttp2/transport/parsing.c
1291 src/core/ext/transport/chttp2/transport/status_conversion.c
1292 src/core/ext/transport/chttp2/transport/stream_lists.c
1293 src/core/ext/transport/chttp2/transport/stream_map.c
1294 src/core/ext/transport/chttp2/transport/varint.c
1295 src/core/ext/transport/chttp2/transport/writing.c
1296 src/core/lib/channel/channel_args.c
1297 src/core/lib/channel/channel_stack.c
1298 src/core/lib/channel/channel_stack_builder.c
1299 src/core/lib/channel/compress_filter.c
1300 src/core/lib/channel/connected_channel.c
1301 src/core/lib/channel/deadline_filter.c
1302 src/core/lib/channel/handshaker.c
1303 src/core/lib/channel/http_client_filter.c
1304 src/core/lib/channel/http_server_filter.c
1305 src/core/lib/channel/message_size_filter.c
1306 src/core/lib/compression/compression.c
1307 src/core/lib/compression/message_compress.c
1308 src/core/lib/debug/trace.c
1309 src/core/lib/http/format_request.c
1310 src/core/lib/http/httpcli.c
1311 src/core/lib/http/parser.c
1312 src/core/lib/iomgr/closure.c
1313 src/core/lib/iomgr/combiner.c
1314 src/core/lib/iomgr/endpoint.c
1315 src/core/lib/iomgr/endpoint_pair_posix.c
1316 src/core/lib/iomgr/endpoint_pair_uv.c
1317 src/core/lib/iomgr/endpoint_pair_windows.c
1318 src/core/lib/iomgr/error.c
1319 src/core/lib/iomgr/ev_epoll_linux.c
1320 src/core/lib/iomgr/ev_poll_posix.c
1321 src/core/lib/iomgr/ev_posix.c
1322 src/core/lib/iomgr/exec_ctx.c
1323 src/core/lib/iomgr/executor.c
1324 src/core/lib/iomgr/iocp_windows.c
1325 src/core/lib/iomgr/iomgr.c
1326 src/core/lib/iomgr/iomgr_posix.c
1327 src/core/lib/iomgr/iomgr_uv.c
1328 src/core/lib/iomgr/iomgr_windows.c
1329 src/core/lib/iomgr/load_file.c
1330 src/core/lib/iomgr/network_status_tracker.c
1331 src/core/lib/iomgr/polling_entity.c
1332 src/core/lib/iomgr/pollset_set_uv.c
1333 src/core/lib/iomgr/pollset_set_windows.c
1334 src/core/lib/iomgr/pollset_uv.c
1335 src/core/lib/iomgr/pollset_windows.c
1336 src/core/lib/iomgr/resolve_address_posix.c
1337 src/core/lib/iomgr/resolve_address_uv.c
1338 src/core/lib/iomgr/resolve_address_windows.c
1339 src/core/lib/iomgr/resource_quota.c
1340 src/core/lib/iomgr/sockaddr_utils.c
1341 src/core/lib/iomgr/socket_mutator.c
1342 src/core/lib/iomgr/socket_utils_common_posix.c
1343 src/core/lib/iomgr/socket_utils_linux.c
1344 src/core/lib/iomgr/socket_utils_posix.c
1345 src/core/lib/iomgr/socket_utils_uv.c
1346 src/core/lib/iomgr/socket_utils_windows.c
1347 src/core/lib/iomgr/socket_windows.c
1348 src/core/lib/iomgr/tcp_client_posix.c
1349 src/core/lib/iomgr/tcp_client_uv.c
1350 src/core/lib/iomgr/tcp_client_windows.c
1351 src/core/lib/iomgr/tcp_posix.c
1352 src/core/lib/iomgr/tcp_server_posix.c
1353 src/core/lib/iomgr/tcp_server_uv.c
1354 src/core/lib/iomgr/tcp_server_windows.c
1355 src/core/lib/iomgr/tcp_uv.c
1356 src/core/lib/iomgr/tcp_windows.c
1357 src/core/lib/iomgr/time_averaged_stats.c
1358 src/core/lib/iomgr/timer_generic.c
1359 src/core/lib/iomgr/timer_heap.c
1360 src/core/lib/iomgr/timer_uv.c
1361 src/core/lib/iomgr/udp_server.c
1362 src/core/lib/iomgr/unix_sockets_posix.c
1363 src/core/lib/iomgr/unix_sockets_posix_noop.c
1364 src/core/lib/iomgr/wakeup_fd_cv.c
1365 src/core/lib/iomgr/wakeup_fd_eventfd.c
1366 src/core/lib/iomgr/wakeup_fd_nospecial.c
1367 src/core/lib/iomgr/wakeup_fd_pipe.c
1368 src/core/lib/iomgr/wakeup_fd_posix.c
1369 src/core/lib/iomgr/workqueue_uv.c
1370 src/core/lib/iomgr/workqueue_windows.c
1371 src/core/lib/json/json.c
1372 src/core/lib/json/json_reader.c
1373 src/core/lib/json/json_string.c
1374 src/core/lib/json/json_writer.c
1375 src/core/lib/slice/percent_encoding.c
1376 src/core/lib/slice/slice.c
1377 src/core/lib/slice/slice_buffer.c
Craig Tiller35769dc2016-12-06 20:23:13 -08001378 src/core/lib/slice/slice_intern.c
ncteisen3770ac92016-11-28 11:02:41 -08001379 src/core/lib/slice/slice_string_helpers.c
1380 src/core/lib/surface/alarm.c
1381 src/core/lib/surface/api_trace.c
1382 src/core/lib/surface/byte_buffer.c
1383 src/core/lib/surface/byte_buffer_reader.c
1384 src/core/lib/surface/call.c
1385 src/core/lib/surface/call_details.c
1386 src/core/lib/surface/call_log_batch.c
1387 src/core/lib/surface/channel.c
1388 src/core/lib/surface/channel_init.c
1389 src/core/lib/surface/channel_ping.c
1390 src/core/lib/surface/channel_stack_type.c
1391 src/core/lib/surface/completion_queue.c
1392 src/core/lib/surface/event_string.c
1393 src/core/lib/surface/lame_client.c
1394 src/core/lib/surface/metadata_array.c
1395 src/core/lib/surface/server.c
1396 src/core/lib/surface/validate_metadata.c
1397 src/core/lib/surface/version.c
1398 src/core/lib/transport/byte_stream.c
1399 src/core/lib/transport/connectivity_state.c
1400 src/core/lib/transport/mdstr_hash_table.c
1401 src/core/lib/transport/metadata.c
1402 src/core/lib/transport/metadata_batch.c
1403 src/core/lib/transport/pid_controller.c
1404 src/core/lib/transport/service_config.c
1405 src/core/lib/transport/static_metadata.c
1406 src/core/lib/transport/timeout_encoding.c
1407 src/core/lib/transport/transport.c
1408 src/core/lib/transport/transport_op_string.c
1409 src/core/ext/transport/chttp2/alpn/alpn.c
1410 src/core/ext/client_channel/channel_connectivity.c
1411 src/core/ext/client_channel/client_channel.c
1412 src/core/ext/client_channel/client_channel_factory.c
1413 src/core/ext/client_channel/client_channel_plugin.c
1414 src/core/ext/client_channel/connector.c
1415 src/core/ext/client_channel/default_initial_connect_string.c
1416 src/core/ext/client_channel/http_connect_handshaker.c
1417 src/core/ext/client_channel/initial_connect_string.c
1418 src/core/ext/client_channel/lb_policy.c
1419 src/core/ext/client_channel/lb_policy_factory.c
1420 src/core/ext/client_channel/lb_policy_registry.c
1421 src/core/ext/client_channel/parse_address.c
1422 src/core/ext/client_channel/resolver.c
1423 src/core/ext/client_channel/resolver_factory.c
1424 src/core/ext/client_channel/resolver_registry.c
1425 src/core/ext/client_channel/subchannel.c
1426 src/core/ext/client_channel/subchannel_index.c
1427 src/core/ext/client_channel/uri_parser.c
1428 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1429 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08001430 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08001431 src/core/ext/census/base_resources.c
1432 src/core/ext/census/context.c
1433 src/core/ext/census/gen/census.pb.c
1434 src/core/ext/census/gen/trace_context.pb.c
1435 src/core/ext/census/grpc_context.c
1436 src/core/ext/census/grpc_filter.c
1437 src/core/ext/census/grpc_plugin.c
1438 src/core/ext/census/initialize.c
1439 src/core/ext/census/mlog.c
1440 src/core/ext/census/operation.c
1441 src/core/ext/census/placeholders.c
1442 src/core/ext/census/resource.c
1443 src/core/ext/census/trace_context.c
1444 src/core/ext/census/tracing.c
1445 third_party/nanopb/pb_common.c
1446 third_party/nanopb/pb_decode.c
1447 third_party/nanopb/pb_encode.c
Garrett Casto931a26b2016-10-04 09:18:29 -07001448)
1449
1450target_include_directories(grpc++_cronet
1451 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1452 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1453 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1454 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1455 PRIVATE ${ZLIB_INCLUDE_DIR}
1456 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1457)
1458
1459target_link_libraries(grpc++_cronet
1460 ${_gRPC_BASELIB_LIBRARIES}
1461 ${_gRPC_SSL_LIBRARIES}
1462 gpr
1463 grpc_cronet
1464)
1465
1466foreach(_hdr
1467 include/grpc++/alarm.h
1468 include/grpc++/channel.h
1469 include/grpc++/client_context.h
1470 include/grpc++/completion_queue.h
1471 include/grpc++/create_channel.h
1472 include/grpc++/create_channel_posix.h
1473 include/grpc++/generic/async_generic_service.h
1474 include/grpc++/generic/generic_stub.h
1475 include/grpc++/grpc++.h
1476 include/grpc++/impl/call.h
1477 include/grpc++/impl/client_unary_call.h
1478 include/grpc++/impl/codegen/core_codegen.h
1479 include/grpc++/impl/grpc_library.h
1480 include/grpc++/impl/method_handler_impl.h
1481 include/grpc++/impl/rpc_method.h
1482 include/grpc++/impl/rpc_service_method.h
1483 include/grpc++/impl/serialization_traits.h
1484 include/grpc++/impl/server_builder_option.h
1485 include/grpc++/impl/server_builder_plugin.h
1486 include/grpc++/impl/server_initializer.h
1487 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07001488 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001489 include/grpc++/security/auth_context.h
1490 include/grpc++/security/auth_metadata_processor.h
1491 include/grpc++/security/credentials.h
1492 include/grpc++/security/server_credentials.h
1493 include/grpc++/server.h
1494 include/grpc++/server_builder.h
1495 include/grpc++/server_context.h
1496 include/grpc++/server_posix.h
1497 include/grpc++/support/async_stream.h
1498 include/grpc++/support/async_unary_call.h
1499 include/grpc++/support/byte_buffer.h
1500 include/grpc++/support/channel_arguments.h
1501 include/grpc++/support/config.h
1502 include/grpc++/support/slice.h
1503 include/grpc++/support/status.h
1504 include/grpc++/support/status_code_enum.h
1505 include/grpc++/support/string_ref.h
1506 include/grpc++/support/stub_options.h
1507 include/grpc++/support/sync_stream.h
1508 include/grpc++/support/time.h
1509 include/grpc++/impl/codegen/async_stream.h
1510 include/grpc++/impl/codegen/async_unary_call.h
1511 include/grpc++/impl/codegen/call.h
1512 include/grpc++/impl/codegen/call_hook.h
1513 include/grpc++/impl/codegen/channel_interface.h
1514 include/grpc++/impl/codegen/client_context.h
1515 include/grpc++/impl/codegen/client_unary_call.h
1516 include/grpc++/impl/codegen/completion_queue.h
1517 include/grpc++/impl/codegen/completion_queue_tag.h
1518 include/grpc++/impl/codegen/config.h
1519 include/grpc++/impl/codegen/core_codegen_interface.h
1520 include/grpc++/impl/codegen/create_auth_context.h
1521 include/grpc++/impl/codegen/grpc_library.h
1522 include/grpc++/impl/codegen/method_handler_impl.h
1523 include/grpc++/impl/codegen/rpc_method.h
1524 include/grpc++/impl/codegen/rpc_service_method.h
1525 include/grpc++/impl/codegen/security/auth_context.h
1526 include/grpc++/impl/codegen/serialization_traits.h
1527 include/grpc++/impl/codegen/server_context.h
1528 include/grpc++/impl/codegen/server_interface.h
1529 include/grpc++/impl/codegen/service_type.h
1530 include/grpc++/impl/codegen/status.h
1531 include/grpc++/impl/codegen/status_code_enum.h
1532 include/grpc++/impl/codegen/status_helper.h
1533 include/grpc++/impl/codegen/string_ref.h
1534 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001535 include/grpc++/impl/codegen/sync_stream.h
1536 include/grpc++/impl/codegen/time.h
1537 include/grpc/impl/codegen/byte_buffer_reader.h
1538 include/grpc/impl/codegen/compression_types.h
1539 include/grpc/impl/codegen/connectivity_state.h
1540 include/grpc/impl/codegen/grpc_types.h
1541 include/grpc/impl/codegen/propagation_bits.h
1542 include/grpc/impl/codegen/status.h
1543 include/grpc/impl/codegen/atm.h
1544 include/grpc/impl/codegen/atm_gcc_atomic.h
1545 include/grpc/impl/codegen/atm_gcc_sync.h
1546 include/grpc/impl/codegen/atm_windows.h
Craig Tiller7cdad962016-11-10 08:37:21 -08001547 include/grpc/impl/codegen/exec_ctx_fwd.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001548 include/grpc/impl/codegen/gpr_types.h
1549 include/grpc/impl/codegen/port_platform.h
1550 include/grpc/impl/codegen/slice.h
1551 include/grpc/impl/codegen/sync.h
1552 include/grpc/impl/codegen/sync_generic.h
1553 include/grpc/impl/codegen/sync_posix.h
1554 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08001555 include/grpc/byte_buffer.h
1556 include/grpc/byte_buffer_reader.h
1557 include/grpc/compression.h
1558 include/grpc/grpc.h
1559 include/grpc/grpc_posix.h
1560 include/grpc/grpc_security_constants.h
1561 include/grpc/slice.h
1562 include/grpc/slice_buffer.h
1563 include/grpc/status.h
1564 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001565)
1566 string(REPLACE "include/" "" _path ${_hdr})
1567 get_filename_component(_path ${_path} PATH)
1568 install(FILES ${_hdr}
1569 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1570 )
1571endforeach()
1572
1573
1574if (gRPC_INSTALL)
1575 install(TARGETS grpc++_cronet EXPORT gRPCTargets
1576 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1577 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1578 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1579 )
1580endif()
1581
1582
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001583add_library(grpc++_reflection
1584 src/cpp/ext/proto_server_reflection.cc
1585 src/cpp/ext/proto_server_reflection_plugin.cc
Yuchen Zeng169c9852016-10-14 15:58:09 -07001586 src/proto/grpc/reflection/v1alpha/reflection.proto
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001587)
1588
1589target_include_directories(grpc++_reflection
1590 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1591 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1592 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1593 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001594 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001595 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1596)
1597
1598target_link_libraries(grpc++_reflection
1599 grpc++
1600)
1601
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001602foreach(_hdr
1603 include/grpc++/ext/proto_server_reflection_plugin.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001604)
1605 string(REPLACE "include/" "" _path ${_hdr})
1606 get_filename_component(_path ${_path} PATH)
1607 install(FILES ${_hdr}
1608 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1609 )
1610endforeach()
1611
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001612
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001613if (gRPC_INSTALL)
1614 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1615 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1616 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1617 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1618 )
1619endif()
1620
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001621
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001622add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001623 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001624 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001625 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001626 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001627 src/cpp/client/client_context.cc
1628 src/cpp/client/create_channel.cc
1629 src/cpp/client/create_channel_internal.cc
1630 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001631 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001632 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001633 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001634 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001635 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001636 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001637 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001638 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001639 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001640 src/cpp/server/async_generic_service.cc
1641 src/cpp/server/create_default_thread_pool.cc
1642 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001643 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001644 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001645 src/cpp/server/server_context.cc
1646 src/cpp/server/server_credentials.cc
1647 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001648 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001649 src/cpp/util/byte_buffer_cc.cc
1650 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001651 src/cpp/util/status.cc
1652 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001653 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001654 src/cpp/codegen/codegen_init.cc
1655)
1656
1657target_include_directories(grpc++_unsecure
1658 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1659 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1660 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1661 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001662 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001663 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1664)
1665
1666target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001667 ${_gRPC_BASELIB_LIBRARIES}
1668 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001669 gpr
1670 grpc_unsecure
1671)
1672
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001673foreach(_hdr
1674 include/grpc++/alarm.h
1675 include/grpc++/channel.h
1676 include/grpc++/client_context.h
1677 include/grpc++/completion_queue.h
1678 include/grpc++/create_channel.h
1679 include/grpc++/create_channel_posix.h
1680 include/grpc++/generic/async_generic_service.h
1681 include/grpc++/generic/generic_stub.h
1682 include/grpc++/grpc++.h
1683 include/grpc++/impl/call.h
1684 include/grpc++/impl/client_unary_call.h
1685 include/grpc++/impl/codegen/core_codegen.h
1686 include/grpc++/impl/grpc_library.h
1687 include/grpc++/impl/method_handler_impl.h
1688 include/grpc++/impl/rpc_method.h
1689 include/grpc++/impl/rpc_service_method.h
1690 include/grpc++/impl/serialization_traits.h
1691 include/grpc++/impl/server_builder_option.h
1692 include/grpc++/impl/server_builder_plugin.h
1693 include/grpc++/impl/server_initializer.h
1694 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001695 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001696 include/grpc++/security/auth_context.h
1697 include/grpc++/security/auth_metadata_processor.h
1698 include/grpc++/security/credentials.h
1699 include/grpc++/security/server_credentials.h
1700 include/grpc++/server.h
1701 include/grpc++/server_builder.h
1702 include/grpc++/server_context.h
1703 include/grpc++/server_posix.h
1704 include/grpc++/support/async_stream.h
1705 include/grpc++/support/async_unary_call.h
1706 include/grpc++/support/byte_buffer.h
1707 include/grpc++/support/channel_arguments.h
1708 include/grpc++/support/config.h
1709 include/grpc++/support/slice.h
1710 include/grpc++/support/status.h
1711 include/grpc++/support/status_code_enum.h
1712 include/grpc++/support/string_ref.h
1713 include/grpc++/support/stub_options.h
1714 include/grpc++/support/sync_stream.h
1715 include/grpc++/support/time.h
1716 include/grpc++/impl/codegen/async_stream.h
1717 include/grpc++/impl/codegen/async_unary_call.h
1718 include/grpc++/impl/codegen/call.h
1719 include/grpc++/impl/codegen/call_hook.h
1720 include/grpc++/impl/codegen/channel_interface.h
1721 include/grpc++/impl/codegen/client_context.h
1722 include/grpc++/impl/codegen/client_unary_call.h
1723 include/grpc++/impl/codegen/completion_queue.h
1724 include/grpc++/impl/codegen/completion_queue_tag.h
1725 include/grpc++/impl/codegen/config.h
1726 include/grpc++/impl/codegen/core_codegen_interface.h
1727 include/grpc++/impl/codegen/create_auth_context.h
1728 include/grpc++/impl/codegen/grpc_library.h
1729 include/grpc++/impl/codegen/method_handler_impl.h
1730 include/grpc++/impl/codegen/rpc_method.h
1731 include/grpc++/impl/codegen/rpc_service_method.h
1732 include/grpc++/impl/codegen/security/auth_context.h
1733 include/grpc++/impl/codegen/serialization_traits.h
1734 include/grpc++/impl/codegen/server_context.h
1735 include/grpc++/impl/codegen/server_interface.h
1736 include/grpc++/impl/codegen/service_type.h
1737 include/grpc++/impl/codegen/status.h
1738 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001739 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001740 include/grpc++/impl/codegen/string_ref.h
1741 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001742 include/grpc++/impl/codegen/sync_stream.h
1743 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001744 include/grpc/impl/codegen/byte_buffer_reader.h
1745 include/grpc/impl/codegen/compression_types.h
1746 include/grpc/impl/codegen/connectivity_state.h
1747 include/grpc/impl/codegen/grpc_types.h
1748 include/grpc/impl/codegen/propagation_bits.h
1749 include/grpc/impl/codegen/status.h
1750 include/grpc/impl/codegen/atm.h
1751 include/grpc/impl/codegen/atm_gcc_atomic.h
1752 include/grpc/impl/codegen/atm_gcc_sync.h
1753 include/grpc/impl/codegen/atm_windows.h
Craig Tiller7cdad962016-11-10 08:37:21 -08001754 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001755 include/grpc/impl/codegen/gpr_types.h
1756 include/grpc/impl/codegen/port_platform.h
1757 include/grpc/impl/codegen/slice.h
1758 include/grpc/impl/codegen/sync.h
1759 include/grpc/impl/codegen/sync_generic.h
1760 include/grpc/impl/codegen/sync_posix.h
1761 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001762)
1763 string(REPLACE "include/" "" _path ${_hdr})
1764 get_filename_component(_path ${_path} PATH)
1765 install(FILES ${_hdr}
1766 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1767 )
1768endforeach()
1769
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001770
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001771if (gRPC_INSTALL)
1772 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1773 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1774 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1775 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1776 )
1777endif()
1778
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001779
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001780add_library(grpc_plugin_support
1781 src/compiler/cpp_generator.cc
1782 src/compiler/csharp_generator.cc
1783 src/compiler/node_generator.cc
1784 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07001785 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001786 src/compiler/python_generator.cc
1787 src/compiler/ruby_generator.cc
1788)
1789
1790target_include_directories(grpc_plugin_support
1791 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1792 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1793 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1794 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001795 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001796 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1797)
1798
1799target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001800 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001801)
1802
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001803foreach(_hdr
1804 include/grpc++/impl/codegen/config_protobuf.h
1805)
1806 string(REPLACE "include/" "" _path ${_hdr})
1807 get_filename_component(_path ${_path} PATH)
1808 install(FILES ${_hdr}
1809 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1810 )
1811endforeach()
1812
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001813
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001814if (gRPC_INSTALL)
1815 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1816 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1817 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1818 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1819 )
1820endif()
1821
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001822
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001823add_library(grpc_csharp_ext
1824 src/csharp/ext/grpc_csharp_ext.c
1825)
1826
1827target_include_directories(grpc_csharp_ext
1828 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1829 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1830 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1831 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001832 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001833 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1834)
1835
1836target_link_libraries(grpc_csharp_ext
1837 grpc
1838 gpr
1839)
1840
1841
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001842
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001843if (gRPC_INSTALL)
1844 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1845 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1846 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1847 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1848 )
1849endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001850
1851
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001852
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001853add_executable(gen_hpack_tables
1854 tools/codegen/core/gen_hpack_tables.c
1855)
1856
1857target_include_directories(gen_hpack_tables
1858 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1859 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1860 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1861 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1862 PRIVATE ${ZLIB_ROOT_DIR}
1863 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1864)
1865
1866target_link_libraries(gen_hpack_tables
1867 gpr
1868 grpc
1869)
1870
1871
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001872if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001873 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1874 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1875 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1876 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1877 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001878endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001879
1880
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001881add_executable(gen_legal_metadata_characters
1882 tools/codegen/core/gen_legal_metadata_characters.c
1883)
1884
1885target_include_directories(gen_legal_metadata_characters
1886 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1887 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1888 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1889 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1890 PRIVATE ${ZLIB_ROOT_DIR}
1891 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1892)
1893
1894
1895
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001896if (gRPC_INSTALL)
1897 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1898 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1899 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1900 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1901 )
1902endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001903
1904
Craig Tiller1c7a8422016-08-18 11:13:11 -07001905add_executable(gen_percent_encoding_tables
1906 tools/codegen/core/gen_percent_encoding_tables.c
1907)
1908
1909target_include_directories(gen_percent_encoding_tables
1910 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1911 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1912 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1913 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1914 PRIVATE ${ZLIB_ROOT_DIR}
1915 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1916)
1917
1918
1919
Craig Tiller426dcde2016-09-07 15:43:10 -07001920if (gRPC_INSTALL)
1921 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1922 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1923 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1924 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1925 )
1926endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001927
1928
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001929add_executable(grpc_create_jwt
1930 test/core/security/create_jwt.c
1931)
1932
1933target_include_directories(grpc_create_jwt
1934 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1936 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1937 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1938 PRIVATE ${ZLIB_ROOT_DIR}
1939 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1940)
1941
1942target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001943 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001944 grpc
1945 gpr
1946)
1947
1948
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001949if (gRPC_INSTALL)
1950 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1951 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1952 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1953 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1954 )
1955endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001956
1957
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001958add_executable(grpc_print_google_default_creds_token
1959 test/core/security/print_google_default_creds_token.c
1960)
1961
1962target_include_directories(grpc_print_google_default_creds_token
1963 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1964 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1965 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1966 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1967 PRIVATE ${ZLIB_ROOT_DIR}
1968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1969)
1970
1971target_link_libraries(grpc_print_google_default_creds_token
1972 grpc
1973 gpr
1974)
1975
1976
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001977if (gRPC_INSTALL)
1978 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1979 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1980 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1981 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1982 )
1983endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001984
1985
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001986add_executable(grpc_verify_jwt
1987 test/core/security/verify_jwt.c
1988)
1989
1990target_include_directories(grpc_verify_jwt
1991 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1992 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1993 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1994 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1995 PRIVATE ${ZLIB_ROOT_DIR}
1996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1997)
1998
1999target_link_libraries(grpc_verify_jwt
2000 grpc
2001 gpr
2002)
2003
2004
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002005if (gRPC_INSTALL)
2006 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
2007 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2008 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2009 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2010 )
2011endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002012
2013
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002014add_executable(grpc_cpp_plugin
2015 src/compiler/cpp_plugin.cc
2016)
2017
2018target_include_directories(grpc_cpp_plugin
2019 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2020 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2021 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2022 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2023 PRIVATE ${ZLIB_ROOT_DIR}
2024 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2025)
2026
2027target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002028 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002029 grpc_plugin_support
2030)
2031
2032
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002033if (gRPC_INSTALL)
2034 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
2035 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2036 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2037 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2038 )
2039endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002040
2041
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002042add_executable(grpc_csharp_plugin
2043 src/compiler/csharp_plugin.cc
2044)
2045
2046target_include_directories(grpc_csharp_plugin
2047 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2048 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2049 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2050 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2051 PRIVATE ${ZLIB_ROOT_DIR}
2052 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2053)
2054
2055target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002056 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002057 grpc_plugin_support
2058)
2059
2060
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002061if (gRPC_INSTALL)
2062 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
2063 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2064 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2065 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2066 )
2067endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002068
2069
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002070add_executable(grpc_node_plugin
2071 src/compiler/node_plugin.cc
2072)
2073
2074target_include_directories(grpc_node_plugin
2075 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2076 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2077 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2078 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2079 PRIVATE ${ZLIB_ROOT_DIR}
2080 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2081)
2082
2083target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002084 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002085 grpc_plugin_support
2086)
2087
2088
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002089if (gRPC_INSTALL)
2090 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
2091 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2092 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2093 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2094 )
2095endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002096
2097
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002098add_executable(grpc_objective_c_plugin
2099 src/compiler/objective_c_plugin.cc
2100)
2101
2102target_include_directories(grpc_objective_c_plugin
2103 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2104 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2105 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2106 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2107 PRIVATE ${ZLIB_ROOT_DIR}
2108 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2109)
2110
2111target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002112 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002113 grpc_plugin_support
2114)
2115
2116
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002117if (gRPC_INSTALL)
2118 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
2119 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2120 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2121 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2122 )
2123endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002124
2125
Stanley Cheung857a1302016-09-29 17:26:29 -07002126add_executable(grpc_php_plugin
2127 src/compiler/php_plugin.cc
2128)
2129
2130target_include_directories(grpc_php_plugin
2131 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2132 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2133 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2134 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2135 PRIVATE ${ZLIB_ROOT_DIR}
2136 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2137)
2138
2139target_link_libraries(grpc_php_plugin
2140 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
2141 grpc_plugin_support
2142)
2143
2144
2145if (gRPC_INSTALL)
2146 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
2147 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2148 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2149 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2150 )
2151endif()
2152
2153
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002154add_executable(grpc_python_plugin
2155 src/compiler/python_plugin.cc
2156)
2157
2158target_include_directories(grpc_python_plugin
2159 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2160 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2161 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2162 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2163 PRIVATE ${ZLIB_ROOT_DIR}
2164 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2165)
2166
2167target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002168 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002169 grpc_plugin_support
2170)
2171
2172
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002173if (gRPC_INSTALL)
2174 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
2175 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2176 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2177 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2178 )
2179endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002180
2181
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002182add_executable(grpc_ruby_plugin
2183 src/compiler/ruby_plugin.cc
2184)
2185
2186target_include_directories(grpc_ruby_plugin
2187 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2188 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2189 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2190 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2191 PRIVATE ${ZLIB_ROOT_DIR}
2192 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2193)
2194
2195target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002196 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002197 grpc_plugin_support
2198)
2199
2200
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002201if (gRPC_INSTALL)
2202 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2203 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2204 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2205 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2206 )
2207endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002208
2209
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002210
2211
2212
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002213
2214
2215
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002216if (gRPC_INSTALL)
2217 install(EXPORT gRPCTargets
2218 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2219 NAMESPACE gRPC::
2220 )
2221endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002222
2223foreach(_config gRPCConfig gRPCConfigVersion)
2224 configure_file(tools/cmake/${_config}.cmake.in
2225 ${_config}.cmake @ONLY)
2226 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2227 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2228 )
2229endforeach()