blob: d3337b56e599b74dfb188b9398c4776a58f642aa [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
172
173add_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
Craig Tiller17ed6b12016-08-18 09:33:33 -0700196 src/core/lib/support/percent_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100197 src/core/lib/support/slice.c
198 src/core/lib/support/slice_buffer.c
199 src/core/lib/support/stack_lockfree.c
200 src/core/lib/support/string.c
201 src/core/lib/support/string_posix.c
202 src/core/lib/support/string_util_windows.c
203 src/core/lib/support/string_windows.c
204 src/core/lib/support/subprocess_posix.c
205 src/core/lib/support/subprocess_windows.c
206 src/core/lib/support/sync.c
207 src/core/lib/support/sync_posix.c
208 src/core/lib/support/sync_windows.c
209 src/core/lib/support/thd.c
210 src/core/lib/support/thd_posix.c
211 src/core/lib/support/thd_windows.c
212 src/core/lib/support/time.c
213 src/core/lib/support/time_posix.c
214 src/core/lib/support/time_precise.c
215 src/core/lib/support/time_windows.c
216 src/core/lib/support/tls_pthread.c
217 src/core/lib/support/tmpfile_msys.c
218 src/core/lib/support/tmpfile_posix.c
219 src/core/lib/support/tmpfile_windows.c
220 src/core/lib/support/wrap_memcpy.c
221)
222
223target_include_directories(gpr
224 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
225 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
226 PRIVATE ${BORINGSSL_ROOT_DIR}/include
227 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300228 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100229 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
230)
231
232
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300233foreach(_hdr
234 include/grpc/support/alloc.h
235 include/grpc/support/atm.h
236 include/grpc/support/atm_gcc_atomic.h
237 include/grpc/support/atm_gcc_sync.h
238 include/grpc/support/atm_windows.h
239 include/grpc/support/avl.h
240 include/grpc/support/cmdline.h
241 include/grpc/support/cpu.h
242 include/grpc/support/histogram.h
243 include/grpc/support/host_port.h
244 include/grpc/support/log.h
245 include/grpc/support/log_windows.h
246 include/grpc/support/port_platform.h
247 include/grpc/support/slice.h
248 include/grpc/support/slice_buffer.h
249 include/grpc/support/string_util.h
250 include/grpc/support/subprocess.h
251 include/grpc/support/sync.h
252 include/grpc/support/sync_generic.h
253 include/grpc/support/sync_posix.h
254 include/grpc/support/sync_windows.h
255 include/grpc/support/thd.h
256 include/grpc/support/time.h
257 include/grpc/support/tls.h
258 include/grpc/support/tls_gcc.h
259 include/grpc/support/tls_msvc.h
260 include/grpc/support/tls_pthread.h
261 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300262 include/grpc/impl/codegen/atm.h
263 include/grpc/impl/codegen/atm_gcc_atomic.h
264 include/grpc/impl/codegen/atm_gcc_sync.h
265 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700266 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300267 include/grpc/impl/codegen/port_platform.h
268 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300269 include/grpc/impl/codegen/sync.h
270 include/grpc/impl/codegen/sync_generic.h
271 include/grpc/impl/codegen/sync_posix.h
272 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300273)
274 string(REPLACE "include/" "" _path ${_hdr})
275 get_filename_component(_path ${_path} PATH)
276 install(FILES ${_hdr}
277 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
278 )
279endforeach()
280
281
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300282if (gRPC_INSTALL)
283 install(TARGETS gpr EXPORT gRPCTargets
284 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
285 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
286 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
287 )
288endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300289
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100290
291add_library(grpc
292 src/core/lib/surface/init.c
293 src/core/lib/channel/channel_args.c
294 src/core/lib/channel/channel_stack.c
295 src/core/lib/channel/channel_stack_builder.c
296 src/core/lib/channel/compress_filter.c
297 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700298 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100299 src/core/lib/channel/http_client_filter.c
300 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700301 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100302 src/core/lib/compression/compression.c
303 src/core/lib/compression/message_compress.c
304 src/core/lib/debug/trace.c
305 src/core/lib/http/format_request.c
306 src/core/lib/http/httpcli.c
307 src/core/lib/http/parser.c
308 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700309 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100310 src/core/lib/iomgr/endpoint.c
311 src/core/lib/iomgr/endpoint_pair_posix.c
312 src/core/lib/iomgr/endpoint_pair_windows.c
313 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200314 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100315 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
316 src/core/lib/iomgr/ev_poll_posix.c
317 src/core/lib/iomgr/ev_posix.c
318 src/core/lib/iomgr/exec_ctx.c
319 src/core/lib/iomgr/executor.c
320 src/core/lib/iomgr/iocp_windows.c
321 src/core/lib/iomgr/iomgr.c
322 src/core/lib/iomgr/iomgr_posix.c
323 src/core/lib/iomgr/iomgr_windows.c
324 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200325 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100326 src/core/lib/iomgr/polling_entity.c
327 src/core/lib/iomgr/pollset_set_windows.c
328 src/core/lib/iomgr/pollset_windows.c
329 src/core/lib/iomgr/resolve_address_posix.c
330 src/core/lib/iomgr/resolve_address_windows.c
331 src/core/lib/iomgr/sockaddr_utils.c
332 src/core/lib/iomgr/socket_utils_common_posix.c
333 src/core/lib/iomgr/socket_utils_linux.c
334 src/core/lib/iomgr/socket_utils_posix.c
335 src/core/lib/iomgr/socket_windows.c
336 src/core/lib/iomgr/tcp_client_posix.c
337 src/core/lib/iomgr/tcp_client_windows.c
338 src/core/lib/iomgr/tcp_posix.c
339 src/core/lib/iomgr/tcp_server_posix.c
340 src/core/lib/iomgr/tcp_server_windows.c
341 src/core/lib/iomgr/tcp_windows.c
342 src/core/lib/iomgr/time_averaged_stats.c
343 src/core/lib/iomgr/timer.c
344 src/core/lib/iomgr/timer_heap.c
345 src/core/lib/iomgr/udp_server.c
346 src/core/lib/iomgr/unix_sockets_posix.c
347 src/core/lib/iomgr/unix_sockets_posix_noop.c
348 src/core/lib/iomgr/wakeup_fd_eventfd.c
349 src/core/lib/iomgr/wakeup_fd_nospecial.c
350 src/core/lib/iomgr/wakeup_fd_pipe.c
351 src/core/lib/iomgr/wakeup_fd_posix.c
352 src/core/lib/iomgr/workqueue_posix.c
353 src/core/lib/iomgr/workqueue_windows.c
354 src/core/lib/json/json.c
355 src/core/lib/json/json_reader.c
356 src/core/lib/json/json_string.c
357 src/core/lib/json/json_writer.c
358 src/core/lib/surface/alarm.c
359 src/core/lib/surface/api_trace.c
360 src/core/lib/surface/byte_buffer.c
361 src/core/lib/surface/byte_buffer_reader.c
362 src/core/lib/surface/call.c
363 src/core/lib/surface/call_details.c
364 src/core/lib/surface/call_log_batch.c
365 src/core/lib/surface/channel.c
366 src/core/lib/surface/channel_init.c
367 src/core/lib/surface/channel_ping.c
368 src/core/lib/surface/channel_stack_type.c
369 src/core/lib/surface/completion_queue.c
370 src/core/lib/surface/event_string.c
371 src/core/lib/surface/lame_client.c
372 src/core/lib/surface/metadata_array.c
373 src/core/lib/surface/server.c
374 src/core/lib/surface/validate_metadata.c
375 src/core/lib/surface/version.c
376 src/core/lib/transport/byte_stream.c
377 src/core/lib/transport/connectivity_state.c
378 src/core/lib/transport/metadata.c
379 src/core/lib/transport/metadata_batch.c
380 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400381 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100382 src/core/lib/transport/transport.c
383 src/core/lib/transport/transport_op_string.c
384 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
385 src/core/ext/transport/chttp2/transport/bin_decoder.c
386 src/core/ext/transport/chttp2/transport/bin_encoder.c
387 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
388 src/core/ext/transport/chttp2/transport/chttp2_transport.c
389 src/core/ext/transport/chttp2/transport/frame_data.c
390 src/core/ext/transport/chttp2/transport/frame_goaway.c
391 src/core/ext/transport/chttp2/transport/frame_ping.c
392 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
393 src/core/ext/transport/chttp2/transport/frame_settings.c
394 src/core/ext/transport/chttp2/transport/frame_window_update.c
395 src/core/ext/transport/chttp2/transport/hpack_encoder.c
396 src/core/ext/transport/chttp2/transport/hpack_parser.c
397 src/core/ext/transport/chttp2/transport/hpack_table.c
398 src/core/ext/transport/chttp2/transport/huffsyms.c
399 src/core/ext/transport/chttp2/transport/incoming_metadata.c
400 src/core/ext/transport/chttp2/transport/parsing.c
401 src/core/ext/transport/chttp2/transport/status_conversion.c
402 src/core/ext/transport/chttp2/transport/stream_lists.c
403 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100404 src/core/ext/transport/chttp2/transport/varint.c
405 src/core/ext/transport/chttp2/transport/writing.c
406 src/core/ext/transport/chttp2/alpn/alpn.c
407 src/core/lib/http/httpcli_security_connector.c
408 src/core/lib/security/context/security_context.c
409 src/core/lib/security/credentials/composite/composite_credentials.c
410 src/core/lib/security/credentials/credentials.c
411 src/core/lib/security/credentials/credentials_metadata.c
412 src/core/lib/security/credentials/fake/fake_credentials.c
413 src/core/lib/security/credentials/google_default/credentials_posix.c
414 src/core/lib/security/credentials/google_default/credentials_windows.c
415 src/core/lib/security/credentials/google_default/google_default_credentials.c
416 src/core/lib/security/credentials/iam/iam_credentials.c
417 src/core/lib/security/credentials/jwt/json_token.c
418 src/core/lib/security/credentials/jwt/jwt_credentials.c
419 src/core/lib/security/credentials/jwt/jwt_verifier.c
420 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
421 src/core/lib/security/credentials/plugin/plugin_credentials.c
422 src/core/lib/security/credentials/ssl/ssl_credentials.c
423 src/core/lib/security/transport/client_auth_filter.c
424 src/core/lib/security/transport/handshake.c
425 src/core/lib/security/transport/secure_endpoint.c
426 src/core/lib/security/transport/security_connector.c
427 src/core/lib/security/transport/server_auth_filter.c
428 src/core/lib/security/transport/tsi_error.c
429 src/core/lib/security/util/b64.c
430 src/core/lib/security/util/json_util.c
431 src/core/lib/surface/init_secure.c
432 src/core/lib/tsi/fake_transport_security.c
433 src/core/lib/tsi/ssl_transport_security.c
434 src/core/lib/tsi/transport_security.c
435 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
436 src/core/ext/client_config/channel_connectivity.c
437 src/core/ext/client_config/client_channel.c
438 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100439 src/core/ext/client_config/client_config_plugin.c
440 src/core/ext/client_config/connector.c
441 src/core/ext/client_config/default_initial_connect_string.c
Mark D. Roth1102a9e2016-07-22 09:10:01 -0700442 src/core/ext/client_config/http_connect_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100443 src/core/ext/client_config/initial_connect_string.c
444 src/core/ext/client_config/lb_policy.c
445 src/core/ext/client_config/lb_policy_factory.c
446 src/core/ext/client_config/lb_policy_registry.c
447 src/core/ext/client_config/parse_address.c
448 src/core/ext/client_config/resolver.c
449 src/core/ext/client_config/resolver_factory.c
450 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700451 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100452 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100453 src/core/ext/client_config/subchannel_index.c
454 src/core/ext/client_config/uri_parser.c
455 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
456 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
457 src/core/ext/transport/chttp2/client/insecure/channel_create.c
458 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700459 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100460 src/core/ext/lb_policy/grpclb/load_balancer_api.c
461 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
462 third_party/nanopb/pb_common.c
463 third_party/nanopb/pb_decode.c
464 third_party/nanopb/pb_encode.c
465 src/core/ext/lb_policy/pick_first/pick_first.c
466 src/core/ext/lb_policy/round_robin/round_robin.c
467 src/core/ext/resolver/dns/native/dns_resolver.c
468 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
469 src/core/ext/load_reporting/load_reporting.c
470 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700471 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100472 src/core/ext/census/context.c
473 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700474 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100475 src/core/ext/census/grpc_context.c
476 src/core/ext/census/grpc_filter.c
477 src/core/ext/census/grpc_plugin.c
478 src/core/ext/census/initialize.c
479 src/core/ext/census/mlog.c
480 src/core/ext/census/operation.c
481 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700482 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700483 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100484 src/core/ext/census/tracing.c
485 src/core/plugin_registry/grpc_plugin_registry.c
486)
487
488target_include_directories(grpc
489 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
490 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
491 PRIVATE ${BORINGSSL_ROOT_DIR}/include
492 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300493 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100494 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
495)
496
497target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300498 ${_gRPC_BASELIB_LIBRARIES}
499 ${_gRPC_SSL_LIBRARIES}
500 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100501 gpr
502)
503
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300504foreach(_hdr
505 include/grpc/byte_buffer.h
506 include/grpc/byte_buffer_reader.h
507 include/grpc/compression.h
508 include/grpc/grpc.h
509 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200510 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300511 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300512 include/grpc/impl/codegen/byte_buffer_reader.h
513 include/grpc/impl/codegen/compression_types.h
514 include/grpc/impl/codegen/connectivity_state.h
515 include/grpc/impl/codegen/grpc_types.h
516 include/grpc/impl/codegen/propagation_bits.h
517 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300518 include/grpc/impl/codegen/atm.h
519 include/grpc/impl/codegen/atm_gcc_atomic.h
520 include/grpc/impl/codegen/atm_gcc_sync.h
521 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700522 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300523 include/grpc/impl/codegen/port_platform.h
524 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300525 include/grpc/impl/codegen/sync.h
526 include/grpc/impl/codegen/sync_generic.h
527 include/grpc/impl/codegen/sync_posix.h
528 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300529 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300530 include/grpc/census.h
531)
532 string(REPLACE "include/" "" _path ${_hdr})
533 get_filename_component(_path ${_path} PATH)
534 install(FILES ${_hdr}
535 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
536 )
537endforeach()
538
539
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300540if (gRPC_INSTALL)
541 install(TARGETS grpc EXPORT gRPCTargets
542 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
543 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
544 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
545 )
546endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300547
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100548
549add_library(grpc_cronet
550 src/core/lib/surface/init.c
551 src/core/lib/channel/channel_args.c
552 src/core/lib/channel/channel_stack.c
553 src/core/lib/channel/channel_stack_builder.c
554 src/core/lib/channel/compress_filter.c
555 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700556 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100557 src/core/lib/channel/http_client_filter.c
558 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700559 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100560 src/core/lib/compression/compression.c
561 src/core/lib/compression/message_compress.c
562 src/core/lib/debug/trace.c
563 src/core/lib/http/format_request.c
564 src/core/lib/http/httpcli.c
565 src/core/lib/http/parser.c
566 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700567 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100568 src/core/lib/iomgr/endpoint.c
569 src/core/lib/iomgr/endpoint_pair_posix.c
570 src/core/lib/iomgr/endpoint_pair_windows.c
571 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200572 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100573 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
574 src/core/lib/iomgr/ev_poll_posix.c
575 src/core/lib/iomgr/ev_posix.c
576 src/core/lib/iomgr/exec_ctx.c
577 src/core/lib/iomgr/executor.c
578 src/core/lib/iomgr/iocp_windows.c
579 src/core/lib/iomgr/iomgr.c
580 src/core/lib/iomgr/iomgr_posix.c
581 src/core/lib/iomgr/iomgr_windows.c
582 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200583 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100584 src/core/lib/iomgr/polling_entity.c
585 src/core/lib/iomgr/pollset_set_windows.c
586 src/core/lib/iomgr/pollset_windows.c
587 src/core/lib/iomgr/resolve_address_posix.c
588 src/core/lib/iomgr/resolve_address_windows.c
589 src/core/lib/iomgr/sockaddr_utils.c
590 src/core/lib/iomgr/socket_utils_common_posix.c
591 src/core/lib/iomgr/socket_utils_linux.c
592 src/core/lib/iomgr/socket_utils_posix.c
593 src/core/lib/iomgr/socket_windows.c
594 src/core/lib/iomgr/tcp_client_posix.c
595 src/core/lib/iomgr/tcp_client_windows.c
596 src/core/lib/iomgr/tcp_posix.c
597 src/core/lib/iomgr/tcp_server_posix.c
598 src/core/lib/iomgr/tcp_server_windows.c
599 src/core/lib/iomgr/tcp_windows.c
600 src/core/lib/iomgr/time_averaged_stats.c
601 src/core/lib/iomgr/timer.c
602 src/core/lib/iomgr/timer_heap.c
603 src/core/lib/iomgr/udp_server.c
604 src/core/lib/iomgr/unix_sockets_posix.c
605 src/core/lib/iomgr/unix_sockets_posix_noop.c
606 src/core/lib/iomgr/wakeup_fd_eventfd.c
607 src/core/lib/iomgr/wakeup_fd_nospecial.c
608 src/core/lib/iomgr/wakeup_fd_pipe.c
609 src/core/lib/iomgr/wakeup_fd_posix.c
610 src/core/lib/iomgr/workqueue_posix.c
611 src/core/lib/iomgr/workqueue_windows.c
612 src/core/lib/json/json.c
613 src/core/lib/json/json_reader.c
614 src/core/lib/json/json_string.c
615 src/core/lib/json/json_writer.c
616 src/core/lib/surface/alarm.c
617 src/core/lib/surface/api_trace.c
618 src/core/lib/surface/byte_buffer.c
619 src/core/lib/surface/byte_buffer_reader.c
620 src/core/lib/surface/call.c
621 src/core/lib/surface/call_details.c
622 src/core/lib/surface/call_log_batch.c
623 src/core/lib/surface/channel.c
624 src/core/lib/surface/channel_init.c
625 src/core/lib/surface/channel_ping.c
626 src/core/lib/surface/channel_stack_type.c
627 src/core/lib/surface/completion_queue.c
628 src/core/lib/surface/event_string.c
629 src/core/lib/surface/lame_client.c
630 src/core/lib/surface/metadata_array.c
631 src/core/lib/surface/server.c
632 src/core/lib/surface/validate_metadata.c
633 src/core/lib/surface/version.c
634 src/core/lib/transport/byte_stream.c
635 src/core/lib/transport/connectivity_state.c
636 src/core/lib/transport/metadata.c
637 src/core/lib/transport/metadata_batch.c
638 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400639 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100640 src/core/lib/transport/transport.c
641 src/core/lib/transport/transport_op_string.c
642 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
643 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
644 src/core/ext/transport/cronet/transport/cronet_transport.c
645 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
646 src/core/ext/transport/chttp2/transport/bin_decoder.c
647 src/core/ext/transport/chttp2/transport/bin_encoder.c
648 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
649 src/core/ext/transport/chttp2/transport/chttp2_transport.c
650 src/core/ext/transport/chttp2/transport/frame_data.c
651 src/core/ext/transport/chttp2/transport/frame_goaway.c
652 src/core/ext/transport/chttp2/transport/frame_ping.c
653 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
654 src/core/ext/transport/chttp2/transport/frame_settings.c
655 src/core/ext/transport/chttp2/transport/frame_window_update.c
656 src/core/ext/transport/chttp2/transport/hpack_encoder.c
657 src/core/ext/transport/chttp2/transport/hpack_parser.c
658 src/core/ext/transport/chttp2/transport/hpack_table.c
659 src/core/ext/transport/chttp2/transport/huffsyms.c
660 src/core/ext/transport/chttp2/transport/incoming_metadata.c
661 src/core/ext/transport/chttp2/transport/parsing.c
662 src/core/ext/transport/chttp2/transport/status_conversion.c
663 src/core/ext/transport/chttp2/transport/stream_lists.c
664 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100665 src/core/ext/transport/chttp2/transport/varint.c
666 src/core/ext/transport/chttp2/transport/writing.c
667 src/core/ext/transport/chttp2/alpn/alpn.c
668 src/core/ext/client_config/channel_connectivity.c
669 src/core/ext/client_config/client_channel.c
670 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100671 src/core/ext/client_config/client_config_plugin.c
672 src/core/ext/client_config/connector.c
673 src/core/ext/client_config/default_initial_connect_string.c
Mark D. Roth1102a9e2016-07-22 09:10:01 -0700674 src/core/ext/client_config/http_connect_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100675 src/core/ext/client_config/initial_connect_string.c
676 src/core/ext/client_config/lb_policy.c
677 src/core/ext/client_config/lb_policy_factory.c
678 src/core/ext/client_config/lb_policy_registry.c
679 src/core/ext/client_config/parse_address.c
680 src/core/ext/client_config/resolver.c
681 src/core/ext/client_config/resolver_factory.c
682 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700683 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100684 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100685 src/core/ext/client_config/subchannel_index.c
686 src/core/ext/client_config/uri_parser.c
687 src/core/lib/http/httpcli_security_connector.c
688 src/core/lib/security/context/security_context.c
689 src/core/lib/security/credentials/composite/composite_credentials.c
690 src/core/lib/security/credentials/credentials.c
691 src/core/lib/security/credentials/credentials_metadata.c
692 src/core/lib/security/credentials/fake/fake_credentials.c
693 src/core/lib/security/credentials/google_default/credentials_posix.c
694 src/core/lib/security/credentials/google_default/credentials_windows.c
695 src/core/lib/security/credentials/google_default/google_default_credentials.c
696 src/core/lib/security/credentials/iam/iam_credentials.c
697 src/core/lib/security/credentials/jwt/json_token.c
698 src/core/lib/security/credentials/jwt/jwt_credentials.c
699 src/core/lib/security/credentials/jwt/jwt_verifier.c
700 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
701 src/core/lib/security/credentials/plugin/plugin_credentials.c
702 src/core/lib/security/credentials/ssl/ssl_credentials.c
703 src/core/lib/security/transport/client_auth_filter.c
704 src/core/lib/security/transport/handshake.c
705 src/core/lib/security/transport/secure_endpoint.c
706 src/core/lib/security/transport/security_connector.c
707 src/core/lib/security/transport/server_auth_filter.c
708 src/core/lib/security/transport/tsi_error.c
709 src/core/lib/security/util/b64.c
710 src/core/lib/security/util/json_util.c
711 src/core/lib/surface/init_secure.c
712 src/core/lib/tsi/fake_transport_security.c
713 src/core/lib/tsi/ssl_transport_security.c
714 src/core/lib/tsi/transport_security.c
715 src/core/plugin_registry/grpc_cronet_plugin_registry.c
716)
717
718target_include_directories(grpc_cronet
719 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
721 PRIVATE ${BORINGSSL_ROOT_DIR}/include
722 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300723 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100724 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
725)
726
727target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300728 ${_gRPC_BASELIB_LIBRARIES}
729 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100730 gpr
731)
732
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300733foreach(_hdr
734 include/grpc/byte_buffer.h
735 include/grpc/byte_buffer_reader.h
736 include/grpc/compression.h
737 include/grpc/grpc.h
738 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200739 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300740 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300741 include/grpc/impl/codegen/byte_buffer_reader.h
742 include/grpc/impl/codegen/compression_types.h
743 include/grpc/impl/codegen/connectivity_state.h
744 include/grpc/impl/codegen/grpc_types.h
745 include/grpc/impl/codegen/propagation_bits.h
746 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300747 include/grpc/impl/codegen/atm.h
748 include/grpc/impl/codegen/atm_gcc_atomic.h
749 include/grpc/impl/codegen/atm_gcc_sync.h
750 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700751 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300752 include/grpc/impl/codegen/port_platform.h
753 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300754 include/grpc/impl/codegen/sync.h
755 include/grpc/impl/codegen/sync_generic.h
756 include/grpc/impl/codegen/sync_posix.h
757 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300758 include/grpc/grpc_cronet.h
759 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300760)
761 string(REPLACE "include/" "" _path ${_hdr})
762 get_filename_component(_path ${_path} PATH)
763 install(FILES ${_hdr}
764 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
765 )
766endforeach()
767
768
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300769if (gRPC_INSTALL)
770 install(TARGETS grpc_cronet EXPORT gRPCTargets
771 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
772 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
773 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
774 )
775endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300776
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100777
778add_library(grpc_unsecure
779 src/core/lib/surface/init.c
780 src/core/lib/surface/init_unsecure.c
781 src/core/lib/channel/channel_args.c
782 src/core/lib/channel/channel_stack.c
783 src/core/lib/channel/channel_stack_builder.c
784 src/core/lib/channel/compress_filter.c
785 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700786 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100787 src/core/lib/channel/http_client_filter.c
788 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700789 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100790 src/core/lib/compression/compression.c
791 src/core/lib/compression/message_compress.c
792 src/core/lib/debug/trace.c
793 src/core/lib/http/format_request.c
794 src/core/lib/http/httpcli.c
795 src/core/lib/http/parser.c
796 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700797 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100798 src/core/lib/iomgr/endpoint.c
799 src/core/lib/iomgr/endpoint_pair_posix.c
800 src/core/lib/iomgr/endpoint_pair_windows.c
801 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200802 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100803 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
804 src/core/lib/iomgr/ev_poll_posix.c
805 src/core/lib/iomgr/ev_posix.c
806 src/core/lib/iomgr/exec_ctx.c
807 src/core/lib/iomgr/executor.c
808 src/core/lib/iomgr/iocp_windows.c
809 src/core/lib/iomgr/iomgr.c
810 src/core/lib/iomgr/iomgr_posix.c
811 src/core/lib/iomgr/iomgr_windows.c
812 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200813 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100814 src/core/lib/iomgr/polling_entity.c
815 src/core/lib/iomgr/pollset_set_windows.c
816 src/core/lib/iomgr/pollset_windows.c
817 src/core/lib/iomgr/resolve_address_posix.c
818 src/core/lib/iomgr/resolve_address_windows.c
819 src/core/lib/iomgr/sockaddr_utils.c
820 src/core/lib/iomgr/socket_utils_common_posix.c
821 src/core/lib/iomgr/socket_utils_linux.c
822 src/core/lib/iomgr/socket_utils_posix.c
823 src/core/lib/iomgr/socket_windows.c
824 src/core/lib/iomgr/tcp_client_posix.c
825 src/core/lib/iomgr/tcp_client_windows.c
826 src/core/lib/iomgr/tcp_posix.c
827 src/core/lib/iomgr/tcp_server_posix.c
828 src/core/lib/iomgr/tcp_server_windows.c
829 src/core/lib/iomgr/tcp_windows.c
830 src/core/lib/iomgr/time_averaged_stats.c
831 src/core/lib/iomgr/timer.c
832 src/core/lib/iomgr/timer_heap.c
833 src/core/lib/iomgr/udp_server.c
834 src/core/lib/iomgr/unix_sockets_posix.c
835 src/core/lib/iomgr/unix_sockets_posix_noop.c
836 src/core/lib/iomgr/wakeup_fd_eventfd.c
837 src/core/lib/iomgr/wakeup_fd_nospecial.c
838 src/core/lib/iomgr/wakeup_fd_pipe.c
839 src/core/lib/iomgr/wakeup_fd_posix.c
840 src/core/lib/iomgr/workqueue_posix.c
841 src/core/lib/iomgr/workqueue_windows.c
842 src/core/lib/json/json.c
843 src/core/lib/json/json_reader.c
844 src/core/lib/json/json_string.c
845 src/core/lib/json/json_writer.c
846 src/core/lib/surface/alarm.c
847 src/core/lib/surface/api_trace.c
848 src/core/lib/surface/byte_buffer.c
849 src/core/lib/surface/byte_buffer_reader.c
850 src/core/lib/surface/call.c
851 src/core/lib/surface/call_details.c
852 src/core/lib/surface/call_log_batch.c
853 src/core/lib/surface/channel.c
854 src/core/lib/surface/channel_init.c
855 src/core/lib/surface/channel_ping.c
856 src/core/lib/surface/channel_stack_type.c
857 src/core/lib/surface/completion_queue.c
858 src/core/lib/surface/event_string.c
859 src/core/lib/surface/lame_client.c
860 src/core/lib/surface/metadata_array.c
861 src/core/lib/surface/server.c
862 src/core/lib/surface/validate_metadata.c
863 src/core/lib/surface/version.c
864 src/core/lib/transport/byte_stream.c
865 src/core/lib/transport/connectivity_state.c
866 src/core/lib/transport/metadata.c
867 src/core/lib/transport/metadata_batch.c
868 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400869 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100870 src/core/lib/transport/transport.c
871 src/core/lib/transport/transport_op_string.c
872 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
873 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
874 src/core/ext/transport/chttp2/transport/bin_decoder.c
875 src/core/ext/transport/chttp2/transport/bin_encoder.c
876 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
877 src/core/ext/transport/chttp2/transport/chttp2_transport.c
878 src/core/ext/transport/chttp2/transport/frame_data.c
879 src/core/ext/transport/chttp2/transport/frame_goaway.c
880 src/core/ext/transport/chttp2/transport/frame_ping.c
881 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
882 src/core/ext/transport/chttp2/transport/frame_settings.c
883 src/core/ext/transport/chttp2/transport/frame_window_update.c
884 src/core/ext/transport/chttp2/transport/hpack_encoder.c
885 src/core/ext/transport/chttp2/transport/hpack_parser.c
886 src/core/ext/transport/chttp2/transport/hpack_table.c
887 src/core/ext/transport/chttp2/transport/huffsyms.c
888 src/core/ext/transport/chttp2/transport/incoming_metadata.c
889 src/core/ext/transport/chttp2/transport/parsing.c
890 src/core/ext/transport/chttp2/transport/status_conversion.c
891 src/core/ext/transport/chttp2/transport/stream_lists.c
892 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100893 src/core/ext/transport/chttp2/transport/varint.c
894 src/core/ext/transport/chttp2/transport/writing.c
895 src/core/ext/transport/chttp2/alpn/alpn.c
896 src/core/ext/transport/chttp2/client/insecure/channel_create.c
897 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
898 src/core/ext/client_config/channel_connectivity.c
899 src/core/ext/client_config/client_channel.c
900 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100901 src/core/ext/client_config/client_config_plugin.c
902 src/core/ext/client_config/connector.c
903 src/core/ext/client_config/default_initial_connect_string.c
Mark D. Roth1102a9e2016-07-22 09:10:01 -0700904 src/core/ext/client_config/http_connect_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100905 src/core/ext/client_config/initial_connect_string.c
906 src/core/ext/client_config/lb_policy.c
907 src/core/ext/client_config/lb_policy_factory.c
908 src/core/ext/client_config/lb_policy_registry.c
909 src/core/ext/client_config/parse_address.c
910 src/core/ext/client_config/resolver.c
911 src/core/ext/client_config/resolver_factory.c
912 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700913 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100914 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100915 src/core/ext/client_config/subchannel_index.c
916 src/core/ext/client_config/uri_parser.c
917 src/core/ext/resolver/dns/native/dns_resolver.c
918 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
919 src/core/ext/load_reporting/load_reporting.c
920 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700921 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100922 src/core/ext/lb_policy/grpclb/load_balancer_api.c
923 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
924 third_party/nanopb/pb_common.c
925 third_party/nanopb/pb_decode.c
926 third_party/nanopb/pb_encode.c
927 src/core/ext/lb_policy/pick_first/pick_first.c
928 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700929 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100930 src/core/ext/census/context.c
931 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700932 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100933 src/core/ext/census/grpc_context.c
934 src/core/ext/census/grpc_filter.c
935 src/core/ext/census/grpc_plugin.c
936 src/core/ext/census/initialize.c
937 src/core/ext/census/mlog.c
938 src/core/ext/census/operation.c
939 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700940 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700941 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100942 src/core/ext/census/tracing.c
943 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
944)
945
946target_include_directories(grpc_unsecure
947 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
948 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
949 PRIVATE ${BORINGSSL_ROOT_DIR}/include
950 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300951 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100952 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
953)
954
955target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300956 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100957 gpr
958)
959
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300960foreach(_hdr
961 include/grpc/byte_buffer.h
962 include/grpc/byte_buffer_reader.h
963 include/grpc/compression.h
964 include/grpc/grpc.h
965 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200966 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300967 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300968 include/grpc/impl/codegen/byte_buffer_reader.h
969 include/grpc/impl/codegen/compression_types.h
970 include/grpc/impl/codegen/connectivity_state.h
971 include/grpc/impl/codegen/grpc_types.h
972 include/grpc/impl/codegen/propagation_bits.h
973 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300974 include/grpc/impl/codegen/atm.h
975 include/grpc/impl/codegen/atm_gcc_atomic.h
976 include/grpc/impl/codegen/atm_gcc_sync.h
977 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700978 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300979 include/grpc/impl/codegen/port_platform.h
980 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300981 include/grpc/impl/codegen/sync.h
982 include/grpc/impl/codegen/sync_generic.h
983 include/grpc/impl/codegen/sync_posix.h
984 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300985 include/grpc/census.h
986)
987 string(REPLACE "include/" "" _path ${_hdr})
988 get_filename_component(_path ${_path} PATH)
989 install(FILES ${_hdr}
990 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
991 )
992endforeach()
993
994
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300995if (gRPC_INSTALL)
996 install(TARGETS grpc_unsecure EXPORT gRPCTargets
997 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
998 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
999 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1000 )
1001endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001002
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001003
1004add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001005 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001006 src/cpp/client/secure_credentials.cc
1007 src/cpp/common/auth_property_iterator.cc
1008 src/cpp/common/secure_auth_context.cc
1009 src/cpp/common/secure_channel_arguments.cc
1010 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001011 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001012 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001013 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001014 src/cpp/client/client_context.cc
1015 src/cpp/client/create_channel.cc
1016 src/cpp/client/create_channel_internal.cc
1017 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001018 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001019 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001020 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001021 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001022 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001023 src/cpp/common/core_codegen.cc
1024 src/cpp/common/rpc_method.cc
1025 src/cpp/server/async_generic_service.cc
1026 src/cpp/server/create_default_thread_pool.cc
1027 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001028 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001029 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001030 src/cpp/server/server_context.cc
1031 src/cpp/server/server_credentials.cc
1032 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001033 src/cpp/util/byte_buffer_cc.cc
1034 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001035 src/cpp/util/status.cc
1036 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001037 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001038 src/core/lib/channel/channel_args.c
1039 src/core/lib/channel/channel_stack.c
1040 src/core/lib/channel/channel_stack_builder.c
1041 src/core/lib/channel/compress_filter.c
1042 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001043 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001044 src/core/lib/channel/http_client_filter.c
1045 src/core/lib/channel/http_server_filter.c
Mark D. Rothb71af5f2016-08-26 13:38:16 -07001046 src/core/lib/channel/message_size_filter.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001047 src/core/lib/compression/compression.c
1048 src/core/lib/compression/message_compress.c
1049 src/core/lib/debug/trace.c
1050 src/core/lib/http/format_request.c
1051 src/core/lib/http/httpcli.c
1052 src/core/lib/http/parser.c
1053 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001054 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001055 src/core/lib/iomgr/endpoint.c
1056 src/core/lib/iomgr/endpoint_pair_posix.c
1057 src/core/lib/iomgr/endpoint_pair_windows.c
1058 src/core/lib/iomgr/error.c
1059 src/core/lib/iomgr/ev_epoll_linux.c
1060 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1061 src/core/lib/iomgr/ev_poll_posix.c
1062 src/core/lib/iomgr/ev_posix.c
1063 src/core/lib/iomgr/exec_ctx.c
1064 src/core/lib/iomgr/executor.c
1065 src/core/lib/iomgr/iocp_windows.c
1066 src/core/lib/iomgr/iomgr.c
1067 src/core/lib/iomgr/iomgr_posix.c
1068 src/core/lib/iomgr/iomgr_windows.c
1069 src/core/lib/iomgr/load_file.c
1070 src/core/lib/iomgr/network_status_tracker.c
1071 src/core/lib/iomgr/polling_entity.c
1072 src/core/lib/iomgr/pollset_set_windows.c
1073 src/core/lib/iomgr/pollset_windows.c
1074 src/core/lib/iomgr/resolve_address_posix.c
1075 src/core/lib/iomgr/resolve_address_windows.c
1076 src/core/lib/iomgr/sockaddr_utils.c
1077 src/core/lib/iomgr/socket_utils_common_posix.c
1078 src/core/lib/iomgr/socket_utils_linux.c
1079 src/core/lib/iomgr/socket_utils_posix.c
1080 src/core/lib/iomgr/socket_windows.c
1081 src/core/lib/iomgr/tcp_client_posix.c
1082 src/core/lib/iomgr/tcp_client_windows.c
1083 src/core/lib/iomgr/tcp_posix.c
1084 src/core/lib/iomgr/tcp_server_posix.c
1085 src/core/lib/iomgr/tcp_server_windows.c
1086 src/core/lib/iomgr/tcp_windows.c
1087 src/core/lib/iomgr/time_averaged_stats.c
1088 src/core/lib/iomgr/timer.c
1089 src/core/lib/iomgr/timer_heap.c
1090 src/core/lib/iomgr/udp_server.c
1091 src/core/lib/iomgr/unix_sockets_posix.c
1092 src/core/lib/iomgr/unix_sockets_posix_noop.c
1093 src/core/lib/iomgr/wakeup_fd_eventfd.c
1094 src/core/lib/iomgr/wakeup_fd_nospecial.c
1095 src/core/lib/iomgr/wakeup_fd_pipe.c
1096 src/core/lib/iomgr/wakeup_fd_posix.c
1097 src/core/lib/iomgr/workqueue_posix.c
1098 src/core/lib/iomgr/workqueue_windows.c
1099 src/core/lib/json/json.c
1100 src/core/lib/json/json_reader.c
1101 src/core/lib/json/json_string.c
1102 src/core/lib/json/json_writer.c
1103 src/core/lib/surface/alarm.c
1104 src/core/lib/surface/api_trace.c
1105 src/core/lib/surface/byte_buffer.c
1106 src/core/lib/surface/byte_buffer_reader.c
1107 src/core/lib/surface/call.c
1108 src/core/lib/surface/call_details.c
1109 src/core/lib/surface/call_log_batch.c
1110 src/core/lib/surface/channel.c
1111 src/core/lib/surface/channel_init.c
1112 src/core/lib/surface/channel_ping.c
1113 src/core/lib/surface/channel_stack_type.c
1114 src/core/lib/surface/completion_queue.c
1115 src/core/lib/surface/event_string.c
1116 src/core/lib/surface/lame_client.c
1117 src/core/lib/surface/metadata_array.c
1118 src/core/lib/surface/server.c
1119 src/core/lib/surface/validate_metadata.c
1120 src/core/lib/surface/version.c
1121 src/core/lib/transport/byte_stream.c
1122 src/core/lib/transport/connectivity_state.c
1123 src/core/lib/transport/metadata.c
1124 src/core/lib/transport/metadata_batch.c
1125 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001126 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001127 src/core/lib/transport/transport.c
1128 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001129 src/cpp/codegen/codegen_init.cc
1130)
1131
1132target_include_directories(grpc++
1133 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1134 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1135 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1136 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001137 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001138 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1139)
1140
1141target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001142 ${_gRPC_BASELIB_LIBRARIES}
1143 ${_gRPC_SSL_LIBRARIES}
1144 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001145 grpc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001146 gpr
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001147)
1148
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001149foreach(_hdr
1150 include/grpc++/alarm.h
1151 include/grpc++/channel.h
1152 include/grpc++/client_context.h
1153 include/grpc++/completion_queue.h
1154 include/grpc++/create_channel.h
1155 include/grpc++/create_channel_posix.h
1156 include/grpc++/generic/async_generic_service.h
1157 include/grpc++/generic/generic_stub.h
1158 include/grpc++/grpc++.h
1159 include/grpc++/impl/call.h
1160 include/grpc++/impl/client_unary_call.h
1161 include/grpc++/impl/codegen/core_codegen.h
1162 include/grpc++/impl/grpc_library.h
1163 include/grpc++/impl/method_handler_impl.h
1164 include/grpc++/impl/rpc_method.h
1165 include/grpc++/impl/rpc_service_method.h
1166 include/grpc++/impl/serialization_traits.h
1167 include/grpc++/impl/server_builder_option.h
1168 include/grpc++/impl/server_builder_plugin.h
1169 include/grpc++/impl/server_initializer.h
1170 include/grpc++/impl/service_type.h
1171 include/grpc++/impl/sync.h
1172 include/grpc++/impl/sync_cxx11.h
1173 include/grpc++/impl/sync_no_cxx11.h
1174 include/grpc++/impl/thd.h
1175 include/grpc++/impl/thd_cxx11.h
1176 include/grpc++/impl/thd_no_cxx11.h
1177 include/grpc++/security/auth_context.h
1178 include/grpc++/security/auth_metadata_processor.h
1179 include/grpc++/security/credentials.h
1180 include/grpc++/security/server_credentials.h
1181 include/grpc++/server.h
1182 include/grpc++/server_builder.h
1183 include/grpc++/server_context.h
1184 include/grpc++/server_posix.h
1185 include/grpc++/support/async_stream.h
1186 include/grpc++/support/async_unary_call.h
1187 include/grpc++/support/byte_buffer.h
1188 include/grpc++/support/channel_arguments.h
1189 include/grpc++/support/config.h
1190 include/grpc++/support/slice.h
1191 include/grpc++/support/status.h
1192 include/grpc++/support/status_code_enum.h
1193 include/grpc++/support/string_ref.h
1194 include/grpc++/support/stub_options.h
1195 include/grpc++/support/sync_stream.h
1196 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001197 include/grpc/byte_buffer.h
1198 include/grpc/byte_buffer_reader.h
1199 include/grpc/compression.h
1200 include/grpc/grpc.h
1201 include/grpc/grpc_posix.h
1202 include/grpc/grpc_security_constants.h
1203 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001204 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
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001210 include/grpc/impl/codegen/atm.h
1211 include/grpc/impl/codegen/atm_gcc_atomic.h
1212 include/grpc/impl/codegen/atm_gcc_sync.h
1213 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001214 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001215 include/grpc/impl/codegen/port_platform.h
1216 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001217 include/grpc/impl/codegen/sync.h
1218 include/grpc/impl/codegen/sync_generic.h
1219 include/grpc/impl/codegen/sync_posix.h
1220 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001221 include/grpc++/impl/codegen/async_stream.h
1222 include/grpc++/impl/codegen/async_unary_call.h
1223 include/grpc++/impl/codegen/call.h
1224 include/grpc++/impl/codegen/call_hook.h
1225 include/grpc++/impl/codegen/channel_interface.h
1226 include/grpc++/impl/codegen/client_context.h
1227 include/grpc++/impl/codegen/client_unary_call.h
1228 include/grpc++/impl/codegen/completion_queue.h
1229 include/grpc++/impl/codegen/completion_queue_tag.h
1230 include/grpc++/impl/codegen/config.h
1231 include/grpc++/impl/codegen/core_codegen_interface.h
1232 include/grpc++/impl/codegen/create_auth_context.h
1233 include/grpc++/impl/codegen/grpc_library.h
1234 include/grpc++/impl/codegen/method_handler_impl.h
1235 include/grpc++/impl/codegen/rpc_method.h
1236 include/grpc++/impl/codegen/rpc_service_method.h
1237 include/grpc++/impl/codegen/security/auth_context.h
1238 include/grpc++/impl/codegen/serialization_traits.h
1239 include/grpc++/impl/codegen/server_context.h
1240 include/grpc++/impl/codegen/server_interface.h
1241 include/grpc++/impl/codegen/service_type.h
1242 include/grpc++/impl/codegen/status.h
1243 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001244 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001245 include/grpc++/impl/codegen/string_ref.h
1246 include/grpc++/impl/codegen/stub_options.h
1247 include/grpc++/impl/codegen/sync.h
1248 include/grpc++/impl/codegen/sync_cxx11.h
1249 include/grpc++/impl/codegen/sync_no_cxx11.h
1250 include/grpc++/impl/codegen/sync_stream.h
1251 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001252)
1253 string(REPLACE "include/" "" _path ${_hdr})
1254 get_filename_component(_path ${_path} PATH)
1255 install(FILES ${_hdr}
1256 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1257 )
1258endforeach()
1259
1260
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001261if (gRPC_INSTALL)
1262 install(TARGETS grpc++ EXPORT gRPCTargets
1263 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1264 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1265 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1266 )
1267endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001268
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001269
1270add_library(grpc++_reflection
1271 src/cpp/ext/proto_server_reflection.cc
1272 src/cpp/ext/proto_server_reflection_plugin.cc
1273 src/cpp/ext/reflection.grpc.pb.cc
1274 src/cpp/ext/reflection.pb.cc
1275)
1276
1277target_include_directories(grpc++_reflection
1278 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1279 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1280 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1281 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001282 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001283 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1284)
1285
1286target_link_libraries(grpc++_reflection
1287 grpc++
1288)
1289
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001290foreach(_hdr
1291 include/grpc++/ext/proto_server_reflection_plugin.h
1292 include/grpc++/ext/reflection.grpc.pb.h
1293 include/grpc++/ext/reflection.pb.h
1294 include/grpc++/impl/codegen/proto_utils.h
1295 include/grpc++/impl/codegen/async_stream.h
1296 include/grpc++/impl/codegen/async_unary_call.h
1297 include/grpc++/impl/codegen/call.h
1298 include/grpc++/impl/codegen/call_hook.h
1299 include/grpc++/impl/codegen/channel_interface.h
1300 include/grpc++/impl/codegen/client_context.h
1301 include/grpc++/impl/codegen/client_unary_call.h
1302 include/grpc++/impl/codegen/completion_queue.h
1303 include/grpc++/impl/codegen/completion_queue_tag.h
1304 include/grpc++/impl/codegen/config.h
1305 include/grpc++/impl/codegen/core_codegen_interface.h
1306 include/grpc++/impl/codegen/create_auth_context.h
1307 include/grpc++/impl/codegen/grpc_library.h
1308 include/grpc++/impl/codegen/method_handler_impl.h
1309 include/grpc++/impl/codegen/rpc_method.h
1310 include/grpc++/impl/codegen/rpc_service_method.h
1311 include/grpc++/impl/codegen/security/auth_context.h
1312 include/grpc++/impl/codegen/serialization_traits.h
1313 include/grpc++/impl/codegen/server_context.h
1314 include/grpc++/impl/codegen/server_interface.h
1315 include/grpc++/impl/codegen/service_type.h
1316 include/grpc++/impl/codegen/status.h
1317 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001318 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001319 include/grpc++/impl/codegen/string_ref.h
1320 include/grpc++/impl/codegen/stub_options.h
1321 include/grpc++/impl/codegen/sync.h
1322 include/grpc++/impl/codegen/sync_cxx11.h
1323 include/grpc++/impl/codegen/sync_no_cxx11.h
1324 include/grpc++/impl/codegen/sync_stream.h
1325 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001326 include/grpc/impl/codegen/byte_buffer_reader.h
1327 include/grpc/impl/codegen/compression_types.h
1328 include/grpc/impl/codegen/connectivity_state.h
1329 include/grpc/impl/codegen/grpc_types.h
1330 include/grpc/impl/codegen/propagation_bits.h
1331 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001332 include/grpc/impl/codegen/atm.h
1333 include/grpc/impl/codegen/atm_gcc_atomic.h
1334 include/grpc/impl/codegen/atm_gcc_sync.h
1335 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001336 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001337 include/grpc/impl/codegen/port_platform.h
1338 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001339 include/grpc/impl/codegen/sync.h
1340 include/grpc/impl/codegen/sync_generic.h
1341 include/grpc/impl/codegen/sync_posix.h
1342 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001343 include/grpc++/impl/codegen/config_protobuf.h
1344)
1345 string(REPLACE "include/" "" _path ${_hdr})
1346 get_filename_component(_path ${_path} PATH)
1347 install(FILES ${_hdr}
1348 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1349 )
1350endforeach()
1351
1352
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001353if (gRPC_INSTALL)
1354 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1355 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1356 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1357 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1358 )
1359endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001360
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001361
1362add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001363 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001364 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001365 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001366 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001367 src/cpp/client/client_context.cc
1368 src/cpp/client/create_channel.cc
1369 src/cpp/client/create_channel_internal.cc
1370 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001371 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001372 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001373 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001374 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001375 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001376 src/cpp/common/core_codegen.cc
1377 src/cpp/common/rpc_method.cc
1378 src/cpp/server/async_generic_service.cc
1379 src/cpp/server/create_default_thread_pool.cc
1380 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001381 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001382 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001383 src/cpp/server/server_context.cc
1384 src/cpp/server/server_credentials.cc
1385 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001386 src/cpp/util/byte_buffer_cc.cc
1387 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001388 src/cpp/util/status.cc
1389 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001390 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001391 src/core/lib/channel/channel_args.c
1392 src/core/lib/channel/channel_stack.c
1393 src/core/lib/channel/channel_stack_builder.c
1394 src/core/lib/channel/compress_filter.c
1395 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001396 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001397 src/core/lib/channel/http_client_filter.c
1398 src/core/lib/channel/http_server_filter.c
Mark D. Rothb71af5f2016-08-26 13:38:16 -07001399 src/core/lib/channel/message_size_filter.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001400 src/core/lib/compression/compression.c
1401 src/core/lib/compression/message_compress.c
1402 src/core/lib/debug/trace.c
1403 src/core/lib/http/format_request.c
1404 src/core/lib/http/httpcli.c
1405 src/core/lib/http/parser.c
1406 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001407 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001408 src/core/lib/iomgr/endpoint.c
1409 src/core/lib/iomgr/endpoint_pair_posix.c
1410 src/core/lib/iomgr/endpoint_pair_windows.c
1411 src/core/lib/iomgr/error.c
1412 src/core/lib/iomgr/ev_epoll_linux.c
1413 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1414 src/core/lib/iomgr/ev_poll_posix.c
1415 src/core/lib/iomgr/ev_posix.c
1416 src/core/lib/iomgr/exec_ctx.c
1417 src/core/lib/iomgr/executor.c
1418 src/core/lib/iomgr/iocp_windows.c
1419 src/core/lib/iomgr/iomgr.c
1420 src/core/lib/iomgr/iomgr_posix.c
1421 src/core/lib/iomgr/iomgr_windows.c
1422 src/core/lib/iomgr/load_file.c
1423 src/core/lib/iomgr/network_status_tracker.c
1424 src/core/lib/iomgr/polling_entity.c
1425 src/core/lib/iomgr/pollset_set_windows.c
1426 src/core/lib/iomgr/pollset_windows.c
1427 src/core/lib/iomgr/resolve_address_posix.c
1428 src/core/lib/iomgr/resolve_address_windows.c
1429 src/core/lib/iomgr/sockaddr_utils.c
1430 src/core/lib/iomgr/socket_utils_common_posix.c
1431 src/core/lib/iomgr/socket_utils_linux.c
1432 src/core/lib/iomgr/socket_utils_posix.c
1433 src/core/lib/iomgr/socket_windows.c
1434 src/core/lib/iomgr/tcp_client_posix.c
1435 src/core/lib/iomgr/tcp_client_windows.c
1436 src/core/lib/iomgr/tcp_posix.c
1437 src/core/lib/iomgr/tcp_server_posix.c
1438 src/core/lib/iomgr/tcp_server_windows.c
1439 src/core/lib/iomgr/tcp_windows.c
1440 src/core/lib/iomgr/time_averaged_stats.c
1441 src/core/lib/iomgr/timer.c
1442 src/core/lib/iomgr/timer_heap.c
1443 src/core/lib/iomgr/udp_server.c
1444 src/core/lib/iomgr/unix_sockets_posix.c
1445 src/core/lib/iomgr/unix_sockets_posix_noop.c
1446 src/core/lib/iomgr/wakeup_fd_eventfd.c
1447 src/core/lib/iomgr/wakeup_fd_nospecial.c
1448 src/core/lib/iomgr/wakeup_fd_pipe.c
1449 src/core/lib/iomgr/wakeup_fd_posix.c
1450 src/core/lib/iomgr/workqueue_posix.c
1451 src/core/lib/iomgr/workqueue_windows.c
1452 src/core/lib/json/json.c
1453 src/core/lib/json/json_reader.c
1454 src/core/lib/json/json_string.c
1455 src/core/lib/json/json_writer.c
1456 src/core/lib/surface/alarm.c
1457 src/core/lib/surface/api_trace.c
1458 src/core/lib/surface/byte_buffer.c
1459 src/core/lib/surface/byte_buffer_reader.c
1460 src/core/lib/surface/call.c
1461 src/core/lib/surface/call_details.c
1462 src/core/lib/surface/call_log_batch.c
1463 src/core/lib/surface/channel.c
1464 src/core/lib/surface/channel_init.c
1465 src/core/lib/surface/channel_ping.c
1466 src/core/lib/surface/channel_stack_type.c
1467 src/core/lib/surface/completion_queue.c
1468 src/core/lib/surface/event_string.c
1469 src/core/lib/surface/lame_client.c
1470 src/core/lib/surface/metadata_array.c
1471 src/core/lib/surface/server.c
1472 src/core/lib/surface/validate_metadata.c
1473 src/core/lib/surface/version.c
1474 src/core/lib/transport/byte_stream.c
1475 src/core/lib/transport/connectivity_state.c
1476 src/core/lib/transport/metadata.c
1477 src/core/lib/transport/metadata_batch.c
1478 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001479 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001480 src/core/lib/transport/transport.c
1481 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001482 src/cpp/codegen/codegen_init.cc
1483)
1484
1485target_include_directories(grpc++_unsecure
1486 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1487 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1488 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1489 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001490 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001491 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1492)
1493
1494target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001495 ${_gRPC_BASELIB_LIBRARIES}
1496 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001497 gpr
1498 grpc_unsecure
1499)
1500
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001501foreach(_hdr
1502 include/grpc++/alarm.h
1503 include/grpc++/channel.h
1504 include/grpc++/client_context.h
1505 include/grpc++/completion_queue.h
1506 include/grpc++/create_channel.h
1507 include/grpc++/create_channel_posix.h
1508 include/grpc++/generic/async_generic_service.h
1509 include/grpc++/generic/generic_stub.h
1510 include/grpc++/grpc++.h
1511 include/grpc++/impl/call.h
1512 include/grpc++/impl/client_unary_call.h
1513 include/grpc++/impl/codegen/core_codegen.h
1514 include/grpc++/impl/grpc_library.h
1515 include/grpc++/impl/method_handler_impl.h
1516 include/grpc++/impl/rpc_method.h
1517 include/grpc++/impl/rpc_service_method.h
1518 include/grpc++/impl/serialization_traits.h
1519 include/grpc++/impl/server_builder_option.h
1520 include/grpc++/impl/server_builder_plugin.h
1521 include/grpc++/impl/server_initializer.h
1522 include/grpc++/impl/service_type.h
1523 include/grpc++/impl/sync.h
1524 include/grpc++/impl/sync_cxx11.h
1525 include/grpc++/impl/sync_no_cxx11.h
1526 include/grpc++/impl/thd.h
1527 include/grpc++/impl/thd_cxx11.h
1528 include/grpc++/impl/thd_no_cxx11.h
1529 include/grpc++/security/auth_context.h
1530 include/grpc++/security/auth_metadata_processor.h
1531 include/grpc++/security/credentials.h
1532 include/grpc++/security/server_credentials.h
1533 include/grpc++/server.h
1534 include/grpc++/server_builder.h
1535 include/grpc++/server_context.h
1536 include/grpc++/server_posix.h
1537 include/grpc++/support/async_stream.h
1538 include/grpc++/support/async_unary_call.h
1539 include/grpc++/support/byte_buffer.h
1540 include/grpc++/support/channel_arguments.h
1541 include/grpc++/support/config.h
1542 include/grpc++/support/slice.h
1543 include/grpc++/support/status.h
1544 include/grpc++/support/status_code_enum.h
1545 include/grpc++/support/string_ref.h
1546 include/grpc++/support/stub_options.h
1547 include/grpc++/support/sync_stream.h
1548 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001549 include/grpc/byte_buffer.h
1550 include/grpc/byte_buffer_reader.h
1551 include/grpc/compression.h
1552 include/grpc/grpc.h
1553 include/grpc/grpc_posix.h
1554 include/grpc/grpc_security_constants.h
1555 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001556 include/grpc/impl/codegen/byte_buffer_reader.h
1557 include/grpc/impl/codegen/compression_types.h
1558 include/grpc/impl/codegen/connectivity_state.h
1559 include/grpc/impl/codegen/grpc_types.h
1560 include/grpc/impl/codegen/propagation_bits.h
1561 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001562 include/grpc/impl/codegen/atm.h
1563 include/grpc/impl/codegen/atm_gcc_atomic.h
1564 include/grpc/impl/codegen/atm_gcc_sync.h
1565 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001566 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001567 include/grpc/impl/codegen/port_platform.h
1568 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001569 include/grpc/impl/codegen/sync.h
1570 include/grpc/impl/codegen/sync_generic.h
1571 include/grpc/impl/codegen/sync_posix.h
1572 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001573 include/grpc++/impl/codegen/async_stream.h
1574 include/grpc++/impl/codegen/async_unary_call.h
1575 include/grpc++/impl/codegen/call.h
1576 include/grpc++/impl/codegen/call_hook.h
1577 include/grpc++/impl/codegen/channel_interface.h
1578 include/grpc++/impl/codegen/client_context.h
1579 include/grpc++/impl/codegen/client_unary_call.h
1580 include/grpc++/impl/codegen/completion_queue.h
1581 include/grpc++/impl/codegen/completion_queue_tag.h
1582 include/grpc++/impl/codegen/config.h
1583 include/grpc++/impl/codegen/core_codegen_interface.h
1584 include/grpc++/impl/codegen/create_auth_context.h
1585 include/grpc++/impl/codegen/grpc_library.h
1586 include/grpc++/impl/codegen/method_handler_impl.h
1587 include/grpc++/impl/codegen/rpc_method.h
1588 include/grpc++/impl/codegen/rpc_service_method.h
1589 include/grpc++/impl/codegen/security/auth_context.h
1590 include/grpc++/impl/codegen/serialization_traits.h
1591 include/grpc++/impl/codegen/server_context.h
1592 include/grpc++/impl/codegen/server_interface.h
1593 include/grpc++/impl/codegen/service_type.h
1594 include/grpc++/impl/codegen/status.h
1595 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001596 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001597 include/grpc++/impl/codegen/string_ref.h
1598 include/grpc++/impl/codegen/stub_options.h
1599 include/grpc++/impl/codegen/sync.h
1600 include/grpc++/impl/codegen/sync_cxx11.h
1601 include/grpc++/impl/codegen/sync_no_cxx11.h
1602 include/grpc++/impl/codegen/sync_stream.h
1603 include/grpc++/impl/codegen/time.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
1612
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001613if (gRPC_INSTALL)
1614 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1615 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1616 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1617 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1618 )
1619endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001620
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001621
1622add_library(grpc_plugin_support
1623 src/compiler/cpp_generator.cc
1624 src/compiler/csharp_generator.cc
1625 src/compiler/node_generator.cc
1626 src/compiler/objective_c_generator.cc
1627 src/compiler/python_generator.cc
1628 src/compiler/ruby_generator.cc
1629)
1630
1631target_include_directories(grpc_plugin_support
1632 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1633 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1634 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1635 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001636 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001637 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1638)
1639
1640target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001641 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001642)
1643
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001644foreach(_hdr
1645 include/grpc++/impl/codegen/config_protobuf.h
1646)
1647 string(REPLACE "include/" "" _path ${_hdr})
1648 get_filename_component(_path ${_path} PATH)
1649 install(FILES ${_hdr}
1650 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1651 )
1652endforeach()
1653
1654
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001655if (gRPC_INSTALL)
1656 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1657 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1658 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1659 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1660 )
1661endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001662
1663
1664add_library(grpc_csharp_ext
1665 src/csharp/ext/grpc_csharp_ext.c
1666)
1667
1668target_include_directories(grpc_csharp_ext
1669 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1670 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1671 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1672 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001673 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001674 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1675)
1676
1677target_link_libraries(grpc_csharp_ext
1678 grpc
1679 gpr
1680)
1681
1682
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001683
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001684if (gRPC_INSTALL)
1685 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1686 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1687 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1688 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1689 )
1690endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001691
1692
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001693
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001694add_executable(gen_hpack_tables
1695 tools/codegen/core/gen_hpack_tables.c
1696)
1697
1698target_include_directories(gen_hpack_tables
1699 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1700 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1701 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1702 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1703 PRIVATE ${ZLIB_ROOT_DIR}
1704 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1705)
1706
1707target_link_libraries(gen_hpack_tables
1708 gpr
1709 grpc
1710)
1711
1712
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001713if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001714 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1715 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1716 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1717 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1718 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001719endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001720
1721
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001722add_executable(gen_legal_metadata_characters
1723 tools/codegen/core/gen_legal_metadata_characters.c
1724)
1725
1726target_include_directories(gen_legal_metadata_characters
1727 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1728 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1729 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1730 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1731 PRIVATE ${ZLIB_ROOT_DIR}
1732 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1733)
1734
1735
1736
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001737if (gRPC_INSTALL)
1738 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1739 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1740 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1741 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1742 )
1743endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001744
1745
Craig Tiller1c7a8422016-08-18 11:13:11 -07001746add_executable(gen_percent_encoding_tables
1747 tools/codegen/core/gen_percent_encoding_tables.c
1748)
1749
1750target_include_directories(gen_percent_encoding_tables
1751 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1752 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1753 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1754 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1755 PRIVATE ${ZLIB_ROOT_DIR}
1756 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1757)
1758
1759
1760
Mark D. Roth164f0e92016-09-07 09:14:50 -07001761if (gRPC_INSTALL)
1762 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1763 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1764 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1765 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1766 )
1767endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001768
1769
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001770add_executable(grpc_create_jwt
1771 test/core/security/create_jwt.c
1772)
1773
1774target_include_directories(grpc_create_jwt
1775 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1776 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1777 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1778 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1779 PRIVATE ${ZLIB_ROOT_DIR}
1780 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1781)
1782
1783target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001784 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001785 grpc
1786 gpr
1787)
1788
1789
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001790if (gRPC_INSTALL)
1791 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1792 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1793 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1794 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1795 )
1796endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001797
1798
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001799add_executable(grpc_print_google_default_creds_token
1800 test/core/security/print_google_default_creds_token.c
1801)
1802
1803target_include_directories(grpc_print_google_default_creds_token
1804 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1805 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1806 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1807 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1808 PRIVATE ${ZLIB_ROOT_DIR}
1809 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1810)
1811
1812target_link_libraries(grpc_print_google_default_creds_token
1813 grpc
1814 gpr
1815)
1816
1817
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001818if (gRPC_INSTALL)
1819 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1820 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1821 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1822 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1823 )
1824endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001825
1826
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001827add_executable(grpc_verify_jwt
1828 test/core/security/verify_jwt.c
1829)
1830
1831target_include_directories(grpc_verify_jwt
1832 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1833 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1834 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1835 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1836 PRIVATE ${ZLIB_ROOT_DIR}
1837 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1838)
1839
1840target_link_libraries(grpc_verify_jwt
1841 grpc
1842 gpr
1843)
1844
1845
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001846if (gRPC_INSTALL)
1847 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1848 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1849 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1850 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1851 )
1852endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001853
1854
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001855add_executable(grpc_cpp_plugin
1856 src/compiler/cpp_plugin.cc
1857)
1858
1859target_include_directories(grpc_cpp_plugin
1860 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1861 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1862 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1863 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1864 PRIVATE ${ZLIB_ROOT_DIR}
1865 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1866)
1867
1868target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001869 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001870 grpc_plugin_support
1871)
1872
1873
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001874if (gRPC_INSTALL)
1875 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1876 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1877 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1878 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1879 )
1880endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001881
1882
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001883add_executable(grpc_csharp_plugin
1884 src/compiler/csharp_plugin.cc
1885)
1886
1887target_include_directories(grpc_csharp_plugin
1888 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1889 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1890 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1891 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1892 PRIVATE ${ZLIB_ROOT_DIR}
1893 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1894)
1895
1896target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001897 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001898 grpc_plugin_support
1899)
1900
1901
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001902if (gRPC_INSTALL)
1903 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1904 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1905 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1906 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1907 )
1908endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001909
1910
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001911add_executable(grpc_node_plugin
1912 src/compiler/node_plugin.cc
1913)
1914
1915target_include_directories(grpc_node_plugin
1916 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1918 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1919 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1920 PRIVATE ${ZLIB_ROOT_DIR}
1921 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1922)
1923
1924target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001925 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001926 grpc_plugin_support
1927)
1928
1929
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001930if (gRPC_INSTALL)
1931 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1932 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1933 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1934 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1935 )
1936endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001937
1938
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001939add_executable(grpc_objective_c_plugin
1940 src/compiler/objective_c_plugin.cc
1941)
1942
1943target_include_directories(grpc_objective_c_plugin
1944 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1945 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1946 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1947 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1948 PRIVATE ${ZLIB_ROOT_DIR}
1949 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1950)
1951
1952target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001953 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001954 grpc_plugin_support
1955)
1956
1957
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001958if (gRPC_INSTALL)
1959 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1960 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1961 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1962 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1963 )
1964endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001965
1966
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001967add_executable(grpc_python_plugin
1968 src/compiler/python_plugin.cc
1969)
1970
1971target_include_directories(grpc_python_plugin
1972 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1973 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1974 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1975 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1976 PRIVATE ${ZLIB_ROOT_DIR}
1977 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1978)
1979
1980target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001981 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001982 grpc_plugin_support
1983)
1984
1985
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001986if (gRPC_INSTALL)
1987 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
1988 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1989 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1990 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1991 )
1992endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001993
1994
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001995add_executable(grpc_ruby_plugin
1996 src/compiler/ruby_plugin.cc
1997)
1998
1999target_include_directories(grpc_ruby_plugin
2000 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2001 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2002 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2003 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2004 PRIVATE ${ZLIB_ROOT_DIR}
2005 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2006)
2007
2008target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002009 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002010 grpc_plugin_support
2011)
2012
2013
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002014if (gRPC_INSTALL)
2015 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2016 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2017 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2018 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2019 )
2020endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002021
2022
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002023
2024
2025
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002026
2027
2028
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002029if (gRPC_INSTALL)
2030 install(EXPORT gRPCTargets
2031 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2032 NAMESPACE gRPC::
2033 )
2034endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002035
2036foreach(_config gRPCConfig gRPCConfigVersion)
2037 configure_file(tools/cmake/${_config}.cmake.in
2038 ${_config}.cmake @ONLY)
2039 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2040 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2041 )
2042endforeach()