blob: 495566f8c1b3df0ff153f1c42cbbe91e04a83f4d [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
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030051set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
52set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010053
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030054set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
55set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010056
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030057set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
58set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010059
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010061
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030062if (gRPC_USE_PROTO_LITE)
63 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010064 add_definitions("-DGRPC_USE_PROTO_LITE")
65else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
67endif()
68
69if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
70 if(NOT ZLIB_ROOT_DIR)
71 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
72 endif()
73 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
74 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
75 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
76 if(TARGET zlibstatic)
77 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
78 endif()
79 else()
80 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
81 endif()
82elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
83 find_package(ZLIB)
84 if(TARGET ZLIB::ZLIB)
85 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
86 endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030087 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND) find_package(ZLIB) endif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030088endif()
89
90if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
91 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
92 # Disable them unless they are explicitly requested from the cmake command line (when we assume
93 # gmock is downloaded to the right location inside protobuf).
94 if(NOT protobuf_BUILD_TESTS)
95 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
96 endif()
97 if(NOT PROTOBUF_ROOT_DIR)
98 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
99 endif()
100 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
101 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
102 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
103 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
104 endif()
105 if(TARGET libprotoc)
106 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
107 endif()
108 else()
109 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
110 endif()
111elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
112 find_package(protobuf CONFIG)
113 if(protobuf_FOUND)
114 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
115 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
116 endif()
117 if(TARGET protobuf::libprotoc)
118 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
119 endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300120 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND) find_package(protobuf CONFIG) endif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300121 else()
122 find_package(Protobuf MODULE)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300123 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND) find_package(Protobuf) endif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300124 endif()
125endif()
126
127if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
128 if(NOT BORINGSSL_ROOT_DIR)
129 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
130 endif()
131 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
132 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
133 if(TARGET ssl)
134 set(_gRPC_SSL_LIBRARIES ssl)
135 endif()
136 else()
137 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
138 endif()
139elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
140 find_package(OpenSSL)
141 if(TARGET OpenSSL::SSL)
142 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
143 endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300144 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND) find_package(OpenSSL) endif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300145endif()
146
147if(NOT MSVC)
148 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
149 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
150endif()
151
152if(WIN32 AND MSVC)
153 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100154endif()
155
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300156include(GNUInstallDirs)
157if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
158 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
159endif()
160
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100161
162add_library(gpr
163 src/core/lib/profiling/basic_timers.c
164 src/core/lib/profiling/stap_timers.c
165 src/core/lib/support/alloc.c
166 src/core/lib/support/avl.c
167 src/core/lib/support/backoff.c
168 src/core/lib/support/cmdline.c
169 src/core/lib/support/cpu_iphone.c
170 src/core/lib/support/cpu_linux.c
171 src/core/lib/support/cpu_posix.c
172 src/core/lib/support/cpu_windows.c
173 src/core/lib/support/env_linux.c
174 src/core/lib/support/env_posix.c
175 src/core/lib/support/env_windows.c
176 src/core/lib/support/histogram.c
177 src/core/lib/support/host_port.c
178 src/core/lib/support/log.c
179 src/core/lib/support/log_android.c
180 src/core/lib/support/log_linux.c
181 src/core/lib/support/log_posix.c
182 src/core/lib/support/log_windows.c
183 src/core/lib/support/murmur_hash.c
184 src/core/lib/support/slice.c
185 src/core/lib/support/slice_buffer.c
186 src/core/lib/support/stack_lockfree.c
187 src/core/lib/support/string.c
188 src/core/lib/support/string_posix.c
189 src/core/lib/support/string_util_windows.c
190 src/core/lib/support/string_windows.c
191 src/core/lib/support/subprocess_posix.c
192 src/core/lib/support/subprocess_windows.c
193 src/core/lib/support/sync.c
194 src/core/lib/support/sync_posix.c
195 src/core/lib/support/sync_windows.c
196 src/core/lib/support/thd.c
197 src/core/lib/support/thd_posix.c
198 src/core/lib/support/thd_windows.c
199 src/core/lib/support/time.c
200 src/core/lib/support/time_posix.c
201 src/core/lib/support/time_precise.c
202 src/core/lib/support/time_windows.c
203 src/core/lib/support/tls_pthread.c
204 src/core/lib/support/tmpfile_msys.c
205 src/core/lib/support/tmpfile_posix.c
206 src/core/lib/support/tmpfile_windows.c
207 src/core/lib/support/wrap_memcpy.c
208)
209
210target_include_directories(gpr
211 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
212 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
213 PRIVATE ${BORINGSSL_ROOT_DIR}/include
214 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300215 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100216 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
217)
218
219
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300220foreach(_hdr
221 include/grpc/support/alloc.h
222 include/grpc/support/atm.h
223 include/grpc/support/atm_gcc_atomic.h
224 include/grpc/support/atm_gcc_sync.h
225 include/grpc/support/atm_windows.h
226 include/grpc/support/avl.h
227 include/grpc/support/cmdline.h
228 include/grpc/support/cpu.h
229 include/grpc/support/histogram.h
230 include/grpc/support/host_port.h
231 include/grpc/support/log.h
232 include/grpc/support/log_windows.h
233 include/grpc/support/port_platform.h
234 include/grpc/support/slice.h
235 include/grpc/support/slice_buffer.h
236 include/grpc/support/string_util.h
237 include/grpc/support/subprocess.h
238 include/grpc/support/sync.h
239 include/grpc/support/sync_generic.h
240 include/grpc/support/sync_posix.h
241 include/grpc/support/sync_windows.h
242 include/grpc/support/thd.h
243 include/grpc/support/time.h
244 include/grpc/support/tls.h
245 include/grpc/support/tls_gcc.h
246 include/grpc/support/tls_msvc.h
247 include/grpc/support/tls_pthread.h
248 include/grpc/support/useful.h
249 include/grpc/impl/codegen/alloc.h
250 include/grpc/impl/codegen/atm.h
251 include/grpc/impl/codegen/atm_gcc_atomic.h
252 include/grpc/impl/codegen/atm_gcc_sync.h
253 include/grpc/impl/codegen/atm_windows.h
254 include/grpc/impl/codegen/log.h
255 include/grpc/impl/codegen/port_platform.h
256 include/grpc/impl/codegen/slice.h
257 include/grpc/impl/codegen/slice_buffer.h
258 include/grpc/impl/codegen/sync.h
259 include/grpc/impl/codegen/sync_generic.h
260 include/grpc/impl/codegen/sync_posix.h
261 include/grpc/impl/codegen/sync_windows.h
262 include/grpc/impl/codegen/time.h
263)
264 string(REPLACE "include/" "" _path ${_hdr})
265 get_filename_component(_path ${_path} PATH)
266 install(FILES ${_hdr}
267 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
268 )
269endforeach()
270
271
272install(TARGETS gpr EXPORT gRPCTargets
273 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
274 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
275 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
276)
277
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100278
279add_library(grpc
280 src/core/lib/surface/init.c
281 src/core/lib/channel/channel_args.c
282 src/core/lib/channel/channel_stack.c
283 src/core/lib/channel/channel_stack_builder.c
284 src/core/lib/channel/compress_filter.c
285 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700286 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100287 src/core/lib/channel/http_client_filter.c
288 src/core/lib/channel/http_server_filter.c
289 src/core/lib/compression/compression.c
290 src/core/lib/compression/message_compress.c
291 src/core/lib/debug/trace.c
292 src/core/lib/http/format_request.c
293 src/core/lib/http/httpcli.c
294 src/core/lib/http/parser.c
295 src/core/lib/iomgr/closure.c
296 src/core/lib/iomgr/endpoint.c
297 src/core/lib/iomgr/endpoint_pair_posix.c
298 src/core/lib/iomgr/endpoint_pair_windows.c
299 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200300 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100301 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
302 src/core/lib/iomgr/ev_poll_posix.c
303 src/core/lib/iomgr/ev_posix.c
304 src/core/lib/iomgr/exec_ctx.c
305 src/core/lib/iomgr/executor.c
306 src/core/lib/iomgr/iocp_windows.c
307 src/core/lib/iomgr/iomgr.c
308 src/core/lib/iomgr/iomgr_posix.c
309 src/core/lib/iomgr/iomgr_windows.c
310 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200311 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100312 src/core/lib/iomgr/polling_entity.c
313 src/core/lib/iomgr/pollset_set_windows.c
314 src/core/lib/iomgr/pollset_windows.c
315 src/core/lib/iomgr/resolve_address_posix.c
316 src/core/lib/iomgr/resolve_address_windows.c
317 src/core/lib/iomgr/sockaddr_utils.c
318 src/core/lib/iomgr/socket_utils_common_posix.c
319 src/core/lib/iomgr/socket_utils_linux.c
320 src/core/lib/iomgr/socket_utils_posix.c
321 src/core/lib/iomgr/socket_windows.c
322 src/core/lib/iomgr/tcp_client_posix.c
323 src/core/lib/iomgr/tcp_client_windows.c
324 src/core/lib/iomgr/tcp_posix.c
325 src/core/lib/iomgr/tcp_server_posix.c
326 src/core/lib/iomgr/tcp_server_windows.c
327 src/core/lib/iomgr/tcp_windows.c
328 src/core/lib/iomgr/time_averaged_stats.c
329 src/core/lib/iomgr/timer.c
330 src/core/lib/iomgr/timer_heap.c
331 src/core/lib/iomgr/udp_server.c
332 src/core/lib/iomgr/unix_sockets_posix.c
333 src/core/lib/iomgr/unix_sockets_posix_noop.c
334 src/core/lib/iomgr/wakeup_fd_eventfd.c
335 src/core/lib/iomgr/wakeup_fd_nospecial.c
336 src/core/lib/iomgr/wakeup_fd_pipe.c
337 src/core/lib/iomgr/wakeup_fd_posix.c
338 src/core/lib/iomgr/workqueue_posix.c
339 src/core/lib/iomgr/workqueue_windows.c
340 src/core/lib/json/json.c
341 src/core/lib/json/json_reader.c
342 src/core/lib/json/json_string.c
343 src/core/lib/json/json_writer.c
344 src/core/lib/surface/alarm.c
345 src/core/lib/surface/api_trace.c
346 src/core/lib/surface/byte_buffer.c
347 src/core/lib/surface/byte_buffer_reader.c
348 src/core/lib/surface/call.c
349 src/core/lib/surface/call_details.c
350 src/core/lib/surface/call_log_batch.c
351 src/core/lib/surface/channel.c
352 src/core/lib/surface/channel_init.c
353 src/core/lib/surface/channel_ping.c
354 src/core/lib/surface/channel_stack_type.c
355 src/core/lib/surface/completion_queue.c
356 src/core/lib/surface/event_string.c
357 src/core/lib/surface/lame_client.c
358 src/core/lib/surface/metadata_array.c
359 src/core/lib/surface/server.c
360 src/core/lib/surface/validate_metadata.c
361 src/core/lib/surface/version.c
362 src/core/lib/transport/byte_stream.c
363 src/core/lib/transport/connectivity_state.c
364 src/core/lib/transport/metadata.c
365 src/core/lib/transport/metadata_batch.c
366 src/core/lib/transport/static_metadata.c
367 src/core/lib/transport/transport.c
368 src/core/lib/transport/transport_op_string.c
369 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
370 src/core/ext/transport/chttp2/transport/bin_decoder.c
371 src/core/ext/transport/chttp2/transport/bin_encoder.c
372 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
373 src/core/ext/transport/chttp2/transport/chttp2_transport.c
374 src/core/ext/transport/chttp2/transport/frame_data.c
375 src/core/ext/transport/chttp2/transport/frame_goaway.c
376 src/core/ext/transport/chttp2/transport/frame_ping.c
377 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
378 src/core/ext/transport/chttp2/transport/frame_settings.c
379 src/core/ext/transport/chttp2/transport/frame_window_update.c
380 src/core/ext/transport/chttp2/transport/hpack_encoder.c
381 src/core/ext/transport/chttp2/transport/hpack_parser.c
382 src/core/ext/transport/chttp2/transport/hpack_table.c
383 src/core/ext/transport/chttp2/transport/huffsyms.c
384 src/core/ext/transport/chttp2/transport/incoming_metadata.c
385 src/core/ext/transport/chttp2/transport/parsing.c
386 src/core/ext/transport/chttp2/transport/status_conversion.c
387 src/core/ext/transport/chttp2/transport/stream_lists.c
388 src/core/ext/transport/chttp2/transport/stream_map.c
389 src/core/ext/transport/chttp2/transport/timeout_encoding.c
390 src/core/ext/transport/chttp2/transport/varint.c
391 src/core/ext/transport/chttp2/transport/writing.c
392 src/core/ext/transport/chttp2/alpn/alpn.c
393 src/core/lib/http/httpcli_security_connector.c
394 src/core/lib/security/context/security_context.c
395 src/core/lib/security/credentials/composite/composite_credentials.c
396 src/core/lib/security/credentials/credentials.c
397 src/core/lib/security/credentials/credentials_metadata.c
398 src/core/lib/security/credentials/fake/fake_credentials.c
399 src/core/lib/security/credentials/google_default/credentials_posix.c
400 src/core/lib/security/credentials/google_default/credentials_windows.c
401 src/core/lib/security/credentials/google_default/google_default_credentials.c
402 src/core/lib/security/credentials/iam/iam_credentials.c
403 src/core/lib/security/credentials/jwt/json_token.c
404 src/core/lib/security/credentials/jwt/jwt_credentials.c
405 src/core/lib/security/credentials/jwt/jwt_verifier.c
406 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
407 src/core/lib/security/credentials/plugin/plugin_credentials.c
408 src/core/lib/security/credentials/ssl/ssl_credentials.c
409 src/core/lib/security/transport/client_auth_filter.c
410 src/core/lib/security/transport/handshake.c
411 src/core/lib/security/transport/secure_endpoint.c
412 src/core/lib/security/transport/security_connector.c
413 src/core/lib/security/transport/server_auth_filter.c
414 src/core/lib/security/transport/tsi_error.c
415 src/core/lib/security/util/b64.c
416 src/core/lib/security/util/json_util.c
417 src/core/lib/surface/init_secure.c
418 src/core/lib/tsi/fake_transport_security.c
419 src/core/lib/tsi/ssl_transport_security.c
420 src/core/lib/tsi/transport_security.c
421 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
422 src/core/ext/client_config/channel_connectivity.c
423 src/core/ext/client_config/client_channel.c
424 src/core/ext/client_config/client_channel_factory.c
425 src/core/ext/client_config/client_config.c
426 src/core/ext/client_config/client_config_plugin.c
427 src/core/ext/client_config/connector.c
428 src/core/ext/client_config/default_initial_connect_string.c
429 src/core/ext/client_config/initial_connect_string.c
430 src/core/ext/client_config/lb_policy.c
431 src/core/ext/client_config/lb_policy_factory.c
432 src/core/ext/client_config/lb_policy_registry.c
433 src/core/ext/client_config/parse_address.c
434 src/core/ext/client_config/resolver.c
435 src/core/ext/client_config/resolver_factory.c
436 src/core/ext/client_config/resolver_registry.c
437 src/core/ext/client_config/subchannel.c
438 src/core/ext/client_config/subchannel_call_holder.c
439 src/core/ext/client_config/subchannel_index.c
440 src/core/ext/client_config/uri_parser.c
441 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
442 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
443 src/core/ext/transport/chttp2/client/insecure/channel_create.c
444 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
445 src/core/ext/lb_policy/grpclb/load_balancer_api.c
446 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
447 third_party/nanopb/pb_common.c
448 third_party/nanopb/pb_decode.c
449 third_party/nanopb/pb_encode.c
450 src/core/ext/lb_policy/pick_first/pick_first.c
451 src/core/ext/lb_policy/round_robin/round_robin.c
452 src/core/ext/resolver/dns/native/dns_resolver.c
453 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
454 src/core/ext/load_reporting/load_reporting.c
455 src/core/ext/load_reporting/load_reporting_filter.c
456 src/core/ext/census/context.c
457 src/core/ext/census/gen/census.pb.c
458 src/core/ext/census/grpc_context.c
459 src/core/ext/census/grpc_filter.c
460 src/core/ext/census/grpc_plugin.c
461 src/core/ext/census/initialize.c
462 src/core/ext/census/mlog.c
463 src/core/ext/census/operation.c
464 src/core/ext/census/placeholders.c
465 src/core/ext/census/tracing.c
466 src/core/plugin_registry/grpc_plugin_registry.c
467)
468
469target_include_directories(grpc
470 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
471 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
472 PRIVATE ${BORINGSSL_ROOT_DIR}/include
473 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300474 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100475 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
476)
477
478target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300479 ${_gRPC_BASELIB_LIBRARIES}
480 ${_gRPC_SSL_LIBRARIES}
481 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100482 gpr
483)
484
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300485foreach(_hdr
486 include/grpc/byte_buffer.h
487 include/grpc/byte_buffer_reader.h
488 include/grpc/compression.h
489 include/grpc/grpc.h
490 include/grpc/grpc_posix.h
491 include/grpc/status.h
492 include/grpc/impl/codegen/byte_buffer.h
493 include/grpc/impl/codegen/byte_buffer_reader.h
494 include/grpc/impl/codegen/compression_types.h
495 include/grpc/impl/codegen/connectivity_state.h
496 include/grpc/impl/codegen/grpc_types.h
497 include/grpc/impl/codegen/propagation_bits.h
498 include/grpc/impl/codegen/status.h
499 include/grpc/impl/codegen/alloc.h
500 include/grpc/impl/codegen/atm.h
501 include/grpc/impl/codegen/atm_gcc_atomic.h
502 include/grpc/impl/codegen/atm_gcc_sync.h
503 include/grpc/impl/codegen/atm_windows.h
504 include/grpc/impl/codegen/log.h
505 include/grpc/impl/codegen/port_platform.h
506 include/grpc/impl/codegen/slice.h
507 include/grpc/impl/codegen/slice_buffer.h
508 include/grpc/impl/codegen/sync.h
509 include/grpc/impl/codegen/sync_generic.h
510 include/grpc/impl/codegen/sync_posix.h
511 include/grpc/impl/codegen/sync_windows.h
512 include/grpc/impl/codegen/time.h
513 include/grpc/grpc_security.h
514 include/grpc/grpc_security_constants.h
515 include/grpc/census.h
516)
517 string(REPLACE "include/" "" _path ${_hdr})
518 get_filename_component(_path ${_path} PATH)
519 install(FILES ${_hdr}
520 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
521 )
522endforeach()
523
524
525install(TARGETS grpc EXPORT gRPCTargets
526 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
527 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
528 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
529)
530
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100531
532add_library(grpc_cronet
533 src/core/lib/surface/init.c
534 src/core/lib/channel/channel_args.c
535 src/core/lib/channel/channel_stack.c
536 src/core/lib/channel/channel_stack_builder.c
537 src/core/lib/channel/compress_filter.c
538 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700539 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100540 src/core/lib/channel/http_client_filter.c
541 src/core/lib/channel/http_server_filter.c
542 src/core/lib/compression/compression.c
543 src/core/lib/compression/message_compress.c
544 src/core/lib/debug/trace.c
545 src/core/lib/http/format_request.c
546 src/core/lib/http/httpcli.c
547 src/core/lib/http/parser.c
548 src/core/lib/iomgr/closure.c
549 src/core/lib/iomgr/endpoint.c
550 src/core/lib/iomgr/endpoint_pair_posix.c
551 src/core/lib/iomgr/endpoint_pair_windows.c
552 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200553 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100554 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
555 src/core/lib/iomgr/ev_poll_posix.c
556 src/core/lib/iomgr/ev_posix.c
557 src/core/lib/iomgr/exec_ctx.c
558 src/core/lib/iomgr/executor.c
559 src/core/lib/iomgr/iocp_windows.c
560 src/core/lib/iomgr/iomgr.c
561 src/core/lib/iomgr/iomgr_posix.c
562 src/core/lib/iomgr/iomgr_windows.c
563 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200564 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100565 src/core/lib/iomgr/polling_entity.c
566 src/core/lib/iomgr/pollset_set_windows.c
567 src/core/lib/iomgr/pollset_windows.c
568 src/core/lib/iomgr/resolve_address_posix.c
569 src/core/lib/iomgr/resolve_address_windows.c
570 src/core/lib/iomgr/sockaddr_utils.c
571 src/core/lib/iomgr/socket_utils_common_posix.c
572 src/core/lib/iomgr/socket_utils_linux.c
573 src/core/lib/iomgr/socket_utils_posix.c
574 src/core/lib/iomgr/socket_windows.c
575 src/core/lib/iomgr/tcp_client_posix.c
576 src/core/lib/iomgr/tcp_client_windows.c
577 src/core/lib/iomgr/tcp_posix.c
578 src/core/lib/iomgr/tcp_server_posix.c
579 src/core/lib/iomgr/tcp_server_windows.c
580 src/core/lib/iomgr/tcp_windows.c
581 src/core/lib/iomgr/time_averaged_stats.c
582 src/core/lib/iomgr/timer.c
583 src/core/lib/iomgr/timer_heap.c
584 src/core/lib/iomgr/udp_server.c
585 src/core/lib/iomgr/unix_sockets_posix.c
586 src/core/lib/iomgr/unix_sockets_posix_noop.c
587 src/core/lib/iomgr/wakeup_fd_eventfd.c
588 src/core/lib/iomgr/wakeup_fd_nospecial.c
589 src/core/lib/iomgr/wakeup_fd_pipe.c
590 src/core/lib/iomgr/wakeup_fd_posix.c
591 src/core/lib/iomgr/workqueue_posix.c
592 src/core/lib/iomgr/workqueue_windows.c
593 src/core/lib/json/json.c
594 src/core/lib/json/json_reader.c
595 src/core/lib/json/json_string.c
596 src/core/lib/json/json_writer.c
597 src/core/lib/surface/alarm.c
598 src/core/lib/surface/api_trace.c
599 src/core/lib/surface/byte_buffer.c
600 src/core/lib/surface/byte_buffer_reader.c
601 src/core/lib/surface/call.c
602 src/core/lib/surface/call_details.c
603 src/core/lib/surface/call_log_batch.c
604 src/core/lib/surface/channel.c
605 src/core/lib/surface/channel_init.c
606 src/core/lib/surface/channel_ping.c
607 src/core/lib/surface/channel_stack_type.c
608 src/core/lib/surface/completion_queue.c
609 src/core/lib/surface/event_string.c
610 src/core/lib/surface/lame_client.c
611 src/core/lib/surface/metadata_array.c
612 src/core/lib/surface/server.c
613 src/core/lib/surface/validate_metadata.c
614 src/core/lib/surface/version.c
615 src/core/lib/transport/byte_stream.c
616 src/core/lib/transport/connectivity_state.c
617 src/core/lib/transport/metadata.c
618 src/core/lib/transport/metadata_batch.c
619 src/core/lib/transport/static_metadata.c
620 src/core/lib/transport/transport.c
621 src/core/lib/transport/transport_op_string.c
622 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
623 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
624 src/core/ext/transport/cronet/transport/cronet_transport.c
625 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
626 src/core/ext/transport/chttp2/transport/bin_decoder.c
627 src/core/ext/transport/chttp2/transport/bin_encoder.c
628 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
629 src/core/ext/transport/chttp2/transport/chttp2_transport.c
630 src/core/ext/transport/chttp2/transport/frame_data.c
631 src/core/ext/transport/chttp2/transport/frame_goaway.c
632 src/core/ext/transport/chttp2/transport/frame_ping.c
633 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
634 src/core/ext/transport/chttp2/transport/frame_settings.c
635 src/core/ext/transport/chttp2/transport/frame_window_update.c
636 src/core/ext/transport/chttp2/transport/hpack_encoder.c
637 src/core/ext/transport/chttp2/transport/hpack_parser.c
638 src/core/ext/transport/chttp2/transport/hpack_table.c
639 src/core/ext/transport/chttp2/transport/huffsyms.c
640 src/core/ext/transport/chttp2/transport/incoming_metadata.c
641 src/core/ext/transport/chttp2/transport/parsing.c
642 src/core/ext/transport/chttp2/transport/status_conversion.c
643 src/core/ext/transport/chttp2/transport/stream_lists.c
644 src/core/ext/transport/chttp2/transport/stream_map.c
645 src/core/ext/transport/chttp2/transport/timeout_encoding.c
646 src/core/ext/transport/chttp2/transport/varint.c
647 src/core/ext/transport/chttp2/transport/writing.c
648 src/core/ext/transport/chttp2/alpn/alpn.c
649 src/core/ext/client_config/channel_connectivity.c
650 src/core/ext/client_config/client_channel.c
651 src/core/ext/client_config/client_channel_factory.c
652 src/core/ext/client_config/client_config.c
653 src/core/ext/client_config/client_config_plugin.c
654 src/core/ext/client_config/connector.c
655 src/core/ext/client_config/default_initial_connect_string.c
656 src/core/ext/client_config/initial_connect_string.c
657 src/core/ext/client_config/lb_policy.c
658 src/core/ext/client_config/lb_policy_factory.c
659 src/core/ext/client_config/lb_policy_registry.c
660 src/core/ext/client_config/parse_address.c
661 src/core/ext/client_config/resolver.c
662 src/core/ext/client_config/resolver_factory.c
663 src/core/ext/client_config/resolver_registry.c
664 src/core/ext/client_config/subchannel.c
665 src/core/ext/client_config/subchannel_call_holder.c
666 src/core/ext/client_config/subchannel_index.c
667 src/core/ext/client_config/uri_parser.c
668 src/core/lib/http/httpcli_security_connector.c
669 src/core/lib/security/context/security_context.c
670 src/core/lib/security/credentials/composite/composite_credentials.c
671 src/core/lib/security/credentials/credentials.c
672 src/core/lib/security/credentials/credentials_metadata.c
673 src/core/lib/security/credentials/fake/fake_credentials.c
674 src/core/lib/security/credentials/google_default/credentials_posix.c
675 src/core/lib/security/credentials/google_default/credentials_windows.c
676 src/core/lib/security/credentials/google_default/google_default_credentials.c
677 src/core/lib/security/credentials/iam/iam_credentials.c
678 src/core/lib/security/credentials/jwt/json_token.c
679 src/core/lib/security/credentials/jwt/jwt_credentials.c
680 src/core/lib/security/credentials/jwt/jwt_verifier.c
681 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
682 src/core/lib/security/credentials/plugin/plugin_credentials.c
683 src/core/lib/security/credentials/ssl/ssl_credentials.c
684 src/core/lib/security/transport/client_auth_filter.c
685 src/core/lib/security/transport/handshake.c
686 src/core/lib/security/transport/secure_endpoint.c
687 src/core/lib/security/transport/security_connector.c
688 src/core/lib/security/transport/server_auth_filter.c
689 src/core/lib/security/transport/tsi_error.c
690 src/core/lib/security/util/b64.c
691 src/core/lib/security/util/json_util.c
692 src/core/lib/surface/init_secure.c
693 src/core/lib/tsi/fake_transport_security.c
694 src/core/lib/tsi/ssl_transport_security.c
695 src/core/lib/tsi/transport_security.c
696 src/core/plugin_registry/grpc_cronet_plugin_registry.c
697)
698
699target_include_directories(grpc_cronet
700 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
701 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
702 PRIVATE ${BORINGSSL_ROOT_DIR}/include
703 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300704 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100705 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
706)
707
708target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300709 ${_gRPC_BASELIB_LIBRARIES}
710 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100711 gpr
712)
713
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300714foreach(_hdr
715 include/grpc/byte_buffer.h
716 include/grpc/byte_buffer_reader.h
717 include/grpc/compression.h
718 include/grpc/grpc.h
719 include/grpc/grpc_posix.h
720 include/grpc/status.h
721 include/grpc/impl/codegen/byte_buffer.h
722 include/grpc/impl/codegen/byte_buffer_reader.h
723 include/grpc/impl/codegen/compression_types.h
724 include/grpc/impl/codegen/connectivity_state.h
725 include/grpc/impl/codegen/grpc_types.h
726 include/grpc/impl/codegen/propagation_bits.h
727 include/grpc/impl/codegen/status.h
728 include/grpc/impl/codegen/alloc.h
729 include/grpc/impl/codegen/atm.h
730 include/grpc/impl/codegen/atm_gcc_atomic.h
731 include/grpc/impl/codegen/atm_gcc_sync.h
732 include/grpc/impl/codegen/atm_windows.h
733 include/grpc/impl/codegen/log.h
734 include/grpc/impl/codegen/port_platform.h
735 include/grpc/impl/codegen/slice.h
736 include/grpc/impl/codegen/slice_buffer.h
737 include/grpc/impl/codegen/sync.h
738 include/grpc/impl/codegen/sync_generic.h
739 include/grpc/impl/codegen/sync_posix.h
740 include/grpc/impl/codegen/sync_windows.h
741 include/grpc/impl/codegen/time.h
742 include/grpc/grpc_cronet.h
743 include/grpc/grpc_security.h
744 include/grpc/grpc_security_constants.h
745)
746 string(REPLACE "include/" "" _path ${_hdr})
747 get_filename_component(_path ${_path} PATH)
748 install(FILES ${_hdr}
749 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
750 )
751endforeach()
752
753
754install(TARGETS grpc_cronet EXPORT gRPCTargets
755 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
756 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
757 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
758)
759
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100760
761add_library(grpc_unsecure
762 src/core/lib/surface/init.c
763 src/core/lib/surface/init_unsecure.c
764 src/core/lib/channel/channel_args.c
765 src/core/lib/channel/channel_stack.c
766 src/core/lib/channel/channel_stack_builder.c
767 src/core/lib/channel/compress_filter.c
768 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700769 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100770 src/core/lib/channel/http_client_filter.c
771 src/core/lib/channel/http_server_filter.c
772 src/core/lib/compression/compression.c
773 src/core/lib/compression/message_compress.c
774 src/core/lib/debug/trace.c
775 src/core/lib/http/format_request.c
776 src/core/lib/http/httpcli.c
777 src/core/lib/http/parser.c
778 src/core/lib/iomgr/closure.c
779 src/core/lib/iomgr/endpoint.c
780 src/core/lib/iomgr/endpoint_pair_posix.c
781 src/core/lib/iomgr/endpoint_pair_windows.c
782 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200783 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100784 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
785 src/core/lib/iomgr/ev_poll_posix.c
786 src/core/lib/iomgr/ev_posix.c
787 src/core/lib/iomgr/exec_ctx.c
788 src/core/lib/iomgr/executor.c
789 src/core/lib/iomgr/iocp_windows.c
790 src/core/lib/iomgr/iomgr.c
791 src/core/lib/iomgr/iomgr_posix.c
792 src/core/lib/iomgr/iomgr_windows.c
793 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200794 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100795 src/core/lib/iomgr/polling_entity.c
796 src/core/lib/iomgr/pollset_set_windows.c
797 src/core/lib/iomgr/pollset_windows.c
798 src/core/lib/iomgr/resolve_address_posix.c
799 src/core/lib/iomgr/resolve_address_windows.c
800 src/core/lib/iomgr/sockaddr_utils.c
801 src/core/lib/iomgr/socket_utils_common_posix.c
802 src/core/lib/iomgr/socket_utils_linux.c
803 src/core/lib/iomgr/socket_utils_posix.c
804 src/core/lib/iomgr/socket_windows.c
805 src/core/lib/iomgr/tcp_client_posix.c
806 src/core/lib/iomgr/tcp_client_windows.c
807 src/core/lib/iomgr/tcp_posix.c
808 src/core/lib/iomgr/tcp_server_posix.c
809 src/core/lib/iomgr/tcp_server_windows.c
810 src/core/lib/iomgr/tcp_windows.c
811 src/core/lib/iomgr/time_averaged_stats.c
812 src/core/lib/iomgr/timer.c
813 src/core/lib/iomgr/timer_heap.c
814 src/core/lib/iomgr/udp_server.c
815 src/core/lib/iomgr/unix_sockets_posix.c
816 src/core/lib/iomgr/unix_sockets_posix_noop.c
817 src/core/lib/iomgr/wakeup_fd_eventfd.c
818 src/core/lib/iomgr/wakeup_fd_nospecial.c
819 src/core/lib/iomgr/wakeup_fd_pipe.c
820 src/core/lib/iomgr/wakeup_fd_posix.c
821 src/core/lib/iomgr/workqueue_posix.c
822 src/core/lib/iomgr/workqueue_windows.c
823 src/core/lib/json/json.c
824 src/core/lib/json/json_reader.c
825 src/core/lib/json/json_string.c
826 src/core/lib/json/json_writer.c
827 src/core/lib/surface/alarm.c
828 src/core/lib/surface/api_trace.c
829 src/core/lib/surface/byte_buffer.c
830 src/core/lib/surface/byte_buffer_reader.c
831 src/core/lib/surface/call.c
832 src/core/lib/surface/call_details.c
833 src/core/lib/surface/call_log_batch.c
834 src/core/lib/surface/channel.c
835 src/core/lib/surface/channel_init.c
836 src/core/lib/surface/channel_ping.c
837 src/core/lib/surface/channel_stack_type.c
838 src/core/lib/surface/completion_queue.c
839 src/core/lib/surface/event_string.c
840 src/core/lib/surface/lame_client.c
841 src/core/lib/surface/metadata_array.c
842 src/core/lib/surface/server.c
843 src/core/lib/surface/validate_metadata.c
844 src/core/lib/surface/version.c
845 src/core/lib/transport/byte_stream.c
846 src/core/lib/transport/connectivity_state.c
847 src/core/lib/transport/metadata.c
848 src/core/lib/transport/metadata_batch.c
849 src/core/lib/transport/static_metadata.c
850 src/core/lib/transport/transport.c
851 src/core/lib/transport/transport_op_string.c
852 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
853 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
854 src/core/ext/transport/chttp2/transport/bin_decoder.c
855 src/core/ext/transport/chttp2/transport/bin_encoder.c
856 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
857 src/core/ext/transport/chttp2/transport/chttp2_transport.c
858 src/core/ext/transport/chttp2/transport/frame_data.c
859 src/core/ext/transport/chttp2/transport/frame_goaway.c
860 src/core/ext/transport/chttp2/transport/frame_ping.c
861 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
862 src/core/ext/transport/chttp2/transport/frame_settings.c
863 src/core/ext/transport/chttp2/transport/frame_window_update.c
864 src/core/ext/transport/chttp2/transport/hpack_encoder.c
865 src/core/ext/transport/chttp2/transport/hpack_parser.c
866 src/core/ext/transport/chttp2/transport/hpack_table.c
867 src/core/ext/transport/chttp2/transport/huffsyms.c
868 src/core/ext/transport/chttp2/transport/incoming_metadata.c
869 src/core/ext/transport/chttp2/transport/parsing.c
870 src/core/ext/transport/chttp2/transport/status_conversion.c
871 src/core/ext/transport/chttp2/transport/stream_lists.c
872 src/core/ext/transport/chttp2/transport/stream_map.c
873 src/core/ext/transport/chttp2/transport/timeout_encoding.c
874 src/core/ext/transport/chttp2/transport/varint.c
875 src/core/ext/transport/chttp2/transport/writing.c
876 src/core/ext/transport/chttp2/alpn/alpn.c
877 src/core/ext/transport/chttp2/client/insecure/channel_create.c
878 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
879 src/core/ext/client_config/channel_connectivity.c
880 src/core/ext/client_config/client_channel.c
881 src/core/ext/client_config/client_channel_factory.c
882 src/core/ext/client_config/client_config.c
883 src/core/ext/client_config/client_config_plugin.c
884 src/core/ext/client_config/connector.c
885 src/core/ext/client_config/default_initial_connect_string.c
886 src/core/ext/client_config/initial_connect_string.c
887 src/core/ext/client_config/lb_policy.c
888 src/core/ext/client_config/lb_policy_factory.c
889 src/core/ext/client_config/lb_policy_registry.c
890 src/core/ext/client_config/parse_address.c
891 src/core/ext/client_config/resolver.c
892 src/core/ext/client_config/resolver_factory.c
893 src/core/ext/client_config/resolver_registry.c
894 src/core/ext/client_config/subchannel.c
895 src/core/ext/client_config/subchannel_call_holder.c
896 src/core/ext/client_config/subchannel_index.c
897 src/core/ext/client_config/uri_parser.c
898 src/core/ext/resolver/dns/native/dns_resolver.c
899 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
900 src/core/ext/load_reporting/load_reporting.c
901 src/core/ext/load_reporting/load_reporting_filter.c
902 src/core/ext/lb_policy/grpclb/load_balancer_api.c
903 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
904 third_party/nanopb/pb_common.c
905 third_party/nanopb/pb_decode.c
906 third_party/nanopb/pb_encode.c
907 src/core/ext/lb_policy/pick_first/pick_first.c
908 src/core/ext/lb_policy/round_robin/round_robin.c
909 src/core/ext/census/context.c
910 src/core/ext/census/gen/census.pb.c
911 src/core/ext/census/grpc_context.c
912 src/core/ext/census/grpc_filter.c
913 src/core/ext/census/grpc_plugin.c
914 src/core/ext/census/initialize.c
915 src/core/ext/census/mlog.c
916 src/core/ext/census/operation.c
917 src/core/ext/census/placeholders.c
918 src/core/ext/census/tracing.c
919 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
920)
921
922target_include_directories(grpc_unsecure
923 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
924 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
925 PRIVATE ${BORINGSSL_ROOT_DIR}/include
926 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300927 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100928 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
929)
930
931target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300932 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100933 gpr
934)
935
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300936foreach(_hdr
937 include/grpc/byte_buffer.h
938 include/grpc/byte_buffer_reader.h
939 include/grpc/compression.h
940 include/grpc/grpc.h
941 include/grpc/grpc_posix.h
942 include/grpc/status.h
943 include/grpc/impl/codegen/byte_buffer.h
944 include/grpc/impl/codegen/byte_buffer_reader.h
945 include/grpc/impl/codegen/compression_types.h
946 include/grpc/impl/codegen/connectivity_state.h
947 include/grpc/impl/codegen/grpc_types.h
948 include/grpc/impl/codegen/propagation_bits.h
949 include/grpc/impl/codegen/status.h
950 include/grpc/impl/codegen/alloc.h
951 include/grpc/impl/codegen/atm.h
952 include/grpc/impl/codegen/atm_gcc_atomic.h
953 include/grpc/impl/codegen/atm_gcc_sync.h
954 include/grpc/impl/codegen/atm_windows.h
955 include/grpc/impl/codegen/log.h
956 include/grpc/impl/codegen/port_platform.h
957 include/grpc/impl/codegen/slice.h
958 include/grpc/impl/codegen/slice_buffer.h
959 include/grpc/impl/codegen/sync.h
960 include/grpc/impl/codegen/sync_generic.h
961 include/grpc/impl/codegen/sync_posix.h
962 include/grpc/impl/codegen/sync_windows.h
963 include/grpc/impl/codegen/time.h
964 include/grpc/census.h
965)
966 string(REPLACE "include/" "" _path ${_hdr})
967 get_filename_component(_path ${_path} PATH)
968 install(FILES ${_hdr}
969 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
970 )
971endforeach()
972
973
974install(TARGETS grpc_unsecure EXPORT gRPCTargets
975 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
976 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
977 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
978)
979
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100980
981add_library(grpc++
982 src/cpp/client/secure_credentials.cc
983 src/cpp/common/auth_property_iterator.cc
984 src/cpp/common/secure_auth_context.cc
985 src/cpp/common/secure_channel_arguments.cc
986 src/cpp/common/secure_create_auth_context.cc
987 src/cpp/server/secure_server_credentials.cc
988 src/cpp/client/channel.cc
989 src/cpp/client/client_context.cc
990 src/cpp/client/create_channel.cc
991 src/cpp/client/create_channel_internal.cc
992 src/cpp/client/create_channel_posix.cc
993 src/cpp/client/credentials.cc
994 src/cpp/client/generic_stub.cc
995 src/cpp/client/insecure_credentials.cc
996 src/cpp/common/channel_arguments.cc
997 src/cpp/common/completion_queue.cc
998 src/cpp/common/core_codegen.cc
999 src/cpp/common/rpc_method.cc
1000 src/cpp/server/async_generic_service.cc
1001 src/cpp/server/create_default_thread_pool.cc
1002 src/cpp/server/dynamic_thread_pool.cc
1003 src/cpp/server/insecure_server_credentials.cc
1004 src/cpp/server/server.cc
1005 src/cpp/server/server_builder.cc
1006 src/cpp/server/server_context.cc
1007 src/cpp/server/server_credentials.cc
1008 src/cpp/server/server_posix.cc
1009 src/cpp/util/byte_buffer.cc
1010 src/cpp/util/slice.cc
1011 src/cpp/util/status.cc
1012 src/cpp/util/string_ref.cc
1013 src/cpp/util/time.cc
1014 src/cpp/codegen/codegen_init.cc
1015)
1016
1017target_include_directories(grpc++
1018 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1019 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1020 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1021 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001022 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001023 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1024)
1025
1026target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001027 ${_gRPC_BASELIB_LIBRARIES}
1028 ${_gRPC_SSL_LIBRARIES}
1029 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001030 grpc
1031)
1032
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001033foreach(_hdr
1034 include/grpc++/alarm.h
1035 include/grpc++/channel.h
1036 include/grpc++/client_context.h
1037 include/grpc++/completion_queue.h
1038 include/grpc++/create_channel.h
1039 include/grpc++/create_channel_posix.h
1040 include/grpc++/generic/async_generic_service.h
1041 include/grpc++/generic/generic_stub.h
1042 include/grpc++/grpc++.h
1043 include/grpc++/impl/call.h
1044 include/grpc++/impl/client_unary_call.h
1045 include/grpc++/impl/codegen/core_codegen.h
1046 include/grpc++/impl/grpc_library.h
1047 include/grpc++/impl/method_handler_impl.h
1048 include/grpc++/impl/rpc_method.h
1049 include/grpc++/impl/rpc_service_method.h
1050 include/grpc++/impl/serialization_traits.h
1051 include/grpc++/impl/server_builder_option.h
1052 include/grpc++/impl/server_builder_plugin.h
1053 include/grpc++/impl/server_initializer.h
1054 include/grpc++/impl/service_type.h
1055 include/grpc++/impl/sync.h
1056 include/grpc++/impl/sync_cxx11.h
1057 include/grpc++/impl/sync_no_cxx11.h
1058 include/grpc++/impl/thd.h
1059 include/grpc++/impl/thd_cxx11.h
1060 include/grpc++/impl/thd_no_cxx11.h
1061 include/grpc++/security/auth_context.h
1062 include/grpc++/security/auth_metadata_processor.h
1063 include/grpc++/security/credentials.h
1064 include/grpc++/security/server_credentials.h
1065 include/grpc++/server.h
1066 include/grpc++/server_builder.h
1067 include/grpc++/server_context.h
1068 include/grpc++/server_posix.h
1069 include/grpc++/support/async_stream.h
1070 include/grpc++/support/async_unary_call.h
1071 include/grpc++/support/byte_buffer.h
1072 include/grpc++/support/channel_arguments.h
1073 include/grpc++/support/config.h
1074 include/grpc++/support/slice.h
1075 include/grpc++/support/status.h
1076 include/grpc++/support/status_code_enum.h
1077 include/grpc++/support/string_ref.h
1078 include/grpc++/support/stub_options.h
1079 include/grpc++/support/sync_stream.h
1080 include/grpc++/support/time.h
1081 include/grpc++/impl/codegen/async_stream.h
1082 include/grpc++/impl/codegen/async_unary_call.h
1083 include/grpc++/impl/codegen/call.h
1084 include/grpc++/impl/codegen/call_hook.h
1085 include/grpc++/impl/codegen/channel_interface.h
1086 include/grpc++/impl/codegen/client_context.h
1087 include/grpc++/impl/codegen/client_unary_call.h
1088 include/grpc++/impl/codegen/completion_queue.h
1089 include/grpc++/impl/codegen/completion_queue_tag.h
1090 include/grpc++/impl/codegen/config.h
1091 include/grpc++/impl/codegen/core_codegen_interface.h
1092 include/grpc++/impl/codegen/create_auth_context.h
1093 include/grpc++/impl/codegen/grpc_library.h
1094 include/grpc++/impl/codegen/method_handler_impl.h
1095 include/grpc++/impl/codegen/rpc_method.h
1096 include/grpc++/impl/codegen/rpc_service_method.h
1097 include/grpc++/impl/codegen/security/auth_context.h
1098 include/grpc++/impl/codegen/serialization_traits.h
1099 include/grpc++/impl/codegen/server_context.h
1100 include/grpc++/impl/codegen/server_interface.h
1101 include/grpc++/impl/codegen/service_type.h
1102 include/grpc++/impl/codegen/status.h
1103 include/grpc++/impl/codegen/status_code_enum.h
1104 include/grpc++/impl/codegen/string_ref.h
1105 include/grpc++/impl/codegen/stub_options.h
1106 include/grpc++/impl/codegen/sync.h
1107 include/grpc++/impl/codegen/sync_cxx11.h
1108 include/grpc++/impl/codegen/sync_no_cxx11.h
1109 include/grpc++/impl/codegen/sync_stream.h
1110 include/grpc++/impl/codegen/time.h
1111 include/grpc/impl/codegen/byte_buffer.h
1112 include/grpc/impl/codegen/byte_buffer_reader.h
1113 include/grpc/impl/codegen/compression_types.h
1114 include/grpc/impl/codegen/connectivity_state.h
1115 include/grpc/impl/codegen/grpc_types.h
1116 include/grpc/impl/codegen/propagation_bits.h
1117 include/grpc/impl/codegen/status.h
1118 include/grpc/impl/codegen/alloc.h
1119 include/grpc/impl/codegen/atm.h
1120 include/grpc/impl/codegen/atm_gcc_atomic.h
1121 include/grpc/impl/codegen/atm_gcc_sync.h
1122 include/grpc/impl/codegen/atm_windows.h
1123 include/grpc/impl/codegen/log.h
1124 include/grpc/impl/codegen/port_platform.h
1125 include/grpc/impl/codegen/slice.h
1126 include/grpc/impl/codegen/slice_buffer.h
1127 include/grpc/impl/codegen/sync.h
1128 include/grpc/impl/codegen/sync_generic.h
1129 include/grpc/impl/codegen/sync_posix.h
1130 include/grpc/impl/codegen/sync_windows.h
1131 include/grpc/impl/codegen/time.h
1132)
1133 string(REPLACE "include/" "" _path ${_hdr})
1134 get_filename_component(_path ${_path} PATH)
1135 install(FILES ${_hdr}
1136 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1137 )
1138endforeach()
1139
1140
1141install(TARGETS grpc++ EXPORT gRPCTargets
1142 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1143 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1144 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1145)
1146
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001147
1148add_library(grpc++_reflection
1149 src/cpp/ext/proto_server_reflection.cc
1150 src/cpp/ext/proto_server_reflection_plugin.cc
1151 src/cpp/ext/reflection.grpc.pb.cc
1152 src/cpp/ext/reflection.pb.cc
1153)
1154
1155target_include_directories(grpc++_reflection
1156 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1157 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1158 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1159 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001160 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001161 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1162)
1163
1164target_link_libraries(grpc++_reflection
1165 grpc++
1166)
1167
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001168foreach(_hdr
1169 include/grpc++/ext/proto_server_reflection_plugin.h
1170 include/grpc++/ext/reflection.grpc.pb.h
1171 include/grpc++/ext/reflection.pb.h
1172 include/grpc++/impl/codegen/proto_utils.h
1173 include/grpc++/impl/codegen/async_stream.h
1174 include/grpc++/impl/codegen/async_unary_call.h
1175 include/grpc++/impl/codegen/call.h
1176 include/grpc++/impl/codegen/call_hook.h
1177 include/grpc++/impl/codegen/channel_interface.h
1178 include/grpc++/impl/codegen/client_context.h
1179 include/grpc++/impl/codegen/client_unary_call.h
1180 include/grpc++/impl/codegen/completion_queue.h
1181 include/grpc++/impl/codegen/completion_queue_tag.h
1182 include/grpc++/impl/codegen/config.h
1183 include/grpc++/impl/codegen/core_codegen_interface.h
1184 include/grpc++/impl/codegen/create_auth_context.h
1185 include/grpc++/impl/codegen/grpc_library.h
1186 include/grpc++/impl/codegen/method_handler_impl.h
1187 include/grpc++/impl/codegen/rpc_method.h
1188 include/grpc++/impl/codegen/rpc_service_method.h
1189 include/grpc++/impl/codegen/security/auth_context.h
1190 include/grpc++/impl/codegen/serialization_traits.h
1191 include/grpc++/impl/codegen/server_context.h
1192 include/grpc++/impl/codegen/server_interface.h
1193 include/grpc++/impl/codegen/service_type.h
1194 include/grpc++/impl/codegen/status.h
1195 include/grpc++/impl/codegen/status_code_enum.h
1196 include/grpc++/impl/codegen/string_ref.h
1197 include/grpc++/impl/codegen/stub_options.h
1198 include/grpc++/impl/codegen/sync.h
1199 include/grpc++/impl/codegen/sync_cxx11.h
1200 include/grpc++/impl/codegen/sync_no_cxx11.h
1201 include/grpc++/impl/codegen/sync_stream.h
1202 include/grpc++/impl/codegen/time.h
1203 include/grpc/impl/codegen/byte_buffer.h
1204 include/grpc/impl/codegen/byte_buffer_reader.h
1205 include/grpc/impl/codegen/compression_types.h
1206 include/grpc/impl/codegen/connectivity_state.h
1207 include/grpc/impl/codegen/grpc_types.h
1208 include/grpc/impl/codegen/propagation_bits.h
1209 include/grpc/impl/codegen/status.h
1210 include/grpc/impl/codegen/alloc.h
1211 include/grpc/impl/codegen/atm.h
1212 include/grpc/impl/codegen/atm_gcc_atomic.h
1213 include/grpc/impl/codegen/atm_gcc_sync.h
1214 include/grpc/impl/codegen/atm_windows.h
1215 include/grpc/impl/codegen/log.h
1216 include/grpc/impl/codegen/port_platform.h
1217 include/grpc/impl/codegen/slice.h
1218 include/grpc/impl/codegen/slice_buffer.h
1219 include/grpc/impl/codegen/sync.h
1220 include/grpc/impl/codegen/sync_generic.h
1221 include/grpc/impl/codegen/sync_posix.h
1222 include/grpc/impl/codegen/sync_windows.h
1223 include/grpc/impl/codegen/time.h
1224 include/grpc++/impl/codegen/config_protobuf.h
1225)
1226 string(REPLACE "include/" "" _path ${_hdr})
1227 get_filename_component(_path ${_path} PATH)
1228 install(FILES ${_hdr}
1229 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1230 )
1231endforeach()
1232
1233
1234install(TARGETS grpc++_reflection EXPORT gRPCTargets
1235 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1236 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1237 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1238)
1239
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001240
1241add_library(grpc++_unsecure
1242 src/cpp/common/insecure_create_auth_context.cc
1243 src/cpp/client/channel.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
1249 src/cpp/client/generic_stub.cc
1250 src/cpp/client/insecure_credentials.cc
1251 src/cpp/common/channel_arguments.cc
1252 src/cpp/common/completion_queue.cc
1253 src/cpp/common/core_codegen.cc
1254 src/cpp/common/rpc_method.cc
1255 src/cpp/server/async_generic_service.cc
1256 src/cpp/server/create_default_thread_pool.cc
1257 src/cpp/server/dynamic_thread_pool.cc
1258 src/cpp/server/insecure_server_credentials.cc
1259 src/cpp/server/server.cc
1260 src/cpp/server/server_builder.cc
1261 src/cpp/server/server_context.cc
1262 src/cpp/server/server_credentials.cc
1263 src/cpp/server/server_posix.cc
1264 src/cpp/util/byte_buffer.cc
1265 src/cpp/util/slice.cc
1266 src/cpp/util/status.cc
1267 src/cpp/util/string_ref.cc
1268 src/cpp/util/time.cc
1269 src/cpp/codegen/codegen_init.cc
1270)
1271
1272target_include_directories(grpc++_unsecure
1273 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1274 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1275 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1276 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001277 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001278 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1279)
1280
1281target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001282 ${_gRPC_BASELIB_LIBRARIES}
1283 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001284 gpr
1285 grpc_unsecure
Yuchen Zengf0ec5b62016-07-08 13:40:40 -07001286 grpc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001287)
1288
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001289foreach(_hdr
1290 include/grpc++/alarm.h
1291 include/grpc++/channel.h
1292 include/grpc++/client_context.h
1293 include/grpc++/completion_queue.h
1294 include/grpc++/create_channel.h
1295 include/grpc++/create_channel_posix.h
1296 include/grpc++/generic/async_generic_service.h
1297 include/grpc++/generic/generic_stub.h
1298 include/grpc++/grpc++.h
1299 include/grpc++/impl/call.h
1300 include/grpc++/impl/client_unary_call.h
1301 include/grpc++/impl/codegen/core_codegen.h
1302 include/grpc++/impl/grpc_library.h
1303 include/grpc++/impl/method_handler_impl.h
1304 include/grpc++/impl/rpc_method.h
1305 include/grpc++/impl/rpc_service_method.h
1306 include/grpc++/impl/serialization_traits.h
1307 include/grpc++/impl/server_builder_option.h
1308 include/grpc++/impl/server_builder_plugin.h
1309 include/grpc++/impl/server_initializer.h
1310 include/grpc++/impl/service_type.h
1311 include/grpc++/impl/sync.h
1312 include/grpc++/impl/sync_cxx11.h
1313 include/grpc++/impl/sync_no_cxx11.h
1314 include/grpc++/impl/thd.h
1315 include/grpc++/impl/thd_cxx11.h
1316 include/grpc++/impl/thd_no_cxx11.h
1317 include/grpc++/security/auth_context.h
1318 include/grpc++/security/auth_metadata_processor.h
1319 include/grpc++/security/credentials.h
1320 include/grpc++/security/server_credentials.h
1321 include/grpc++/server.h
1322 include/grpc++/server_builder.h
1323 include/grpc++/server_context.h
1324 include/grpc++/server_posix.h
1325 include/grpc++/support/async_stream.h
1326 include/grpc++/support/async_unary_call.h
1327 include/grpc++/support/byte_buffer.h
1328 include/grpc++/support/channel_arguments.h
1329 include/grpc++/support/config.h
1330 include/grpc++/support/slice.h
1331 include/grpc++/support/status.h
1332 include/grpc++/support/status_code_enum.h
1333 include/grpc++/support/string_ref.h
1334 include/grpc++/support/stub_options.h
1335 include/grpc++/support/sync_stream.h
1336 include/grpc++/support/time.h
1337 include/grpc++/impl/codegen/async_stream.h
1338 include/grpc++/impl/codegen/async_unary_call.h
1339 include/grpc++/impl/codegen/call.h
1340 include/grpc++/impl/codegen/call_hook.h
1341 include/grpc++/impl/codegen/channel_interface.h
1342 include/grpc++/impl/codegen/client_context.h
1343 include/grpc++/impl/codegen/client_unary_call.h
1344 include/grpc++/impl/codegen/completion_queue.h
1345 include/grpc++/impl/codegen/completion_queue_tag.h
1346 include/grpc++/impl/codegen/config.h
1347 include/grpc++/impl/codegen/core_codegen_interface.h
1348 include/grpc++/impl/codegen/create_auth_context.h
1349 include/grpc++/impl/codegen/grpc_library.h
1350 include/grpc++/impl/codegen/method_handler_impl.h
1351 include/grpc++/impl/codegen/rpc_method.h
1352 include/grpc++/impl/codegen/rpc_service_method.h
1353 include/grpc++/impl/codegen/security/auth_context.h
1354 include/grpc++/impl/codegen/serialization_traits.h
1355 include/grpc++/impl/codegen/server_context.h
1356 include/grpc++/impl/codegen/server_interface.h
1357 include/grpc++/impl/codegen/service_type.h
1358 include/grpc++/impl/codegen/status.h
1359 include/grpc++/impl/codegen/status_code_enum.h
1360 include/grpc++/impl/codegen/string_ref.h
1361 include/grpc++/impl/codegen/stub_options.h
1362 include/grpc++/impl/codegen/sync.h
1363 include/grpc++/impl/codegen/sync_cxx11.h
1364 include/grpc++/impl/codegen/sync_no_cxx11.h
1365 include/grpc++/impl/codegen/sync_stream.h
1366 include/grpc++/impl/codegen/time.h
1367 include/grpc/impl/codegen/byte_buffer.h
1368 include/grpc/impl/codegen/byte_buffer_reader.h
1369 include/grpc/impl/codegen/compression_types.h
1370 include/grpc/impl/codegen/connectivity_state.h
1371 include/grpc/impl/codegen/grpc_types.h
1372 include/grpc/impl/codegen/propagation_bits.h
1373 include/grpc/impl/codegen/status.h
1374 include/grpc/impl/codegen/alloc.h
1375 include/grpc/impl/codegen/atm.h
1376 include/grpc/impl/codegen/atm_gcc_atomic.h
1377 include/grpc/impl/codegen/atm_gcc_sync.h
1378 include/grpc/impl/codegen/atm_windows.h
1379 include/grpc/impl/codegen/log.h
1380 include/grpc/impl/codegen/port_platform.h
1381 include/grpc/impl/codegen/slice.h
1382 include/grpc/impl/codegen/slice_buffer.h
1383 include/grpc/impl/codegen/sync.h
1384 include/grpc/impl/codegen/sync_generic.h
1385 include/grpc/impl/codegen/sync_posix.h
1386 include/grpc/impl/codegen/sync_windows.h
1387 include/grpc/impl/codegen/time.h
1388)
1389 string(REPLACE "include/" "" _path ${_hdr})
1390 get_filename_component(_path ${_path} PATH)
1391 install(FILES ${_hdr}
1392 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1393 )
1394endforeach()
1395
1396
1397install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1398 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1399 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1400 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1401)
1402
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001403
1404add_library(grpc_plugin_support
1405 src/compiler/cpp_generator.cc
1406 src/compiler/csharp_generator.cc
1407 src/compiler/node_generator.cc
1408 src/compiler/objective_c_generator.cc
1409 src/compiler/python_generator.cc
1410 src/compiler/ruby_generator.cc
1411)
1412
1413target_include_directories(grpc_plugin_support
1414 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1415 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1416 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1417 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001418 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001419 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1420)
1421
1422target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001423 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001424)
1425
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001426foreach(_hdr
1427 include/grpc++/impl/codegen/config_protobuf.h
1428)
1429 string(REPLACE "include/" "" _path ${_hdr})
1430 get_filename_component(_path ${_path} PATH)
1431 install(FILES ${_hdr}
1432 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1433 )
1434endforeach()
1435
1436
1437install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1438 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1439 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1440 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1441)
1442
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001443
1444add_library(grpc_csharp_ext
1445 src/csharp/ext/grpc_csharp_ext.c
1446)
1447
1448target_include_directories(grpc_csharp_ext
1449 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1450 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1451 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1452 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001453 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001454 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1455)
1456
1457target_link_libraries(grpc_csharp_ext
1458 grpc
1459 gpr
1460)
1461
1462
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001463
1464install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1465 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1466 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1467 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1468)
1469
1470
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001471
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001472add_executable(gen_hpack_tables
1473 tools/codegen/core/gen_hpack_tables.c
1474)
1475
1476target_include_directories(gen_hpack_tables
1477 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1478 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1479 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1480 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1481 PRIVATE ${ZLIB_ROOT_DIR}
1482 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1483)
1484
1485target_link_libraries(gen_hpack_tables
1486 gpr
1487 grpc
1488)
1489
1490
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001491install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1492 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1493 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1494 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1495)
1496
1497
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001498add_executable(gen_legal_metadata_characters
1499 tools/codegen/core/gen_legal_metadata_characters.c
1500)
1501
1502target_include_directories(gen_legal_metadata_characters
1503 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1504 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1505 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1506 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1507 PRIVATE ${ZLIB_ROOT_DIR}
1508 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1509)
1510
1511
1512
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001513install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1514 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1515 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1516 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1517)
1518
1519
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001520add_executable(grpc_create_jwt
1521 test/core/security/create_jwt.c
1522)
1523
1524target_include_directories(grpc_create_jwt
1525 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1526 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1527 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1528 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1529 PRIVATE ${ZLIB_ROOT_DIR}
1530 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1531)
1532
1533target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001534 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001535 grpc
1536 gpr
1537)
1538
1539
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001540install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1541 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1542 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1543 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1544)
1545
1546
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001547add_executable(grpc_print_google_default_creds_token
1548 test/core/security/print_google_default_creds_token.c
1549)
1550
1551target_include_directories(grpc_print_google_default_creds_token
1552 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1553 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1554 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1555 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1556 PRIVATE ${ZLIB_ROOT_DIR}
1557 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1558)
1559
1560target_link_libraries(grpc_print_google_default_creds_token
1561 grpc
1562 gpr
1563)
1564
1565
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001566install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1567 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1568 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1569 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1570)
1571
1572
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001573add_executable(grpc_verify_jwt
1574 test/core/security/verify_jwt.c
1575)
1576
1577target_include_directories(grpc_verify_jwt
1578 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1579 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1580 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1581 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1582 PRIVATE ${ZLIB_ROOT_DIR}
1583 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1584)
1585
1586target_link_libraries(grpc_verify_jwt
1587 grpc
1588 gpr
1589)
1590
1591
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001592install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1593 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1594 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1595 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1596)
1597
1598
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001599add_executable(grpc_cpp_plugin
1600 src/compiler/cpp_plugin.cc
1601)
1602
1603target_include_directories(grpc_cpp_plugin
1604 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1605 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1606 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1607 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1608 PRIVATE ${ZLIB_ROOT_DIR}
1609 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1610)
1611
1612target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001613 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001614 grpc_plugin_support
1615)
1616
1617
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001618install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1619 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1620 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1621 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1622)
1623
1624
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001625add_executable(grpc_csharp_plugin
1626 src/compiler/csharp_plugin.cc
1627)
1628
1629target_include_directories(grpc_csharp_plugin
1630 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1631 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1632 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1633 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1634 PRIVATE ${ZLIB_ROOT_DIR}
1635 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1636)
1637
1638target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001639 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001640 grpc_plugin_support
1641)
1642
1643
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001644install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1645 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1646 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1647 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1648)
1649
1650
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001651add_executable(grpc_node_plugin
1652 src/compiler/node_plugin.cc
1653)
1654
1655target_include_directories(grpc_node_plugin
1656 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1657 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1658 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1659 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1660 PRIVATE ${ZLIB_ROOT_DIR}
1661 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1662)
1663
1664target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001665 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001666 grpc_plugin_support
1667)
1668
1669
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001670install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1671 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1672 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1673 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1674)
1675
1676
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001677add_executable(grpc_objective_c_plugin
1678 src/compiler/objective_c_plugin.cc
1679)
1680
1681target_include_directories(grpc_objective_c_plugin
1682 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1683 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1684 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1685 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1686 PRIVATE ${ZLIB_ROOT_DIR}
1687 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1688)
1689
1690target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001691 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001692 grpc_plugin_support
1693)
1694
1695
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001696install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1697 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1698 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1699 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1700)
1701
1702
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001703add_executable(grpc_python_plugin
1704 src/compiler/python_plugin.cc
1705)
1706
1707target_include_directories(grpc_python_plugin
1708 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1709 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1710 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1711 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1712 PRIVATE ${ZLIB_ROOT_DIR}
1713 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1714)
1715
1716target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001717 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001718 grpc_plugin_support
1719)
1720
1721
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001722install(TARGETS grpc_python_plugin EXPORT gRPCTargets
1723 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1724 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1725 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1726)
1727
1728
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001729add_executable(grpc_ruby_plugin
1730 src/compiler/ruby_plugin.cc
1731)
1732
1733target_include_directories(grpc_ruby_plugin
1734 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1735 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1736 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1737 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1738 PRIVATE ${ZLIB_ROOT_DIR}
1739 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1740)
1741
1742target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001743 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001744 grpc_plugin_support
1745)
1746
1747
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001748install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
1749 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1750 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1751 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1752)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001753
1754
1755
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001756
1757
1758
1759
1760
1761install(EXPORT gRPCTargets
1762 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
1763 NAMESPACE gRPC::
1764)
1765
1766foreach(_config gRPCConfig gRPCConfigVersion)
1767 configure_file(tools/cmake/${_config}.cmake.in
1768 ${_config}.cmake @ONLY)
1769 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
1770 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
1771 )
1772endforeach()