blob: 6dd650d20f999b84dd0696dff7613d1dfcf0e5d6 [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")
77endif()
78
79if("${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()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030098endif()
99
100if("${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()
137
138if("${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")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100170endif()
171
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
Sree Kuchibhotla9e656a42016-07-18 13:01:42 -07001025 src/cpp/rpcmanager/grpc_rpc_manager.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001026 src/cpp/server/async_generic_service.cc
1027 src/cpp/server/create_default_thread_pool.cc
1028 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001029 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001030 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001031 src/cpp/server/server_context.cc
1032 src/cpp/server/server_credentials.cc
1033 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001034 src/cpp/util/byte_buffer_cc.cc
1035 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001036 src/cpp/util/status.cc
1037 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001038 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001039 src/core/lib/channel/channel_args.c
1040 src/core/lib/channel/channel_stack.c
1041 src/core/lib/channel/channel_stack_builder.c
1042 src/core/lib/channel/compress_filter.c
1043 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001044 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001045 src/core/lib/channel/http_client_filter.c
1046 src/core/lib/channel/http_server_filter.c
Mark D. Rothb71af5f2016-08-26 13:38:16 -07001047 src/core/lib/channel/message_size_filter.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001048 src/core/lib/compression/compression.c
1049 src/core/lib/compression/message_compress.c
1050 src/core/lib/debug/trace.c
1051 src/core/lib/http/format_request.c
1052 src/core/lib/http/httpcli.c
1053 src/core/lib/http/parser.c
1054 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001055 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001056 src/core/lib/iomgr/endpoint.c
1057 src/core/lib/iomgr/endpoint_pair_posix.c
1058 src/core/lib/iomgr/endpoint_pair_windows.c
1059 src/core/lib/iomgr/error.c
1060 src/core/lib/iomgr/ev_epoll_linux.c
1061 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1062 src/core/lib/iomgr/ev_poll_posix.c
1063 src/core/lib/iomgr/ev_posix.c
1064 src/core/lib/iomgr/exec_ctx.c
1065 src/core/lib/iomgr/executor.c
1066 src/core/lib/iomgr/iocp_windows.c
1067 src/core/lib/iomgr/iomgr.c
1068 src/core/lib/iomgr/iomgr_posix.c
1069 src/core/lib/iomgr/iomgr_windows.c
1070 src/core/lib/iomgr/load_file.c
1071 src/core/lib/iomgr/network_status_tracker.c
1072 src/core/lib/iomgr/polling_entity.c
1073 src/core/lib/iomgr/pollset_set_windows.c
1074 src/core/lib/iomgr/pollset_windows.c
1075 src/core/lib/iomgr/resolve_address_posix.c
1076 src/core/lib/iomgr/resolve_address_windows.c
1077 src/core/lib/iomgr/sockaddr_utils.c
1078 src/core/lib/iomgr/socket_utils_common_posix.c
1079 src/core/lib/iomgr/socket_utils_linux.c
1080 src/core/lib/iomgr/socket_utils_posix.c
1081 src/core/lib/iomgr/socket_windows.c
1082 src/core/lib/iomgr/tcp_client_posix.c
1083 src/core/lib/iomgr/tcp_client_windows.c
1084 src/core/lib/iomgr/tcp_posix.c
1085 src/core/lib/iomgr/tcp_server_posix.c
1086 src/core/lib/iomgr/tcp_server_windows.c
1087 src/core/lib/iomgr/tcp_windows.c
1088 src/core/lib/iomgr/time_averaged_stats.c
1089 src/core/lib/iomgr/timer.c
1090 src/core/lib/iomgr/timer_heap.c
1091 src/core/lib/iomgr/udp_server.c
1092 src/core/lib/iomgr/unix_sockets_posix.c
1093 src/core/lib/iomgr/unix_sockets_posix_noop.c
1094 src/core/lib/iomgr/wakeup_fd_eventfd.c
1095 src/core/lib/iomgr/wakeup_fd_nospecial.c
1096 src/core/lib/iomgr/wakeup_fd_pipe.c
1097 src/core/lib/iomgr/wakeup_fd_posix.c
1098 src/core/lib/iomgr/workqueue_posix.c
1099 src/core/lib/iomgr/workqueue_windows.c
1100 src/core/lib/json/json.c
1101 src/core/lib/json/json_reader.c
1102 src/core/lib/json/json_string.c
1103 src/core/lib/json/json_writer.c
1104 src/core/lib/surface/alarm.c
1105 src/core/lib/surface/api_trace.c
1106 src/core/lib/surface/byte_buffer.c
1107 src/core/lib/surface/byte_buffer_reader.c
1108 src/core/lib/surface/call.c
1109 src/core/lib/surface/call_details.c
1110 src/core/lib/surface/call_log_batch.c
1111 src/core/lib/surface/channel.c
1112 src/core/lib/surface/channel_init.c
1113 src/core/lib/surface/channel_ping.c
1114 src/core/lib/surface/channel_stack_type.c
1115 src/core/lib/surface/completion_queue.c
1116 src/core/lib/surface/event_string.c
1117 src/core/lib/surface/lame_client.c
1118 src/core/lib/surface/metadata_array.c
1119 src/core/lib/surface/server.c
1120 src/core/lib/surface/validate_metadata.c
1121 src/core/lib/surface/version.c
1122 src/core/lib/transport/byte_stream.c
1123 src/core/lib/transport/connectivity_state.c
1124 src/core/lib/transport/metadata.c
1125 src/core/lib/transport/metadata_batch.c
1126 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001127 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001128 src/core/lib/transport/transport.c
1129 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001130 src/cpp/codegen/codegen_init.cc
1131)
1132
1133target_include_directories(grpc++
1134 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1135 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1136 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1137 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001138 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001139 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1140)
1141
1142target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001143 ${_gRPC_BASELIB_LIBRARIES}
1144 ${_gRPC_SSL_LIBRARIES}
1145 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001146 grpc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001147 gpr
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001148)
1149
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001150foreach(_hdr
1151 include/grpc++/alarm.h
1152 include/grpc++/channel.h
1153 include/grpc++/client_context.h
1154 include/grpc++/completion_queue.h
1155 include/grpc++/create_channel.h
1156 include/grpc++/create_channel_posix.h
1157 include/grpc++/generic/async_generic_service.h
1158 include/grpc++/generic/generic_stub.h
1159 include/grpc++/grpc++.h
1160 include/grpc++/impl/call.h
1161 include/grpc++/impl/client_unary_call.h
1162 include/grpc++/impl/codegen/core_codegen.h
1163 include/grpc++/impl/grpc_library.h
1164 include/grpc++/impl/method_handler_impl.h
1165 include/grpc++/impl/rpc_method.h
1166 include/grpc++/impl/rpc_service_method.h
1167 include/grpc++/impl/serialization_traits.h
1168 include/grpc++/impl/server_builder_option.h
1169 include/grpc++/impl/server_builder_plugin.h
1170 include/grpc++/impl/server_initializer.h
1171 include/grpc++/impl/service_type.h
1172 include/grpc++/impl/sync.h
1173 include/grpc++/impl/sync_cxx11.h
1174 include/grpc++/impl/sync_no_cxx11.h
1175 include/grpc++/impl/thd.h
1176 include/grpc++/impl/thd_cxx11.h
1177 include/grpc++/impl/thd_no_cxx11.h
1178 include/grpc++/security/auth_context.h
1179 include/grpc++/security/auth_metadata_processor.h
1180 include/grpc++/security/credentials.h
1181 include/grpc++/security/server_credentials.h
1182 include/grpc++/server.h
1183 include/grpc++/server_builder.h
1184 include/grpc++/server_context.h
1185 include/grpc++/server_posix.h
1186 include/grpc++/support/async_stream.h
1187 include/grpc++/support/async_unary_call.h
1188 include/grpc++/support/byte_buffer.h
1189 include/grpc++/support/channel_arguments.h
1190 include/grpc++/support/config.h
1191 include/grpc++/support/slice.h
1192 include/grpc++/support/status.h
1193 include/grpc++/support/status_code_enum.h
1194 include/grpc++/support/string_ref.h
1195 include/grpc++/support/stub_options.h
1196 include/grpc++/support/sync_stream.h
1197 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001198 include/grpc/byte_buffer.h
1199 include/grpc/byte_buffer_reader.h
1200 include/grpc/compression.h
1201 include/grpc/grpc.h
1202 include/grpc/grpc_posix.h
1203 include/grpc/grpc_security_constants.h
1204 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001205 include/grpc/impl/codegen/byte_buffer_reader.h
1206 include/grpc/impl/codegen/compression_types.h
1207 include/grpc/impl/codegen/connectivity_state.h
1208 include/grpc/impl/codegen/grpc_types.h
1209 include/grpc/impl/codegen/propagation_bits.h
1210 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001211 include/grpc/impl/codegen/atm.h
1212 include/grpc/impl/codegen/atm_gcc_atomic.h
1213 include/grpc/impl/codegen/atm_gcc_sync.h
1214 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001215 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001216 include/grpc/impl/codegen/port_platform.h
1217 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001218 include/grpc/impl/codegen/sync.h
1219 include/grpc/impl/codegen/sync_generic.h
1220 include/grpc/impl/codegen/sync_posix.h
1221 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001222 include/grpc++/impl/codegen/async_stream.h
1223 include/grpc++/impl/codegen/async_unary_call.h
1224 include/grpc++/impl/codegen/call.h
1225 include/grpc++/impl/codegen/call_hook.h
1226 include/grpc++/impl/codegen/channel_interface.h
1227 include/grpc++/impl/codegen/client_context.h
1228 include/grpc++/impl/codegen/client_unary_call.h
1229 include/grpc++/impl/codegen/completion_queue.h
1230 include/grpc++/impl/codegen/completion_queue_tag.h
1231 include/grpc++/impl/codegen/config.h
1232 include/grpc++/impl/codegen/core_codegen_interface.h
1233 include/grpc++/impl/codegen/create_auth_context.h
1234 include/grpc++/impl/codegen/grpc_library.h
1235 include/grpc++/impl/codegen/method_handler_impl.h
1236 include/grpc++/impl/codegen/rpc_method.h
1237 include/grpc++/impl/codegen/rpc_service_method.h
1238 include/grpc++/impl/codegen/security/auth_context.h
1239 include/grpc++/impl/codegen/serialization_traits.h
1240 include/grpc++/impl/codegen/server_context.h
1241 include/grpc++/impl/codegen/server_interface.h
1242 include/grpc++/impl/codegen/service_type.h
1243 include/grpc++/impl/codegen/status.h
1244 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001245 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001246 include/grpc++/impl/codegen/string_ref.h
1247 include/grpc++/impl/codegen/stub_options.h
1248 include/grpc++/impl/codegen/sync.h
1249 include/grpc++/impl/codegen/sync_cxx11.h
1250 include/grpc++/impl/codegen/sync_no_cxx11.h
1251 include/grpc++/impl/codegen/sync_stream.h
1252 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001253)
1254 string(REPLACE "include/" "" _path ${_hdr})
1255 get_filename_component(_path ${_path} PATH)
1256 install(FILES ${_hdr}
1257 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1258 )
1259endforeach()
1260
1261
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001262if (gRPC_INSTALL)
1263 install(TARGETS grpc++ EXPORT gRPCTargets
1264 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1265 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1266 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1267 )
1268endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001269
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001270
1271add_library(grpc++_reflection
1272 src/cpp/ext/proto_server_reflection.cc
1273 src/cpp/ext/proto_server_reflection_plugin.cc
1274 src/cpp/ext/reflection.grpc.pb.cc
1275 src/cpp/ext/reflection.pb.cc
1276)
1277
1278target_include_directories(grpc++_reflection
1279 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1280 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1281 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1282 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001283 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001284 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1285)
1286
1287target_link_libraries(grpc++_reflection
1288 grpc++
1289)
1290
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001291foreach(_hdr
1292 include/grpc++/ext/proto_server_reflection_plugin.h
1293 include/grpc++/ext/reflection.grpc.pb.h
1294 include/grpc++/ext/reflection.pb.h
1295 include/grpc++/impl/codegen/proto_utils.h
1296 include/grpc++/impl/codegen/async_stream.h
1297 include/grpc++/impl/codegen/async_unary_call.h
1298 include/grpc++/impl/codegen/call.h
1299 include/grpc++/impl/codegen/call_hook.h
1300 include/grpc++/impl/codegen/channel_interface.h
1301 include/grpc++/impl/codegen/client_context.h
1302 include/grpc++/impl/codegen/client_unary_call.h
1303 include/grpc++/impl/codegen/completion_queue.h
1304 include/grpc++/impl/codegen/completion_queue_tag.h
1305 include/grpc++/impl/codegen/config.h
1306 include/grpc++/impl/codegen/core_codegen_interface.h
1307 include/grpc++/impl/codegen/create_auth_context.h
1308 include/grpc++/impl/codegen/grpc_library.h
1309 include/grpc++/impl/codegen/method_handler_impl.h
1310 include/grpc++/impl/codegen/rpc_method.h
1311 include/grpc++/impl/codegen/rpc_service_method.h
1312 include/grpc++/impl/codegen/security/auth_context.h
1313 include/grpc++/impl/codegen/serialization_traits.h
1314 include/grpc++/impl/codegen/server_context.h
1315 include/grpc++/impl/codegen/server_interface.h
1316 include/grpc++/impl/codegen/service_type.h
1317 include/grpc++/impl/codegen/status.h
1318 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001319 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001320 include/grpc++/impl/codegen/string_ref.h
1321 include/grpc++/impl/codegen/stub_options.h
1322 include/grpc++/impl/codegen/sync.h
1323 include/grpc++/impl/codegen/sync_cxx11.h
1324 include/grpc++/impl/codegen/sync_no_cxx11.h
1325 include/grpc++/impl/codegen/sync_stream.h
1326 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001327 include/grpc/impl/codegen/byte_buffer_reader.h
1328 include/grpc/impl/codegen/compression_types.h
1329 include/grpc/impl/codegen/connectivity_state.h
1330 include/grpc/impl/codegen/grpc_types.h
1331 include/grpc/impl/codegen/propagation_bits.h
1332 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001333 include/grpc/impl/codegen/atm.h
1334 include/grpc/impl/codegen/atm_gcc_atomic.h
1335 include/grpc/impl/codegen/atm_gcc_sync.h
1336 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001337 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001338 include/grpc/impl/codegen/port_platform.h
1339 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001340 include/grpc/impl/codegen/sync.h
1341 include/grpc/impl/codegen/sync_generic.h
1342 include/grpc/impl/codegen/sync_posix.h
1343 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001344 include/grpc++/impl/codegen/config_protobuf.h
1345)
1346 string(REPLACE "include/" "" _path ${_hdr})
1347 get_filename_component(_path ${_path} PATH)
1348 install(FILES ${_hdr}
1349 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1350 )
1351endforeach()
1352
1353
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001354if (gRPC_INSTALL)
1355 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1356 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1357 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1358 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1359 )
1360endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001361
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001362
1363add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001364 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001365 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001366 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001367 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001368 src/cpp/client/client_context.cc
1369 src/cpp/client/create_channel.cc
1370 src/cpp/client/create_channel_internal.cc
1371 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001372 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001373 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001374 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001375 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001376 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001377 src/cpp/common/core_codegen.cc
1378 src/cpp/common/rpc_method.cc
Sree Kuchibhotla9e656a42016-07-18 13:01:42 -07001379 src/cpp/rpcmanager/grpc_rpc_manager.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001380 src/cpp/server/async_generic_service.cc
1381 src/cpp/server/create_default_thread_pool.cc
1382 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001383 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001384 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001385 src/cpp/server/server_context.cc
1386 src/cpp/server/server_credentials.cc
1387 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001388 src/cpp/util/byte_buffer_cc.cc
1389 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001390 src/cpp/util/status.cc
1391 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001392 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001393 src/core/lib/channel/channel_args.c
1394 src/core/lib/channel/channel_stack.c
1395 src/core/lib/channel/channel_stack_builder.c
1396 src/core/lib/channel/compress_filter.c
1397 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001398 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001399 src/core/lib/channel/http_client_filter.c
1400 src/core/lib/channel/http_server_filter.c
Mark D. Rothb71af5f2016-08-26 13:38:16 -07001401 src/core/lib/channel/message_size_filter.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001402 src/core/lib/compression/compression.c
1403 src/core/lib/compression/message_compress.c
1404 src/core/lib/debug/trace.c
1405 src/core/lib/http/format_request.c
1406 src/core/lib/http/httpcli.c
1407 src/core/lib/http/parser.c
1408 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001409 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001410 src/core/lib/iomgr/endpoint.c
1411 src/core/lib/iomgr/endpoint_pair_posix.c
1412 src/core/lib/iomgr/endpoint_pair_windows.c
1413 src/core/lib/iomgr/error.c
1414 src/core/lib/iomgr/ev_epoll_linux.c
1415 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1416 src/core/lib/iomgr/ev_poll_posix.c
1417 src/core/lib/iomgr/ev_posix.c
1418 src/core/lib/iomgr/exec_ctx.c
1419 src/core/lib/iomgr/executor.c
1420 src/core/lib/iomgr/iocp_windows.c
1421 src/core/lib/iomgr/iomgr.c
1422 src/core/lib/iomgr/iomgr_posix.c
1423 src/core/lib/iomgr/iomgr_windows.c
1424 src/core/lib/iomgr/load_file.c
1425 src/core/lib/iomgr/network_status_tracker.c
1426 src/core/lib/iomgr/polling_entity.c
1427 src/core/lib/iomgr/pollset_set_windows.c
1428 src/core/lib/iomgr/pollset_windows.c
1429 src/core/lib/iomgr/resolve_address_posix.c
1430 src/core/lib/iomgr/resolve_address_windows.c
1431 src/core/lib/iomgr/sockaddr_utils.c
1432 src/core/lib/iomgr/socket_utils_common_posix.c
1433 src/core/lib/iomgr/socket_utils_linux.c
1434 src/core/lib/iomgr/socket_utils_posix.c
1435 src/core/lib/iomgr/socket_windows.c
1436 src/core/lib/iomgr/tcp_client_posix.c
1437 src/core/lib/iomgr/tcp_client_windows.c
1438 src/core/lib/iomgr/tcp_posix.c
1439 src/core/lib/iomgr/tcp_server_posix.c
1440 src/core/lib/iomgr/tcp_server_windows.c
1441 src/core/lib/iomgr/tcp_windows.c
1442 src/core/lib/iomgr/time_averaged_stats.c
1443 src/core/lib/iomgr/timer.c
1444 src/core/lib/iomgr/timer_heap.c
1445 src/core/lib/iomgr/udp_server.c
1446 src/core/lib/iomgr/unix_sockets_posix.c
1447 src/core/lib/iomgr/unix_sockets_posix_noop.c
1448 src/core/lib/iomgr/wakeup_fd_eventfd.c
1449 src/core/lib/iomgr/wakeup_fd_nospecial.c
1450 src/core/lib/iomgr/wakeup_fd_pipe.c
1451 src/core/lib/iomgr/wakeup_fd_posix.c
1452 src/core/lib/iomgr/workqueue_posix.c
1453 src/core/lib/iomgr/workqueue_windows.c
1454 src/core/lib/json/json.c
1455 src/core/lib/json/json_reader.c
1456 src/core/lib/json/json_string.c
1457 src/core/lib/json/json_writer.c
1458 src/core/lib/surface/alarm.c
1459 src/core/lib/surface/api_trace.c
1460 src/core/lib/surface/byte_buffer.c
1461 src/core/lib/surface/byte_buffer_reader.c
1462 src/core/lib/surface/call.c
1463 src/core/lib/surface/call_details.c
1464 src/core/lib/surface/call_log_batch.c
1465 src/core/lib/surface/channel.c
1466 src/core/lib/surface/channel_init.c
1467 src/core/lib/surface/channel_ping.c
1468 src/core/lib/surface/channel_stack_type.c
1469 src/core/lib/surface/completion_queue.c
1470 src/core/lib/surface/event_string.c
1471 src/core/lib/surface/lame_client.c
1472 src/core/lib/surface/metadata_array.c
1473 src/core/lib/surface/server.c
1474 src/core/lib/surface/validate_metadata.c
1475 src/core/lib/surface/version.c
1476 src/core/lib/transport/byte_stream.c
1477 src/core/lib/transport/connectivity_state.c
1478 src/core/lib/transport/metadata.c
1479 src/core/lib/transport/metadata_batch.c
1480 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001481 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001482 src/core/lib/transport/transport.c
1483 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001484 src/cpp/codegen/codegen_init.cc
1485)
1486
1487target_include_directories(grpc++_unsecure
1488 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1489 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1490 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1491 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001492 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001493 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1494)
1495
1496target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001497 ${_gRPC_BASELIB_LIBRARIES}
1498 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001499 gpr
1500 grpc_unsecure
1501)
1502
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001503foreach(_hdr
1504 include/grpc++/alarm.h
1505 include/grpc++/channel.h
1506 include/grpc++/client_context.h
1507 include/grpc++/completion_queue.h
1508 include/grpc++/create_channel.h
1509 include/grpc++/create_channel_posix.h
1510 include/grpc++/generic/async_generic_service.h
1511 include/grpc++/generic/generic_stub.h
1512 include/grpc++/grpc++.h
1513 include/grpc++/impl/call.h
1514 include/grpc++/impl/client_unary_call.h
1515 include/grpc++/impl/codegen/core_codegen.h
1516 include/grpc++/impl/grpc_library.h
1517 include/grpc++/impl/method_handler_impl.h
1518 include/grpc++/impl/rpc_method.h
1519 include/grpc++/impl/rpc_service_method.h
1520 include/grpc++/impl/serialization_traits.h
1521 include/grpc++/impl/server_builder_option.h
1522 include/grpc++/impl/server_builder_plugin.h
1523 include/grpc++/impl/server_initializer.h
1524 include/grpc++/impl/service_type.h
1525 include/grpc++/impl/sync.h
1526 include/grpc++/impl/sync_cxx11.h
1527 include/grpc++/impl/sync_no_cxx11.h
1528 include/grpc++/impl/thd.h
1529 include/grpc++/impl/thd_cxx11.h
1530 include/grpc++/impl/thd_no_cxx11.h
1531 include/grpc++/security/auth_context.h
1532 include/grpc++/security/auth_metadata_processor.h
1533 include/grpc++/security/credentials.h
1534 include/grpc++/security/server_credentials.h
1535 include/grpc++/server.h
1536 include/grpc++/server_builder.h
1537 include/grpc++/server_context.h
1538 include/grpc++/server_posix.h
1539 include/grpc++/support/async_stream.h
1540 include/grpc++/support/async_unary_call.h
1541 include/grpc++/support/byte_buffer.h
1542 include/grpc++/support/channel_arguments.h
1543 include/grpc++/support/config.h
1544 include/grpc++/support/slice.h
1545 include/grpc++/support/status.h
1546 include/grpc++/support/status_code_enum.h
1547 include/grpc++/support/string_ref.h
1548 include/grpc++/support/stub_options.h
1549 include/grpc++/support/sync_stream.h
1550 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001551 include/grpc/byte_buffer.h
1552 include/grpc/byte_buffer_reader.h
1553 include/grpc/compression.h
1554 include/grpc/grpc.h
1555 include/grpc/grpc_posix.h
1556 include/grpc/grpc_security_constants.h
1557 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001558 include/grpc/impl/codegen/byte_buffer_reader.h
1559 include/grpc/impl/codegen/compression_types.h
1560 include/grpc/impl/codegen/connectivity_state.h
1561 include/grpc/impl/codegen/grpc_types.h
1562 include/grpc/impl/codegen/propagation_bits.h
1563 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001564 include/grpc/impl/codegen/atm.h
1565 include/grpc/impl/codegen/atm_gcc_atomic.h
1566 include/grpc/impl/codegen/atm_gcc_sync.h
1567 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001568 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001569 include/grpc/impl/codegen/port_platform.h
1570 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001571 include/grpc/impl/codegen/sync.h
1572 include/grpc/impl/codegen/sync_generic.h
1573 include/grpc/impl/codegen/sync_posix.h
1574 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001575 include/grpc++/impl/codegen/async_stream.h
1576 include/grpc++/impl/codegen/async_unary_call.h
1577 include/grpc++/impl/codegen/call.h
1578 include/grpc++/impl/codegen/call_hook.h
1579 include/grpc++/impl/codegen/channel_interface.h
1580 include/grpc++/impl/codegen/client_context.h
1581 include/grpc++/impl/codegen/client_unary_call.h
1582 include/grpc++/impl/codegen/completion_queue.h
1583 include/grpc++/impl/codegen/completion_queue_tag.h
1584 include/grpc++/impl/codegen/config.h
1585 include/grpc++/impl/codegen/core_codegen_interface.h
1586 include/grpc++/impl/codegen/create_auth_context.h
1587 include/grpc++/impl/codegen/grpc_library.h
1588 include/grpc++/impl/codegen/method_handler_impl.h
1589 include/grpc++/impl/codegen/rpc_method.h
1590 include/grpc++/impl/codegen/rpc_service_method.h
1591 include/grpc++/impl/codegen/security/auth_context.h
1592 include/grpc++/impl/codegen/serialization_traits.h
1593 include/grpc++/impl/codegen/server_context.h
1594 include/grpc++/impl/codegen/server_interface.h
1595 include/grpc++/impl/codegen/service_type.h
1596 include/grpc++/impl/codegen/status.h
1597 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001598 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001599 include/grpc++/impl/codegen/string_ref.h
1600 include/grpc++/impl/codegen/stub_options.h
1601 include/grpc++/impl/codegen/sync.h
1602 include/grpc++/impl/codegen/sync_cxx11.h
1603 include/grpc++/impl/codegen/sync_no_cxx11.h
1604 include/grpc++/impl/codegen/sync_stream.h
1605 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001606)
1607 string(REPLACE "include/" "" _path ${_hdr})
1608 get_filename_component(_path ${_path} PATH)
1609 install(FILES ${_hdr}
1610 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1611 )
1612endforeach()
1613
1614
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001615if (gRPC_INSTALL)
1616 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1617 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1618 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1619 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1620 )
1621endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001622
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001623
1624add_library(grpc_plugin_support
1625 src/compiler/cpp_generator.cc
1626 src/compiler/csharp_generator.cc
1627 src/compiler/node_generator.cc
1628 src/compiler/objective_c_generator.cc
1629 src/compiler/python_generator.cc
1630 src/compiler/ruby_generator.cc
1631)
1632
1633target_include_directories(grpc_plugin_support
1634 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1635 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1636 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1637 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001638 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001639 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1640)
1641
1642target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001643 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001644)
1645
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001646foreach(_hdr
1647 include/grpc++/impl/codegen/config_protobuf.h
1648)
1649 string(REPLACE "include/" "" _path ${_hdr})
1650 get_filename_component(_path ${_path} PATH)
1651 install(FILES ${_hdr}
1652 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1653 )
1654endforeach()
1655
1656
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001657if (gRPC_INSTALL)
1658 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1659 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1660 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1661 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1662 )
1663endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001664
1665
1666add_library(grpc_csharp_ext
1667 src/csharp/ext/grpc_csharp_ext.c
1668)
1669
1670target_include_directories(grpc_csharp_ext
1671 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1672 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1673 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1674 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001675 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001676 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1677)
1678
1679target_link_libraries(grpc_csharp_ext
1680 grpc
1681 gpr
1682)
1683
1684
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001685
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001686if (gRPC_INSTALL)
1687 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1688 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1689 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1690 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1691 )
1692endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001693
1694
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001695
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001696add_executable(gen_hpack_tables
1697 tools/codegen/core/gen_hpack_tables.c
1698)
1699
1700target_include_directories(gen_hpack_tables
1701 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1702 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1703 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1704 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1705 PRIVATE ${ZLIB_ROOT_DIR}
1706 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1707)
1708
1709target_link_libraries(gen_hpack_tables
1710 gpr
1711 grpc
1712)
1713
1714
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001715if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001716 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1717 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1718 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1719 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1720 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001721endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001722
1723
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001724add_executable(gen_legal_metadata_characters
1725 tools/codegen/core/gen_legal_metadata_characters.c
1726)
1727
1728target_include_directories(gen_legal_metadata_characters
1729 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1730 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1731 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1732 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1733 PRIVATE ${ZLIB_ROOT_DIR}
1734 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1735)
1736
1737
1738
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001739if (gRPC_INSTALL)
1740 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1741 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1742 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1743 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1744 )
1745endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001746
1747
Craig Tiller1c7a8422016-08-18 11:13:11 -07001748add_executable(gen_percent_encoding_tables
1749 tools/codegen/core/gen_percent_encoding_tables.c
1750)
1751
1752target_include_directories(gen_percent_encoding_tables
1753 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1754 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1755 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1756 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1757 PRIVATE ${ZLIB_ROOT_DIR}
1758 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1759)
1760
1761
1762
Craig Tiller426dcde2016-09-07 15:43:10 -07001763if (gRPC_INSTALL)
1764 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1765 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1766 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1767 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1768 )
1769endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001770
1771
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001772add_executable(grpc_create_jwt
1773 test/core/security/create_jwt.c
1774)
1775
1776target_include_directories(grpc_create_jwt
1777 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1778 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1779 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1780 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1781 PRIVATE ${ZLIB_ROOT_DIR}
1782 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1783)
1784
1785target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001786 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001787 grpc
1788 gpr
1789)
1790
1791
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001792if (gRPC_INSTALL)
1793 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1794 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1795 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1796 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1797 )
1798endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001799
1800
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001801add_executable(grpc_print_google_default_creds_token
1802 test/core/security/print_google_default_creds_token.c
1803)
1804
1805target_include_directories(grpc_print_google_default_creds_token
1806 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1807 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1808 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1809 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1810 PRIVATE ${ZLIB_ROOT_DIR}
1811 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1812)
1813
1814target_link_libraries(grpc_print_google_default_creds_token
1815 grpc
1816 gpr
1817)
1818
1819
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001820if (gRPC_INSTALL)
1821 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1822 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1823 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1824 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1825 )
1826endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001827
1828
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001829add_executable(grpc_verify_jwt
1830 test/core/security/verify_jwt.c
1831)
1832
1833target_include_directories(grpc_verify_jwt
1834 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1835 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1836 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1837 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1838 PRIVATE ${ZLIB_ROOT_DIR}
1839 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1840)
1841
1842target_link_libraries(grpc_verify_jwt
1843 grpc
1844 gpr
1845)
1846
1847
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001848if (gRPC_INSTALL)
1849 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1850 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1851 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1852 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1853 )
1854endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001855
1856
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001857add_executable(grpc_cpp_plugin
1858 src/compiler/cpp_plugin.cc
1859)
1860
1861target_include_directories(grpc_cpp_plugin
1862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1864 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1865 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1866 PRIVATE ${ZLIB_ROOT_DIR}
1867 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1868)
1869
1870target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001871 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001872 grpc_plugin_support
1873)
1874
1875
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001876if (gRPC_INSTALL)
1877 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1878 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1879 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1880 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1881 )
1882endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001883
1884
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001885add_executable(grpc_csharp_plugin
1886 src/compiler/csharp_plugin.cc
1887)
1888
1889target_include_directories(grpc_csharp_plugin
1890 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1891 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1892 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1893 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1894 PRIVATE ${ZLIB_ROOT_DIR}
1895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1896)
1897
1898target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001899 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001900 grpc_plugin_support
1901)
1902
1903
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001904if (gRPC_INSTALL)
1905 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1906 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1907 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1908 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1909 )
1910endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001911
1912
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001913add_executable(grpc_node_plugin
1914 src/compiler/node_plugin.cc
1915)
1916
1917target_include_directories(grpc_node_plugin
1918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1919 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1920 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1921 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1922 PRIVATE ${ZLIB_ROOT_DIR}
1923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1924)
1925
1926target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001927 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001928 grpc_plugin_support
1929)
1930
1931
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001932if (gRPC_INSTALL)
1933 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1934 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1935 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1936 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1937 )
1938endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001939
1940
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001941add_executable(grpc_objective_c_plugin
1942 src/compiler/objective_c_plugin.cc
1943)
1944
1945target_include_directories(grpc_objective_c_plugin
1946 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1947 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1948 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1949 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1950 PRIVATE ${ZLIB_ROOT_DIR}
1951 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1952)
1953
1954target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001955 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001956 grpc_plugin_support
1957)
1958
1959
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001960if (gRPC_INSTALL)
1961 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1962 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1963 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1964 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1965 )
1966endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001967
1968
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001969add_executable(grpc_python_plugin
1970 src/compiler/python_plugin.cc
1971)
1972
1973target_include_directories(grpc_python_plugin
1974 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1975 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1976 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1977 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1978 PRIVATE ${ZLIB_ROOT_DIR}
1979 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1980)
1981
1982target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001983 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001984 grpc_plugin_support
1985)
1986
1987
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001988if (gRPC_INSTALL)
1989 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
1990 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1991 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1992 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1993 )
1994endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001995
1996
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001997add_executable(grpc_ruby_plugin
1998 src/compiler/ruby_plugin.cc
1999)
2000
2001target_include_directories(grpc_ruby_plugin
2002 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2003 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2004 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2005 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2006 PRIVATE ${ZLIB_ROOT_DIR}
2007 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2008)
2009
2010target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002011 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002012 grpc_plugin_support
2013)
2014
2015
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002016if (gRPC_INSTALL)
2017 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2018 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2019 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2020 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2021 )
2022endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002023
2024
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002025
2026
2027
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002028
2029
2030
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002031if (gRPC_INSTALL)
2032 install(EXPORT gRPCTargets
2033 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2034 NAMESPACE gRPC::
2035 )
2036endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002037
2038foreach(_config gRPCConfig gRPCConfigVersion)
2039 configure_file(tools/cmake/${_config}.cmake.in
2040 ${_config}.cmake @ONLY)
2041 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2042 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2043 )
2044endforeach()