blob: 62703653b113bb4786603660848f70ef30b5359d [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, Google Inc.
12# All rights reserved.
13#
14# Redistribution and use in source and binary forms, with or without
15# modification, are permitted provided that the following conditions are
16# met:
17#
18# * Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# * Redistributions in binary form must reproduce the above
21# copyright notice, this list of conditions and the following disclaimer
22# in the documentation and/or other materials provided with the
23# distribution.
24# * Neither the name of Google Inc. nor the names of its
25# contributors may be used to endorse or promote products derived from
26# this software without specific prior written permission.
27#
28# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
Nicolas "Pixel" Noble49bfb922016-07-12 09:31:41 +020045set(PACKAGE_VERSION "1.1.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030051if (NOT MSVC)
52 set(gRPC_INSTALL ON CACHE BOOL "Generate installation target")
53else()
54 set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target")
55endif()
56
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030057set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
58set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010059
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
61set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010062
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030063set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
64set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010065
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010067
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030068if (MSVC)
69 add_definitions( -D_WIN32_WINNT=0x600 )
70endif()
71
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030072if (gRPC_USE_PROTO_LITE)
73 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010074 add_definitions("-DGRPC_USE_PROTO_LITE")
75else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030076 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010077endif()
78
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030079if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
80 if(NOT ZLIB_ROOT_DIR)
81 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
82 endif()
83 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
84 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
85 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
86 if(TARGET zlibstatic)
87 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
88 endif()
89 else()
90 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
91 endif()
92elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
93 find_package(ZLIB)
94 if(TARGET ZLIB::ZLIB)
95 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
96 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +030097 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010098endif()
99
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300100if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
101 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
102 # Disable them unless they are explicitly requested from the cmake command line (when we assume
103 # gmock is downloaded to the right location inside protobuf).
104 if(NOT protobuf_BUILD_TESTS)
105 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
106 endif()
107 if(NOT PROTOBUF_ROOT_DIR)
108 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
109 endif()
110 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300111 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300112 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
113 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
114 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
115 endif()
116 if(TARGET libprotoc)
117 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
118 endif()
119 else()
120 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
121 endif()
122elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
123 find_package(protobuf CONFIG)
124 if(protobuf_FOUND)
125 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
126 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
127 endif()
128 if(TARGET protobuf::libprotoc)
129 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
130 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300131 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300132 else()
133 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300134 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300135 endif()
136endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100137
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300138if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
139 if(NOT BORINGSSL_ROOT_DIR)
140 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
141 endif()
142 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
143 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
144 if(TARGET ssl)
145 set(_gRPC_SSL_LIBRARIES ssl)
146 endif()
147 else()
148 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
149 endif()
150elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
151 find_package(OpenSSL)
152 if(TARGET OpenSSL::SSL)
153 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
154 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300155 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300156endif()
157
158if(NOT MSVC)
159 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
160 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
161endif()
162
163if(WIN32 AND MSVC)
164 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100165endif()
166
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300167include(GNUInstallDirs)
168if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
169 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
170endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100171
172
173add_library(gpr
174 src/core/lib/profiling/basic_timers.c
175 src/core/lib/profiling/stap_timers.c
176 src/core/lib/support/alloc.c
177 src/core/lib/support/avl.c
178 src/core/lib/support/backoff.c
179 src/core/lib/support/cmdline.c
180 src/core/lib/support/cpu_iphone.c
181 src/core/lib/support/cpu_linux.c
182 src/core/lib/support/cpu_posix.c
183 src/core/lib/support/cpu_windows.c
184 src/core/lib/support/env_linux.c
185 src/core/lib/support/env_posix.c
186 src/core/lib/support/env_windows.c
187 src/core/lib/support/histogram.c
188 src/core/lib/support/host_port.c
189 src/core/lib/support/log.c
190 src/core/lib/support/log_android.c
191 src/core/lib/support/log_linux.c
192 src/core/lib/support/log_posix.c
193 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700194 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100195 src/core/lib/support/murmur_hash.c
Craig Tiller17ed6b12016-08-18 09:33:33 -0700196 src/core/lib/support/percent_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100197 src/core/lib/support/slice.c
198 src/core/lib/support/slice_buffer.c
199 src/core/lib/support/stack_lockfree.c
200 src/core/lib/support/string.c
201 src/core/lib/support/string_posix.c
202 src/core/lib/support/string_util_windows.c
203 src/core/lib/support/string_windows.c
204 src/core/lib/support/subprocess_posix.c
205 src/core/lib/support/subprocess_windows.c
206 src/core/lib/support/sync.c
207 src/core/lib/support/sync_posix.c
208 src/core/lib/support/sync_windows.c
209 src/core/lib/support/thd.c
210 src/core/lib/support/thd_posix.c
211 src/core/lib/support/thd_windows.c
212 src/core/lib/support/time.c
213 src/core/lib/support/time_posix.c
214 src/core/lib/support/time_precise.c
215 src/core/lib/support/time_windows.c
216 src/core/lib/support/tls_pthread.c
217 src/core/lib/support/tmpfile_msys.c
218 src/core/lib/support/tmpfile_posix.c
219 src/core/lib/support/tmpfile_windows.c
220 src/core/lib/support/wrap_memcpy.c
221)
222
223target_include_directories(gpr
224 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
225 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
226 PRIVATE ${BORINGSSL_ROOT_DIR}/include
227 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300228 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100229 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
230)
231
232
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300233foreach(_hdr
234 include/grpc/support/alloc.h
235 include/grpc/support/atm.h
236 include/grpc/support/atm_gcc_atomic.h
237 include/grpc/support/atm_gcc_sync.h
238 include/grpc/support/atm_windows.h
239 include/grpc/support/avl.h
240 include/grpc/support/cmdline.h
241 include/grpc/support/cpu.h
242 include/grpc/support/histogram.h
243 include/grpc/support/host_port.h
244 include/grpc/support/log.h
245 include/grpc/support/log_windows.h
246 include/grpc/support/port_platform.h
247 include/grpc/support/slice.h
248 include/grpc/support/slice_buffer.h
249 include/grpc/support/string_util.h
250 include/grpc/support/subprocess.h
251 include/grpc/support/sync.h
252 include/grpc/support/sync_generic.h
253 include/grpc/support/sync_posix.h
254 include/grpc/support/sync_windows.h
255 include/grpc/support/thd.h
256 include/grpc/support/time.h
257 include/grpc/support/tls.h
258 include/grpc/support/tls_gcc.h
259 include/grpc/support/tls_msvc.h
260 include/grpc/support/tls_pthread.h
261 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300262 include/grpc/impl/codegen/atm.h
263 include/grpc/impl/codegen/atm_gcc_atomic.h
264 include/grpc/impl/codegen/atm_gcc_sync.h
265 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700266 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300267 include/grpc/impl/codegen/port_platform.h
268 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300269 include/grpc/impl/codegen/sync.h
270 include/grpc/impl/codegen/sync_generic.h
271 include/grpc/impl/codegen/sync_posix.h
272 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300273)
274 string(REPLACE "include/" "" _path ${_hdr})
275 get_filename_component(_path ${_path} PATH)
276 install(FILES ${_hdr}
277 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
278 )
279endforeach()
280
281
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300282if (gRPC_INSTALL)
283 install(TARGETS gpr EXPORT gRPCTargets
284 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
285 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
286 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
287 )
288endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300289
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100290
291add_library(grpc
292 src/core/lib/surface/init.c
293 src/core/lib/channel/channel_args.c
294 src/core/lib/channel/channel_stack.c
295 src/core/lib/channel/channel_stack_builder.c
296 src/core/lib/channel/compress_filter.c
297 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700298 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100299 src/core/lib/channel/http_client_filter.c
300 src/core/lib/channel/http_server_filter.c
301 src/core/lib/compression/compression.c
302 src/core/lib/compression/message_compress.c
303 src/core/lib/debug/trace.c
304 src/core/lib/http/format_request.c
305 src/core/lib/http/httpcli.c
306 src/core/lib/http/parser.c
307 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700308 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100309 src/core/lib/iomgr/endpoint.c
310 src/core/lib/iomgr/endpoint_pair_posix.c
311 src/core/lib/iomgr/endpoint_pair_windows.c
312 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200313 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100314 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
315 src/core/lib/iomgr/ev_poll_posix.c
316 src/core/lib/iomgr/ev_posix.c
317 src/core/lib/iomgr/exec_ctx.c
318 src/core/lib/iomgr/executor.c
319 src/core/lib/iomgr/iocp_windows.c
320 src/core/lib/iomgr/iomgr.c
321 src/core/lib/iomgr/iomgr_posix.c
322 src/core/lib/iomgr/iomgr_windows.c
323 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200324 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100325 src/core/lib/iomgr/polling_entity.c
326 src/core/lib/iomgr/pollset_set_windows.c
327 src/core/lib/iomgr/pollset_windows.c
328 src/core/lib/iomgr/resolve_address_posix.c
329 src/core/lib/iomgr/resolve_address_windows.c
330 src/core/lib/iomgr/sockaddr_utils.c
331 src/core/lib/iomgr/socket_utils_common_posix.c
332 src/core/lib/iomgr/socket_utils_linux.c
333 src/core/lib/iomgr/socket_utils_posix.c
334 src/core/lib/iomgr/socket_windows.c
335 src/core/lib/iomgr/tcp_client_posix.c
336 src/core/lib/iomgr/tcp_client_windows.c
337 src/core/lib/iomgr/tcp_posix.c
338 src/core/lib/iomgr/tcp_server_posix.c
339 src/core/lib/iomgr/tcp_server_windows.c
340 src/core/lib/iomgr/tcp_windows.c
341 src/core/lib/iomgr/time_averaged_stats.c
342 src/core/lib/iomgr/timer.c
343 src/core/lib/iomgr/timer_heap.c
344 src/core/lib/iomgr/udp_server.c
345 src/core/lib/iomgr/unix_sockets_posix.c
346 src/core/lib/iomgr/unix_sockets_posix_noop.c
347 src/core/lib/iomgr/wakeup_fd_eventfd.c
348 src/core/lib/iomgr/wakeup_fd_nospecial.c
349 src/core/lib/iomgr/wakeup_fd_pipe.c
350 src/core/lib/iomgr/wakeup_fd_posix.c
351 src/core/lib/iomgr/workqueue_posix.c
352 src/core/lib/iomgr/workqueue_windows.c
353 src/core/lib/json/json.c
354 src/core/lib/json/json_reader.c
355 src/core/lib/json/json_string.c
356 src/core/lib/json/json_writer.c
357 src/core/lib/surface/alarm.c
358 src/core/lib/surface/api_trace.c
359 src/core/lib/surface/byte_buffer.c
360 src/core/lib/surface/byte_buffer_reader.c
361 src/core/lib/surface/call.c
362 src/core/lib/surface/call_details.c
363 src/core/lib/surface/call_log_batch.c
364 src/core/lib/surface/channel.c
365 src/core/lib/surface/channel_init.c
366 src/core/lib/surface/channel_ping.c
367 src/core/lib/surface/channel_stack_type.c
368 src/core/lib/surface/completion_queue.c
369 src/core/lib/surface/event_string.c
370 src/core/lib/surface/lame_client.c
371 src/core/lib/surface/metadata_array.c
372 src/core/lib/surface/server.c
373 src/core/lib/surface/validate_metadata.c
374 src/core/lib/surface/version.c
375 src/core/lib/transport/byte_stream.c
376 src/core/lib/transport/connectivity_state.c
377 src/core/lib/transport/metadata.c
378 src/core/lib/transport/metadata_batch.c
379 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400380 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100381 src/core/lib/transport/transport.c
382 src/core/lib/transport/transport_op_string.c
383 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
384 src/core/ext/transport/chttp2/transport/bin_decoder.c
385 src/core/ext/transport/chttp2/transport/bin_encoder.c
386 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
387 src/core/ext/transport/chttp2/transport/chttp2_transport.c
388 src/core/ext/transport/chttp2/transport/frame_data.c
389 src/core/ext/transport/chttp2/transport/frame_goaway.c
390 src/core/ext/transport/chttp2/transport/frame_ping.c
391 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
392 src/core/ext/transport/chttp2/transport/frame_settings.c
393 src/core/ext/transport/chttp2/transport/frame_window_update.c
394 src/core/ext/transport/chttp2/transport/hpack_encoder.c
395 src/core/ext/transport/chttp2/transport/hpack_parser.c
396 src/core/ext/transport/chttp2/transport/hpack_table.c
397 src/core/ext/transport/chttp2/transport/huffsyms.c
398 src/core/ext/transport/chttp2/transport/incoming_metadata.c
399 src/core/ext/transport/chttp2/transport/parsing.c
400 src/core/ext/transport/chttp2/transport/status_conversion.c
401 src/core/ext/transport/chttp2/transport/stream_lists.c
402 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100403 src/core/ext/transport/chttp2/transport/varint.c
404 src/core/ext/transport/chttp2/transport/writing.c
405 src/core/ext/transport/chttp2/alpn/alpn.c
406 src/core/lib/http/httpcli_security_connector.c
407 src/core/lib/security/context/security_context.c
408 src/core/lib/security/credentials/composite/composite_credentials.c
409 src/core/lib/security/credentials/credentials.c
410 src/core/lib/security/credentials/credentials_metadata.c
411 src/core/lib/security/credentials/fake/fake_credentials.c
412 src/core/lib/security/credentials/google_default/credentials_posix.c
413 src/core/lib/security/credentials/google_default/credentials_windows.c
414 src/core/lib/security/credentials/google_default/google_default_credentials.c
415 src/core/lib/security/credentials/iam/iam_credentials.c
416 src/core/lib/security/credentials/jwt/json_token.c
417 src/core/lib/security/credentials/jwt/jwt_credentials.c
418 src/core/lib/security/credentials/jwt/jwt_verifier.c
419 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
420 src/core/lib/security/credentials/plugin/plugin_credentials.c
421 src/core/lib/security/credentials/ssl/ssl_credentials.c
422 src/core/lib/security/transport/client_auth_filter.c
423 src/core/lib/security/transport/handshake.c
424 src/core/lib/security/transport/secure_endpoint.c
425 src/core/lib/security/transport/security_connector.c
426 src/core/lib/security/transport/server_auth_filter.c
427 src/core/lib/security/transport/tsi_error.c
428 src/core/lib/security/util/b64.c
429 src/core/lib/security/util/json_util.c
430 src/core/lib/surface/init_secure.c
431 src/core/lib/tsi/fake_transport_security.c
432 src/core/lib/tsi/ssl_transport_security.c
433 src/core/lib/tsi/transport_security.c
434 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
435 src/core/ext/client_config/channel_connectivity.c
436 src/core/ext/client_config/client_channel.c
437 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100438 src/core/ext/client_config/client_config_plugin.c
439 src/core/ext/client_config/connector.c
440 src/core/ext/client_config/default_initial_connect_string.c
441 src/core/ext/client_config/initial_connect_string.c
442 src/core/ext/client_config/lb_policy.c
443 src/core/ext/client_config/lb_policy_factory.c
444 src/core/ext/client_config/lb_policy_registry.c
445 src/core/ext/client_config/parse_address.c
446 src/core/ext/client_config/resolver.c
447 src/core/ext/client_config/resolver_factory.c
448 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700449 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100450 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100451 src/core/ext/client_config/subchannel_index.c
452 src/core/ext/client_config/uri_parser.c
453 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
454 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
455 src/core/ext/transport/chttp2/client/insecure/channel_create.c
456 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700457 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100458 src/core/ext/lb_policy/grpclb/load_balancer_api.c
459 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
460 third_party/nanopb/pb_common.c
461 third_party/nanopb/pb_decode.c
462 third_party/nanopb/pb_encode.c
463 src/core/ext/lb_policy/pick_first/pick_first.c
464 src/core/ext/lb_policy/round_robin/round_robin.c
465 src/core/ext/resolver/dns/native/dns_resolver.c
466 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
467 src/core/ext/load_reporting/load_reporting.c
468 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700469 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100470 src/core/ext/census/context.c
471 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700472 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100473 src/core/ext/census/grpc_context.c
474 src/core/ext/census/grpc_filter.c
475 src/core/ext/census/grpc_plugin.c
476 src/core/ext/census/initialize.c
477 src/core/ext/census/mlog.c
478 src/core/ext/census/operation.c
479 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700480 src/core/ext/census/resource.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100481 src/core/ext/census/tracing.c
482 src/core/plugin_registry/grpc_plugin_registry.c
483)
484
485target_include_directories(grpc
486 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
487 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
488 PRIVATE ${BORINGSSL_ROOT_DIR}/include
489 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300490 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100491 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
492)
493
494target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300495 ${_gRPC_BASELIB_LIBRARIES}
496 ${_gRPC_SSL_LIBRARIES}
497 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100498 gpr
499)
500
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300501foreach(_hdr
502 include/grpc/byte_buffer.h
503 include/grpc/byte_buffer_reader.h
504 include/grpc/compression.h
505 include/grpc/grpc.h
506 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200507 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300508 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300509 include/grpc/impl/codegen/byte_buffer_reader.h
510 include/grpc/impl/codegen/compression_types.h
511 include/grpc/impl/codegen/connectivity_state.h
512 include/grpc/impl/codegen/grpc_types.h
513 include/grpc/impl/codegen/propagation_bits.h
514 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300515 include/grpc/impl/codegen/atm.h
516 include/grpc/impl/codegen/atm_gcc_atomic.h
517 include/grpc/impl/codegen/atm_gcc_sync.h
518 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700519 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300520 include/grpc/impl/codegen/port_platform.h
521 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300522 include/grpc/impl/codegen/sync.h
523 include/grpc/impl/codegen/sync_generic.h
524 include/grpc/impl/codegen/sync_posix.h
525 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300526 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300527 include/grpc/census.h
528)
529 string(REPLACE "include/" "" _path ${_hdr})
530 get_filename_component(_path ${_path} PATH)
531 install(FILES ${_hdr}
532 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
533 )
534endforeach()
535
536
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300537if (gRPC_INSTALL)
538 install(TARGETS grpc EXPORT gRPCTargets
539 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
540 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
541 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
542 )
543endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300544
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100545
546add_library(grpc_cronet
547 src/core/lib/surface/init.c
548 src/core/lib/channel/channel_args.c
549 src/core/lib/channel/channel_stack.c
550 src/core/lib/channel/channel_stack_builder.c
551 src/core/lib/channel/compress_filter.c
552 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700553 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100554 src/core/lib/channel/http_client_filter.c
555 src/core/lib/channel/http_server_filter.c
556 src/core/lib/compression/compression.c
557 src/core/lib/compression/message_compress.c
558 src/core/lib/debug/trace.c
559 src/core/lib/http/format_request.c
560 src/core/lib/http/httpcli.c
561 src/core/lib/http/parser.c
562 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700563 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100564 src/core/lib/iomgr/endpoint.c
565 src/core/lib/iomgr/endpoint_pair_posix.c
566 src/core/lib/iomgr/endpoint_pair_windows.c
567 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200568 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100569 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
570 src/core/lib/iomgr/ev_poll_posix.c
571 src/core/lib/iomgr/ev_posix.c
572 src/core/lib/iomgr/exec_ctx.c
573 src/core/lib/iomgr/executor.c
574 src/core/lib/iomgr/iocp_windows.c
575 src/core/lib/iomgr/iomgr.c
576 src/core/lib/iomgr/iomgr_posix.c
577 src/core/lib/iomgr/iomgr_windows.c
578 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200579 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100580 src/core/lib/iomgr/polling_entity.c
581 src/core/lib/iomgr/pollset_set_windows.c
582 src/core/lib/iomgr/pollset_windows.c
583 src/core/lib/iomgr/resolve_address_posix.c
584 src/core/lib/iomgr/resolve_address_windows.c
585 src/core/lib/iomgr/sockaddr_utils.c
586 src/core/lib/iomgr/socket_utils_common_posix.c
587 src/core/lib/iomgr/socket_utils_linux.c
588 src/core/lib/iomgr/socket_utils_posix.c
589 src/core/lib/iomgr/socket_windows.c
590 src/core/lib/iomgr/tcp_client_posix.c
591 src/core/lib/iomgr/tcp_client_windows.c
592 src/core/lib/iomgr/tcp_posix.c
593 src/core/lib/iomgr/tcp_server_posix.c
594 src/core/lib/iomgr/tcp_server_windows.c
595 src/core/lib/iomgr/tcp_windows.c
596 src/core/lib/iomgr/time_averaged_stats.c
597 src/core/lib/iomgr/timer.c
598 src/core/lib/iomgr/timer_heap.c
599 src/core/lib/iomgr/udp_server.c
600 src/core/lib/iomgr/unix_sockets_posix.c
601 src/core/lib/iomgr/unix_sockets_posix_noop.c
602 src/core/lib/iomgr/wakeup_fd_eventfd.c
603 src/core/lib/iomgr/wakeup_fd_nospecial.c
604 src/core/lib/iomgr/wakeup_fd_pipe.c
605 src/core/lib/iomgr/wakeup_fd_posix.c
606 src/core/lib/iomgr/workqueue_posix.c
607 src/core/lib/iomgr/workqueue_windows.c
608 src/core/lib/json/json.c
609 src/core/lib/json/json_reader.c
610 src/core/lib/json/json_string.c
611 src/core/lib/json/json_writer.c
612 src/core/lib/surface/alarm.c
613 src/core/lib/surface/api_trace.c
614 src/core/lib/surface/byte_buffer.c
615 src/core/lib/surface/byte_buffer_reader.c
616 src/core/lib/surface/call.c
617 src/core/lib/surface/call_details.c
618 src/core/lib/surface/call_log_batch.c
619 src/core/lib/surface/channel.c
620 src/core/lib/surface/channel_init.c
621 src/core/lib/surface/channel_ping.c
622 src/core/lib/surface/channel_stack_type.c
623 src/core/lib/surface/completion_queue.c
624 src/core/lib/surface/event_string.c
625 src/core/lib/surface/lame_client.c
626 src/core/lib/surface/metadata_array.c
627 src/core/lib/surface/server.c
628 src/core/lib/surface/validate_metadata.c
629 src/core/lib/surface/version.c
630 src/core/lib/transport/byte_stream.c
631 src/core/lib/transport/connectivity_state.c
632 src/core/lib/transport/metadata.c
633 src/core/lib/transport/metadata_batch.c
634 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400635 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100636 src/core/lib/transport/transport.c
637 src/core/lib/transport/transport_op_string.c
638 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
639 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
640 src/core/ext/transport/cronet/transport/cronet_transport.c
641 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
642 src/core/ext/transport/chttp2/transport/bin_decoder.c
643 src/core/ext/transport/chttp2/transport/bin_encoder.c
644 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
645 src/core/ext/transport/chttp2/transport/chttp2_transport.c
646 src/core/ext/transport/chttp2/transport/frame_data.c
647 src/core/ext/transport/chttp2/transport/frame_goaway.c
648 src/core/ext/transport/chttp2/transport/frame_ping.c
649 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
650 src/core/ext/transport/chttp2/transport/frame_settings.c
651 src/core/ext/transport/chttp2/transport/frame_window_update.c
652 src/core/ext/transport/chttp2/transport/hpack_encoder.c
653 src/core/ext/transport/chttp2/transport/hpack_parser.c
654 src/core/ext/transport/chttp2/transport/hpack_table.c
655 src/core/ext/transport/chttp2/transport/huffsyms.c
656 src/core/ext/transport/chttp2/transport/incoming_metadata.c
657 src/core/ext/transport/chttp2/transport/parsing.c
658 src/core/ext/transport/chttp2/transport/status_conversion.c
659 src/core/ext/transport/chttp2/transport/stream_lists.c
660 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100661 src/core/ext/transport/chttp2/transport/varint.c
662 src/core/ext/transport/chttp2/transport/writing.c
663 src/core/ext/transport/chttp2/alpn/alpn.c
664 src/core/ext/client_config/channel_connectivity.c
665 src/core/ext/client_config/client_channel.c
666 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100667 src/core/ext/client_config/client_config_plugin.c
668 src/core/ext/client_config/connector.c
669 src/core/ext/client_config/default_initial_connect_string.c
670 src/core/ext/client_config/initial_connect_string.c
671 src/core/ext/client_config/lb_policy.c
672 src/core/ext/client_config/lb_policy_factory.c
673 src/core/ext/client_config/lb_policy_registry.c
674 src/core/ext/client_config/parse_address.c
675 src/core/ext/client_config/resolver.c
676 src/core/ext/client_config/resolver_factory.c
677 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700678 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100679 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100680 src/core/ext/client_config/subchannel_index.c
681 src/core/ext/client_config/uri_parser.c
682 src/core/lib/http/httpcli_security_connector.c
683 src/core/lib/security/context/security_context.c
684 src/core/lib/security/credentials/composite/composite_credentials.c
685 src/core/lib/security/credentials/credentials.c
686 src/core/lib/security/credentials/credentials_metadata.c
687 src/core/lib/security/credentials/fake/fake_credentials.c
688 src/core/lib/security/credentials/google_default/credentials_posix.c
689 src/core/lib/security/credentials/google_default/credentials_windows.c
690 src/core/lib/security/credentials/google_default/google_default_credentials.c
691 src/core/lib/security/credentials/iam/iam_credentials.c
692 src/core/lib/security/credentials/jwt/json_token.c
693 src/core/lib/security/credentials/jwt/jwt_credentials.c
694 src/core/lib/security/credentials/jwt/jwt_verifier.c
695 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
696 src/core/lib/security/credentials/plugin/plugin_credentials.c
697 src/core/lib/security/credentials/ssl/ssl_credentials.c
698 src/core/lib/security/transport/client_auth_filter.c
699 src/core/lib/security/transport/handshake.c
700 src/core/lib/security/transport/secure_endpoint.c
701 src/core/lib/security/transport/security_connector.c
702 src/core/lib/security/transport/server_auth_filter.c
703 src/core/lib/security/transport/tsi_error.c
704 src/core/lib/security/util/b64.c
705 src/core/lib/security/util/json_util.c
706 src/core/lib/surface/init_secure.c
707 src/core/lib/tsi/fake_transport_security.c
708 src/core/lib/tsi/ssl_transport_security.c
709 src/core/lib/tsi/transport_security.c
710 src/core/plugin_registry/grpc_cronet_plugin_registry.c
711)
712
713target_include_directories(grpc_cronet
714 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
715 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
716 PRIVATE ${BORINGSSL_ROOT_DIR}/include
717 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300718 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100719 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
720)
721
722target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300723 ${_gRPC_BASELIB_LIBRARIES}
724 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100725 gpr
726)
727
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300728foreach(_hdr
729 include/grpc/byte_buffer.h
730 include/grpc/byte_buffer_reader.h
731 include/grpc/compression.h
732 include/grpc/grpc.h
733 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200734 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300735 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300736 include/grpc/impl/codegen/byte_buffer_reader.h
737 include/grpc/impl/codegen/compression_types.h
738 include/grpc/impl/codegen/connectivity_state.h
739 include/grpc/impl/codegen/grpc_types.h
740 include/grpc/impl/codegen/propagation_bits.h
741 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300742 include/grpc/impl/codegen/atm.h
743 include/grpc/impl/codegen/atm_gcc_atomic.h
744 include/grpc/impl/codegen/atm_gcc_sync.h
745 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700746 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300747 include/grpc/impl/codegen/port_platform.h
748 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300749 include/grpc/impl/codegen/sync.h
750 include/grpc/impl/codegen/sync_generic.h
751 include/grpc/impl/codegen/sync_posix.h
752 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300753 include/grpc/grpc_cronet.h
754 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300755)
756 string(REPLACE "include/" "" _path ${_hdr})
757 get_filename_component(_path ${_path} PATH)
758 install(FILES ${_hdr}
759 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
760 )
761endforeach()
762
763
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300764if (gRPC_INSTALL)
765 install(TARGETS grpc_cronet EXPORT gRPCTargets
766 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
767 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
768 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
769 )
770endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300771
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100772
773add_library(grpc_unsecure
774 src/core/lib/surface/init.c
775 src/core/lib/surface/init_unsecure.c
776 src/core/lib/channel/channel_args.c
777 src/core/lib/channel/channel_stack.c
778 src/core/lib/channel/channel_stack_builder.c
779 src/core/lib/channel/compress_filter.c
780 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700781 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100782 src/core/lib/channel/http_client_filter.c
783 src/core/lib/channel/http_server_filter.c
784 src/core/lib/compression/compression.c
785 src/core/lib/compression/message_compress.c
786 src/core/lib/debug/trace.c
787 src/core/lib/http/format_request.c
788 src/core/lib/http/httpcli.c
789 src/core/lib/http/parser.c
790 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700791 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100792 src/core/lib/iomgr/endpoint.c
793 src/core/lib/iomgr/endpoint_pair_posix.c
794 src/core/lib/iomgr/endpoint_pair_windows.c
795 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200796 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100797 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
798 src/core/lib/iomgr/ev_poll_posix.c
799 src/core/lib/iomgr/ev_posix.c
800 src/core/lib/iomgr/exec_ctx.c
801 src/core/lib/iomgr/executor.c
802 src/core/lib/iomgr/iocp_windows.c
803 src/core/lib/iomgr/iomgr.c
804 src/core/lib/iomgr/iomgr_posix.c
805 src/core/lib/iomgr/iomgr_windows.c
806 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200807 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100808 src/core/lib/iomgr/polling_entity.c
809 src/core/lib/iomgr/pollset_set_windows.c
810 src/core/lib/iomgr/pollset_windows.c
811 src/core/lib/iomgr/resolve_address_posix.c
812 src/core/lib/iomgr/resolve_address_windows.c
813 src/core/lib/iomgr/sockaddr_utils.c
814 src/core/lib/iomgr/socket_utils_common_posix.c
815 src/core/lib/iomgr/socket_utils_linux.c
816 src/core/lib/iomgr/socket_utils_posix.c
817 src/core/lib/iomgr/socket_windows.c
818 src/core/lib/iomgr/tcp_client_posix.c
819 src/core/lib/iomgr/tcp_client_windows.c
820 src/core/lib/iomgr/tcp_posix.c
821 src/core/lib/iomgr/tcp_server_posix.c
822 src/core/lib/iomgr/tcp_server_windows.c
823 src/core/lib/iomgr/tcp_windows.c
824 src/core/lib/iomgr/time_averaged_stats.c
825 src/core/lib/iomgr/timer.c
826 src/core/lib/iomgr/timer_heap.c
827 src/core/lib/iomgr/udp_server.c
828 src/core/lib/iomgr/unix_sockets_posix.c
829 src/core/lib/iomgr/unix_sockets_posix_noop.c
830 src/core/lib/iomgr/wakeup_fd_eventfd.c
831 src/core/lib/iomgr/wakeup_fd_nospecial.c
832 src/core/lib/iomgr/wakeup_fd_pipe.c
833 src/core/lib/iomgr/wakeup_fd_posix.c
834 src/core/lib/iomgr/workqueue_posix.c
835 src/core/lib/iomgr/workqueue_windows.c
836 src/core/lib/json/json.c
837 src/core/lib/json/json_reader.c
838 src/core/lib/json/json_string.c
839 src/core/lib/json/json_writer.c
840 src/core/lib/surface/alarm.c
841 src/core/lib/surface/api_trace.c
842 src/core/lib/surface/byte_buffer.c
843 src/core/lib/surface/byte_buffer_reader.c
844 src/core/lib/surface/call.c
845 src/core/lib/surface/call_details.c
846 src/core/lib/surface/call_log_batch.c
847 src/core/lib/surface/channel.c
848 src/core/lib/surface/channel_init.c
849 src/core/lib/surface/channel_ping.c
850 src/core/lib/surface/channel_stack_type.c
851 src/core/lib/surface/completion_queue.c
852 src/core/lib/surface/event_string.c
853 src/core/lib/surface/lame_client.c
854 src/core/lib/surface/metadata_array.c
855 src/core/lib/surface/server.c
856 src/core/lib/surface/validate_metadata.c
857 src/core/lib/surface/version.c
858 src/core/lib/transport/byte_stream.c
859 src/core/lib/transport/connectivity_state.c
860 src/core/lib/transport/metadata.c
861 src/core/lib/transport/metadata_batch.c
862 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400863 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100864 src/core/lib/transport/transport.c
865 src/core/lib/transport/transport_op_string.c
866 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
867 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
868 src/core/ext/transport/chttp2/transport/bin_decoder.c
869 src/core/ext/transport/chttp2/transport/bin_encoder.c
870 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
871 src/core/ext/transport/chttp2/transport/chttp2_transport.c
872 src/core/ext/transport/chttp2/transport/frame_data.c
873 src/core/ext/transport/chttp2/transport/frame_goaway.c
874 src/core/ext/transport/chttp2/transport/frame_ping.c
875 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
876 src/core/ext/transport/chttp2/transport/frame_settings.c
877 src/core/ext/transport/chttp2/transport/frame_window_update.c
878 src/core/ext/transport/chttp2/transport/hpack_encoder.c
879 src/core/ext/transport/chttp2/transport/hpack_parser.c
880 src/core/ext/transport/chttp2/transport/hpack_table.c
881 src/core/ext/transport/chttp2/transport/huffsyms.c
882 src/core/ext/transport/chttp2/transport/incoming_metadata.c
883 src/core/ext/transport/chttp2/transport/parsing.c
884 src/core/ext/transport/chttp2/transport/status_conversion.c
885 src/core/ext/transport/chttp2/transport/stream_lists.c
886 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100887 src/core/ext/transport/chttp2/transport/varint.c
888 src/core/ext/transport/chttp2/transport/writing.c
889 src/core/ext/transport/chttp2/alpn/alpn.c
890 src/core/ext/transport/chttp2/client/insecure/channel_create.c
891 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
892 src/core/ext/client_config/channel_connectivity.c
893 src/core/ext/client_config/client_channel.c
894 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100895 src/core/ext/client_config/client_config_plugin.c
896 src/core/ext/client_config/connector.c
897 src/core/ext/client_config/default_initial_connect_string.c
898 src/core/ext/client_config/initial_connect_string.c
899 src/core/ext/client_config/lb_policy.c
900 src/core/ext/client_config/lb_policy_factory.c
901 src/core/ext/client_config/lb_policy_registry.c
902 src/core/ext/client_config/parse_address.c
903 src/core/ext/client_config/resolver.c
904 src/core/ext/client_config/resolver_factory.c
905 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700906 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100907 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100908 src/core/ext/client_config/subchannel_index.c
909 src/core/ext/client_config/uri_parser.c
910 src/core/ext/resolver/dns/native/dns_resolver.c
911 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
912 src/core/ext/load_reporting/load_reporting.c
913 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700914 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100915 src/core/ext/lb_policy/grpclb/load_balancer_api.c
916 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
917 third_party/nanopb/pb_common.c
918 third_party/nanopb/pb_decode.c
919 third_party/nanopb/pb_encode.c
920 src/core/ext/lb_policy/pick_first/pick_first.c
921 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700922 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100923 src/core/ext/census/context.c
924 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700925 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100926 src/core/ext/census/grpc_context.c
927 src/core/ext/census/grpc_filter.c
928 src/core/ext/census/grpc_plugin.c
929 src/core/ext/census/initialize.c
930 src/core/ext/census/mlog.c
931 src/core/ext/census/operation.c
932 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700933 src/core/ext/census/resource.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100934 src/core/ext/census/tracing.c
935 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
936)
937
938target_include_directories(grpc_unsecure
939 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
940 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
941 PRIVATE ${BORINGSSL_ROOT_DIR}/include
942 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300943 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100944 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
945)
946
947target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300948 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100949 gpr
950)
951
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300952foreach(_hdr
953 include/grpc/byte_buffer.h
954 include/grpc/byte_buffer_reader.h
955 include/grpc/compression.h
956 include/grpc/grpc.h
957 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200958 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300959 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300960 include/grpc/impl/codegen/byte_buffer_reader.h
961 include/grpc/impl/codegen/compression_types.h
962 include/grpc/impl/codegen/connectivity_state.h
963 include/grpc/impl/codegen/grpc_types.h
964 include/grpc/impl/codegen/propagation_bits.h
965 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300966 include/grpc/impl/codegen/atm.h
967 include/grpc/impl/codegen/atm_gcc_atomic.h
968 include/grpc/impl/codegen/atm_gcc_sync.h
969 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700970 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300971 include/grpc/impl/codegen/port_platform.h
972 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300973 include/grpc/impl/codegen/sync.h
974 include/grpc/impl/codegen/sync_generic.h
975 include/grpc/impl/codegen/sync_posix.h
976 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300977 include/grpc/census.h
978)
979 string(REPLACE "include/" "" _path ${_hdr})
980 get_filename_component(_path ${_path} PATH)
981 install(FILES ${_hdr}
982 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
983 )
984endforeach()
985
986
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300987if (gRPC_INSTALL)
988 install(TARGETS grpc_unsecure EXPORT gRPCTargets
989 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
990 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
991 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
992 )
993endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300994
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100995
996add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -0700997 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100998 src/cpp/client/secure_credentials.cc
999 src/cpp/common/auth_property_iterator.cc
1000 src/cpp/common/secure_auth_context.cc
1001 src/cpp/common/secure_channel_arguments.cc
1002 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001003 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001004 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001005 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001006 src/cpp/client/client_context.cc
1007 src/cpp/client/create_channel.cc
1008 src/cpp/client/create_channel_internal.cc
1009 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001010 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001011 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001012 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001013 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001014 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001015 src/cpp/common/core_codegen.cc
1016 src/cpp/common/rpc_method.cc
1017 src/cpp/server/async_generic_service.cc
1018 src/cpp/server/create_default_thread_pool.cc
1019 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001020 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001021 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001022 src/cpp/server/server_context.cc
1023 src/cpp/server/server_credentials.cc
1024 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001025 src/cpp/util/byte_buffer_cc.cc
1026 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001027 src/cpp/util/status.cc
1028 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001029 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001030 src/core/lib/channel/channel_args.c
1031 src/core/lib/channel/channel_stack.c
1032 src/core/lib/channel/channel_stack_builder.c
1033 src/core/lib/channel/compress_filter.c
1034 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001035 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001036 src/core/lib/channel/http_client_filter.c
1037 src/core/lib/channel/http_server_filter.c
1038 src/core/lib/compression/compression.c
1039 src/core/lib/compression/message_compress.c
1040 src/core/lib/debug/trace.c
1041 src/core/lib/http/format_request.c
1042 src/core/lib/http/httpcli.c
1043 src/core/lib/http/parser.c
1044 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001045 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001046 src/core/lib/iomgr/endpoint.c
1047 src/core/lib/iomgr/endpoint_pair_posix.c
1048 src/core/lib/iomgr/endpoint_pair_windows.c
1049 src/core/lib/iomgr/error.c
1050 src/core/lib/iomgr/ev_epoll_linux.c
1051 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1052 src/core/lib/iomgr/ev_poll_posix.c
1053 src/core/lib/iomgr/ev_posix.c
1054 src/core/lib/iomgr/exec_ctx.c
1055 src/core/lib/iomgr/executor.c
1056 src/core/lib/iomgr/iocp_windows.c
1057 src/core/lib/iomgr/iomgr.c
1058 src/core/lib/iomgr/iomgr_posix.c
1059 src/core/lib/iomgr/iomgr_windows.c
1060 src/core/lib/iomgr/load_file.c
1061 src/core/lib/iomgr/network_status_tracker.c
1062 src/core/lib/iomgr/polling_entity.c
1063 src/core/lib/iomgr/pollset_set_windows.c
1064 src/core/lib/iomgr/pollset_windows.c
1065 src/core/lib/iomgr/resolve_address_posix.c
1066 src/core/lib/iomgr/resolve_address_windows.c
1067 src/core/lib/iomgr/sockaddr_utils.c
1068 src/core/lib/iomgr/socket_utils_common_posix.c
1069 src/core/lib/iomgr/socket_utils_linux.c
1070 src/core/lib/iomgr/socket_utils_posix.c
1071 src/core/lib/iomgr/socket_windows.c
1072 src/core/lib/iomgr/tcp_client_posix.c
1073 src/core/lib/iomgr/tcp_client_windows.c
1074 src/core/lib/iomgr/tcp_posix.c
1075 src/core/lib/iomgr/tcp_server_posix.c
1076 src/core/lib/iomgr/tcp_server_windows.c
1077 src/core/lib/iomgr/tcp_windows.c
1078 src/core/lib/iomgr/time_averaged_stats.c
1079 src/core/lib/iomgr/timer.c
1080 src/core/lib/iomgr/timer_heap.c
1081 src/core/lib/iomgr/udp_server.c
1082 src/core/lib/iomgr/unix_sockets_posix.c
1083 src/core/lib/iomgr/unix_sockets_posix_noop.c
1084 src/core/lib/iomgr/wakeup_fd_eventfd.c
1085 src/core/lib/iomgr/wakeup_fd_nospecial.c
1086 src/core/lib/iomgr/wakeup_fd_pipe.c
1087 src/core/lib/iomgr/wakeup_fd_posix.c
1088 src/core/lib/iomgr/workqueue_posix.c
1089 src/core/lib/iomgr/workqueue_windows.c
1090 src/core/lib/json/json.c
1091 src/core/lib/json/json_reader.c
1092 src/core/lib/json/json_string.c
1093 src/core/lib/json/json_writer.c
1094 src/core/lib/surface/alarm.c
1095 src/core/lib/surface/api_trace.c
1096 src/core/lib/surface/byte_buffer.c
1097 src/core/lib/surface/byte_buffer_reader.c
1098 src/core/lib/surface/call.c
1099 src/core/lib/surface/call_details.c
1100 src/core/lib/surface/call_log_batch.c
1101 src/core/lib/surface/channel.c
1102 src/core/lib/surface/channel_init.c
1103 src/core/lib/surface/channel_ping.c
1104 src/core/lib/surface/channel_stack_type.c
1105 src/core/lib/surface/completion_queue.c
1106 src/core/lib/surface/event_string.c
1107 src/core/lib/surface/lame_client.c
1108 src/core/lib/surface/metadata_array.c
1109 src/core/lib/surface/server.c
1110 src/core/lib/surface/validate_metadata.c
1111 src/core/lib/surface/version.c
1112 src/core/lib/transport/byte_stream.c
1113 src/core/lib/transport/connectivity_state.c
1114 src/core/lib/transport/metadata.c
1115 src/core/lib/transport/metadata_batch.c
1116 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001117 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001118 src/core/lib/transport/transport.c
1119 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001120 src/cpp/codegen/codegen_init.cc
1121)
1122
1123target_include_directories(grpc++
1124 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1125 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1126 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1127 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001128 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001129 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1130)
1131
1132target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001133 ${_gRPC_BASELIB_LIBRARIES}
1134 ${_gRPC_SSL_LIBRARIES}
1135 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001136 grpc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001137 gpr
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001138)
1139
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001140foreach(_hdr
1141 include/grpc++/alarm.h
1142 include/grpc++/channel.h
1143 include/grpc++/client_context.h
1144 include/grpc++/completion_queue.h
1145 include/grpc++/create_channel.h
1146 include/grpc++/create_channel_posix.h
1147 include/grpc++/generic/async_generic_service.h
1148 include/grpc++/generic/generic_stub.h
1149 include/grpc++/grpc++.h
1150 include/grpc++/impl/call.h
1151 include/grpc++/impl/client_unary_call.h
1152 include/grpc++/impl/codegen/core_codegen.h
1153 include/grpc++/impl/grpc_library.h
1154 include/grpc++/impl/method_handler_impl.h
1155 include/grpc++/impl/rpc_method.h
1156 include/grpc++/impl/rpc_service_method.h
1157 include/grpc++/impl/serialization_traits.h
1158 include/grpc++/impl/server_builder_option.h
1159 include/grpc++/impl/server_builder_plugin.h
1160 include/grpc++/impl/server_initializer.h
1161 include/grpc++/impl/service_type.h
1162 include/grpc++/impl/sync.h
1163 include/grpc++/impl/sync_cxx11.h
1164 include/grpc++/impl/sync_no_cxx11.h
1165 include/grpc++/impl/thd.h
1166 include/grpc++/impl/thd_cxx11.h
1167 include/grpc++/impl/thd_no_cxx11.h
1168 include/grpc++/security/auth_context.h
1169 include/grpc++/security/auth_metadata_processor.h
1170 include/grpc++/security/credentials.h
1171 include/grpc++/security/server_credentials.h
1172 include/grpc++/server.h
1173 include/grpc++/server_builder.h
1174 include/grpc++/server_context.h
1175 include/grpc++/server_posix.h
1176 include/grpc++/support/async_stream.h
1177 include/grpc++/support/async_unary_call.h
1178 include/grpc++/support/byte_buffer.h
1179 include/grpc++/support/channel_arguments.h
1180 include/grpc++/support/config.h
1181 include/grpc++/support/slice.h
1182 include/grpc++/support/status.h
1183 include/grpc++/support/status_code_enum.h
1184 include/grpc++/support/string_ref.h
1185 include/grpc++/support/stub_options.h
1186 include/grpc++/support/sync_stream.h
1187 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001188 include/grpc/byte_buffer.h
1189 include/grpc/byte_buffer_reader.h
1190 include/grpc/compression.h
1191 include/grpc/grpc.h
1192 include/grpc/grpc_posix.h
1193 include/grpc/grpc_security_constants.h
1194 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001195 include/grpc/impl/codegen/byte_buffer_reader.h
1196 include/grpc/impl/codegen/compression_types.h
1197 include/grpc/impl/codegen/connectivity_state.h
1198 include/grpc/impl/codegen/grpc_types.h
1199 include/grpc/impl/codegen/propagation_bits.h
1200 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001201 include/grpc/impl/codegen/atm.h
1202 include/grpc/impl/codegen/atm_gcc_atomic.h
1203 include/grpc/impl/codegen/atm_gcc_sync.h
1204 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001205 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001206 include/grpc/impl/codegen/port_platform.h
1207 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001208 include/grpc/impl/codegen/sync.h
1209 include/grpc/impl/codegen/sync_generic.h
1210 include/grpc/impl/codegen/sync_posix.h
1211 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001212 include/grpc++/impl/codegen/async_stream.h
1213 include/grpc++/impl/codegen/async_unary_call.h
1214 include/grpc++/impl/codegen/call.h
1215 include/grpc++/impl/codegen/call_hook.h
1216 include/grpc++/impl/codegen/channel_interface.h
1217 include/grpc++/impl/codegen/client_context.h
1218 include/grpc++/impl/codegen/client_unary_call.h
1219 include/grpc++/impl/codegen/completion_queue.h
1220 include/grpc++/impl/codegen/completion_queue_tag.h
1221 include/grpc++/impl/codegen/config.h
1222 include/grpc++/impl/codegen/core_codegen_interface.h
1223 include/grpc++/impl/codegen/create_auth_context.h
1224 include/grpc++/impl/codegen/grpc_library.h
1225 include/grpc++/impl/codegen/method_handler_impl.h
1226 include/grpc++/impl/codegen/rpc_method.h
1227 include/grpc++/impl/codegen/rpc_service_method.h
1228 include/grpc++/impl/codegen/security/auth_context.h
1229 include/grpc++/impl/codegen/serialization_traits.h
1230 include/grpc++/impl/codegen/server_context.h
1231 include/grpc++/impl/codegen/server_interface.h
1232 include/grpc++/impl/codegen/service_type.h
1233 include/grpc++/impl/codegen/status.h
1234 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001235 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001236 include/grpc++/impl/codegen/string_ref.h
1237 include/grpc++/impl/codegen/stub_options.h
1238 include/grpc++/impl/codegen/sync.h
1239 include/grpc++/impl/codegen/sync_cxx11.h
1240 include/grpc++/impl/codegen/sync_no_cxx11.h
1241 include/grpc++/impl/codegen/sync_stream.h
1242 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001243)
1244 string(REPLACE "include/" "" _path ${_hdr})
1245 get_filename_component(_path ${_path} PATH)
1246 install(FILES ${_hdr}
1247 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1248 )
1249endforeach()
1250
1251
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001252if (gRPC_INSTALL)
1253 install(TARGETS grpc++ EXPORT gRPCTargets
1254 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1255 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1256 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1257 )
1258endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001259
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001260
1261add_library(grpc++_reflection
1262 src/cpp/ext/proto_server_reflection.cc
1263 src/cpp/ext/proto_server_reflection_plugin.cc
1264 src/cpp/ext/reflection.grpc.pb.cc
1265 src/cpp/ext/reflection.pb.cc
1266)
1267
1268target_include_directories(grpc++_reflection
1269 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1270 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1271 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1272 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001273 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001274 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1275)
1276
1277target_link_libraries(grpc++_reflection
1278 grpc++
1279)
1280
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001281foreach(_hdr
1282 include/grpc++/ext/proto_server_reflection_plugin.h
1283 include/grpc++/ext/reflection.grpc.pb.h
1284 include/grpc++/ext/reflection.pb.h
1285 include/grpc++/impl/codegen/proto_utils.h
1286 include/grpc++/impl/codegen/async_stream.h
1287 include/grpc++/impl/codegen/async_unary_call.h
1288 include/grpc++/impl/codegen/call.h
1289 include/grpc++/impl/codegen/call_hook.h
1290 include/grpc++/impl/codegen/channel_interface.h
1291 include/grpc++/impl/codegen/client_context.h
1292 include/grpc++/impl/codegen/client_unary_call.h
1293 include/grpc++/impl/codegen/completion_queue.h
1294 include/grpc++/impl/codegen/completion_queue_tag.h
1295 include/grpc++/impl/codegen/config.h
1296 include/grpc++/impl/codegen/core_codegen_interface.h
1297 include/grpc++/impl/codegen/create_auth_context.h
1298 include/grpc++/impl/codegen/grpc_library.h
1299 include/grpc++/impl/codegen/method_handler_impl.h
1300 include/grpc++/impl/codegen/rpc_method.h
1301 include/grpc++/impl/codegen/rpc_service_method.h
1302 include/grpc++/impl/codegen/security/auth_context.h
1303 include/grpc++/impl/codegen/serialization_traits.h
1304 include/grpc++/impl/codegen/server_context.h
1305 include/grpc++/impl/codegen/server_interface.h
1306 include/grpc++/impl/codegen/service_type.h
1307 include/grpc++/impl/codegen/status.h
1308 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001309 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001310 include/grpc++/impl/codegen/string_ref.h
1311 include/grpc++/impl/codegen/stub_options.h
1312 include/grpc++/impl/codegen/sync.h
1313 include/grpc++/impl/codegen/sync_cxx11.h
1314 include/grpc++/impl/codegen/sync_no_cxx11.h
1315 include/grpc++/impl/codegen/sync_stream.h
1316 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001317 include/grpc/impl/codegen/byte_buffer_reader.h
1318 include/grpc/impl/codegen/compression_types.h
1319 include/grpc/impl/codegen/connectivity_state.h
1320 include/grpc/impl/codegen/grpc_types.h
1321 include/grpc/impl/codegen/propagation_bits.h
1322 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001323 include/grpc/impl/codegen/atm.h
1324 include/grpc/impl/codegen/atm_gcc_atomic.h
1325 include/grpc/impl/codegen/atm_gcc_sync.h
1326 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001327 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001328 include/grpc/impl/codegen/port_platform.h
1329 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001330 include/grpc/impl/codegen/sync.h
1331 include/grpc/impl/codegen/sync_generic.h
1332 include/grpc/impl/codegen/sync_posix.h
1333 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001334 include/grpc++/impl/codegen/config_protobuf.h
1335)
1336 string(REPLACE "include/" "" _path ${_hdr})
1337 get_filename_component(_path ${_path} PATH)
1338 install(FILES ${_hdr}
1339 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1340 )
1341endforeach()
1342
1343
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001344if (gRPC_INSTALL)
1345 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1346 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1347 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1348 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1349 )
1350endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001351
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001352
1353add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001354 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001355 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001356 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001357 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001358 src/cpp/client/client_context.cc
1359 src/cpp/client/create_channel.cc
1360 src/cpp/client/create_channel_internal.cc
1361 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001362 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001363 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001364 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001365 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001366 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001367 src/cpp/common/core_codegen.cc
1368 src/cpp/common/rpc_method.cc
1369 src/cpp/server/async_generic_service.cc
1370 src/cpp/server/create_default_thread_pool.cc
1371 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001372 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001373 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001374 src/cpp/server/server_context.cc
1375 src/cpp/server/server_credentials.cc
1376 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001377 src/cpp/util/byte_buffer_cc.cc
1378 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001379 src/cpp/util/status.cc
1380 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001381 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001382 src/core/lib/channel/channel_args.c
1383 src/core/lib/channel/channel_stack.c
1384 src/core/lib/channel/channel_stack_builder.c
1385 src/core/lib/channel/compress_filter.c
1386 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001387 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001388 src/core/lib/channel/http_client_filter.c
1389 src/core/lib/channel/http_server_filter.c
1390 src/core/lib/compression/compression.c
1391 src/core/lib/compression/message_compress.c
1392 src/core/lib/debug/trace.c
1393 src/core/lib/http/format_request.c
1394 src/core/lib/http/httpcli.c
1395 src/core/lib/http/parser.c
1396 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001397 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001398 src/core/lib/iomgr/endpoint.c
1399 src/core/lib/iomgr/endpoint_pair_posix.c
1400 src/core/lib/iomgr/endpoint_pair_windows.c
1401 src/core/lib/iomgr/error.c
1402 src/core/lib/iomgr/ev_epoll_linux.c
1403 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1404 src/core/lib/iomgr/ev_poll_posix.c
1405 src/core/lib/iomgr/ev_posix.c
1406 src/core/lib/iomgr/exec_ctx.c
1407 src/core/lib/iomgr/executor.c
1408 src/core/lib/iomgr/iocp_windows.c
1409 src/core/lib/iomgr/iomgr.c
1410 src/core/lib/iomgr/iomgr_posix.c
1411 src/core/lib/iomgr/iomgr_windows.c
1412 src/core/lib/iomgr/load_file.c
1413 src/core/lib/iomgr/network_status_tracker.c
1414 src/core/lib/iomgr/polling_entity.c
1415 src/core/lib/iomgr/pollset_set_windows.c
1416 src/core/lib/iomgr/pollset_windows.c
1417 src/core/lib/iomgr/resolve_address_posix.c
1418 src/core/lib/iomgr/resolve_address_windows.c
1419 src/core/lib/iomgr/sockaddr_utils.c
1420 src/core/lib/iomgr/socket_utils_common_posix.c
1421 src/core/lib/iomgr/socket_utils_linux.c
1422 src/core/lib/iomgr/socket_utils_posix.c
1423 src/core/lib/iomgr/socket_windows.c
1424 src/core/lib/iomgr/tcp_client_posix.c
1425 src/core/lib/iomgr/tcp_client_windows.c
1426 src/core/lib/iomgr/tcp_posix.c
1427 src/core/lib/iomgr/tcp_server_posix.c
1428 src/core/lib/iomgr/tcp_server_windows.c
1429 src/core/lib/iomgr/tcp_windows.c
1430 src/core/lib/iomgr/time_averaged_stats.c
1431 src/core/lib/iomgr/timer.c
1432 src/core/lib/iomgr/timer_heap.c
1433 src/core/lib/iomgr/udp_server.c
1434 src/core/lib/iomgr/unix_sockets_posix.c
1435 src/core/lib/iomgr/unix_sockets_posix_noop.c
1436 src/core/lib/iomgr/wakeup_fd_eventfd.c
1437 src/core/lib/iomgr/wakeup_fd_nospecial.c
1438 src/core/lib/iomgr/wakeup_fd_pipe.c
1439 src/core/lib/iomgr/wakeup_fd_posix.c
1440 src/core/lib/iomgr/workqueue_posix.c
1441 src/core/lib/iomgr/workqueue_windows.c
1442 src/core/lib/json/json.c
1443 src/core/lib/json/json_reader.c
1444 src/core/lib/json/json_string.c
1445 src/core/lib/json/json_writer.c
1446 src/core/lib/surface/alarm.c
1447 src/core/lib/surface/api_trace.c
1448 src/core/lib/surface/byte_buffer.c
1449 src/core/lib/surface/byte_buffer_reader.c
1450 src/core/lib/surface/call.c
1451 src/core/lib/surface/call_details.c
1452 src/core/lib/surface/call_log_batch.c
1453 src/core/lib/surface/channel.c
1454 src/core/lib/surface/channel_init.c
1455 src/core/lib/surface/channel_ping.c
1456 src/core/lib/surface/channel_stack_type.c
1457 src/core/lib/surface/completion_queue.c
1458 src/core/lib/surface/event_string.c
1459 src/core/lib/surface/lame_client.c
1460 src/core/lib/surface/metadata_array.c
1461 src/core/lib/surface/server.c
1462 src/core/lib/surface/validate_metadata.c
1463 src/core/lib/surface/version.c
1464 src/core/lib/transport/byte_stream.c
1465 src/core/lib/transport/connectivity_state.c
1466 src/core/lib/transport/metadata.c
1467 src/core/lib/transport/metadata_batch.c
1468 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001469 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001470 src/core/lib/transport/transport.c
1471 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001472 src/cpp/codegen/codegen_init.cc
1473)
1474
1475target_include_directories(grpc++_unsecure
1476 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1477 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1478 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1479 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001480 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001481 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1482)
1483
1484target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001485 ${_gRPC_BASELIB_LIBRARIES}
1486 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001487 gpr
1488 grpc_unsecure
1489)
1490
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001491foreach(_hdr
1492 include/grpc++/alarm.h
1493 include/grpc++/channel.h
1494 include/grpc++/client_context.h
1495 include/grpc++/completion_queue.h
1496 include/grpc++/create_channel.h
1497 include/grpc++/create_channel_posix.h
1498 include/grpc++/generic/async_generic_service.h
1499 include/grpc++/generic/generic_stub.h
1500 include/grpc++/grpc++.h
1501 include/grpc++/impl/call.h
1502 include/grpc++/impl/client_unary_call.h
1503 include/grpc++/impl/codegen/core_codegen.h
1504 include/grpc++/impl/grpc_library.h
1505 include/grpc++/impl/method_handler_impl.h
1506 include/grpc++/impl/rpc_method.h
1507 include/grpc++/impl/rpc_service_method.h
1508 include/grpc++/impl/serialization_traits.h
1509 include/grpc++/impl/server_builder_option.h
1510 include/grpc++/impl/server_builder_plugin.h
1511 include/grpc++/impl/server_initializer.h
1512 include/grpc++/impl/service_type.h
1513 include/grpc++/impl/sync.h
1514 include/grpc++/impl/sync_cxx11.h
1515 include/grpc++/impl/sync_no_cxx11.h
1516 include/grpc++/impl/thd.h
1517 include/grpc++/impl/thd_cxx11.h
1518 include/grpc++/impl/thd_no_cxx11.h
1519 include/grpc++/security/auth_context.h
1520 include/grpc++/security/auth_metadata_processor.h
1521 include/grpc++/security/credentials.h
1522 include/grpc++/security/server_credentials.h
1523 include/grpc++/server.h
1524 include/grpc++/server_builder.h
1525 include/grpc++/server_context.h
1526 include/grpc++/server_posix.h
1527 include/grpc++/support/async_stream.h
1528 include/grpc++/support/async_unary_call.h
1529 include/grpc++/support/byte_buffer.h
1530 include/grpc++/support/channel_arguments.h
1531 include/grpc++/support/config.h
1532 include/grpc++/support/slice.h
1533 include/grpc++/support/status.h
1534 include/grpc++/support/status_code_enum.h
1535 include/grpc++/support/string_ref.h
1536 include/grpc++/support/stub_options.h
1537 include/grpc++/support/sync_stream.h
1538 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001539 include/grpc/byte_buffer.h
1540 include/grpc/byte_buffer_reader.h
1541 include/grpc/compression.h
1542 include/grpc/grpc.h
1543 include/grpc/grpc_posix.h
1544 include/grpc/grpc_security_constants.h
1545 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001546 include/grpc/impl/codegen/byte_buffer_reader.h
1547 include/grpc/impl/codegen/compression_types.h
1548 include/grpc/impl/codegen/connectivity_state.h
1549 include/grpc/impl/codegen/grpc_types.h
1550 include/grpc/impl/codegen/propagation_bits.h
1551 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001552 include/grpc/impl/codegen/atm.h
1553 include/grpc/impl/codegen/atm_gcc_atomic.h
1554 include/grpc/impl/codegen/atm_gcc_sync.h
1555 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001556 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001557 include/grpc/impl/codegen/port_platform.h
1558 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001559 include/grpc/impl/codegen/sync.h
1560 include/grpc/impl/codegen/sync_generic.h
1561 include/grpc/impl/codegen/sync_posix.h
1562 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001563 include/grpc++/impl/codegen/async_stream.h
1564 include/grpc++/impl/codegen/async_unary_call.h
1565 include/grpc++/impl/codegen/call.h
1566 include/grpc++/impl/codegen/call_hook.h
1567 include/grpc++/impl/codegen/channel_interface.h
1568 include/grpc++/impl/codegen/client_context.h
1569 include/grpc++/impl/codegen/client_unary_call.h
1570 include/grpc++/impl/codegen/completion_queue.h
1571 include/grpc++/impl/codegen/completion_queue_tag.h
1572 include/grpc++/impl/codegen/config.h
1573 include/grpc++/impl/codegen/core_codegen_interface.h
1574 include/grpc++/impl/codegen/create_auth_context.h
1575 include/grpc++/impl/codegen/grpc_library.h
1576 include/grpc++/impl/codegen/method_handler_impl.h
1577 include/grpc++/impl/codegen/rpc_method.h
1578 include/grpc++/impl/codegen/rpc_service_method.h
1579 include/grpc++/impl/codegen/security/auth_context.h
1580 include/grpc++/impl/codegen/serialization_traits.h
1581 include/grpc++/impl/codegen/server_context.h
1582 include/grpc++/impl/codegen/server_interface.h
1583 include/grpc++/impl/codegen/service_type.h
1584 include/grpc++/impl/codegen/status.h
1585 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001586 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001587 include/grpc++/impl/codegen/string_ref.h
1588 include/grpc++/impl/codegen/stub_options.h
1589 include/grpc++/impl/codegen/sync.h
1590 include/grpc++/impl/codegen/sync_cxx11.h
1591 include/grpc++/impl/codegen/sync_no_cxx11.h
1592 include/grpc++/impl/codegen/sync_stream.h
1593 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001594)
1595 string(REPLACE "include/" "" _path ${_hdr})
1596 get_filename_component(_path ${_path} PATH)
1597 install(FILES ${_hdr}
1598 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1599 )
1600endforeach()
1601
1602
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001603if (gRPC_INSTALL)
1604 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1605 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1606 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1607 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1608 )
1609endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001610
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001611
1612add_library(grpc_plugin_support
1613 src/compiler/cpp_generator.cc
1614 src/compiler/csharp_generator.cc
1615 src/compiler/node_generator.cc
1616 src/compiler/objective_c_generator.cc
1617 src/compiler/python_generator.cc
1618 src/compiler/ruby_generator.cc
1619)
1620
1621target_include_directories(grpc_plugin_support
1622 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1623 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1624 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1625 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001626 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001627 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1628)
1629
1630target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001631 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001632)
1633
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001634foreach(_hdr
1635 include/grpc++/impl/codegen/config_protobuf.h
1636)
1637 string(REPLACE "include/" "" _path ${_hdr})
1638 get_filename_component(_path ${_path} PATH)
1639 install(FILES ${_hdr}
1640 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1641 )
1642endforeach()
1643
1644
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001645if (gRPC_INSTALL)
1646 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1647 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1648 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1649 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1650 )
1651endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001652
1653
1654add_library(grpc_csharp_ext
1655 src/csharp/ext/grpc_csharp_ext.c
1656)
1657
1658target_include_directories(grpc_csharp_ext
1659 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1660 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1661 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1662 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001663 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001664 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1665)
1666
1667target_link_libraries(grpc_csharp_ext
1668 grpc
1669 gpr
1670)
1671
1672
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001673
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001674if (gRPC_INSTALL)
1675 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1676 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1677 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1678 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1679 )
1680endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001681
1682
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001683
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001684add_executable(gen_hpack_tables
1685 tools/codegen/core/gen_hpack_tables.c
1686)
1687
1688target_include_directories(gen_hpack_tables
1689 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1690 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1691 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1692 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1693 PRIVATE ${ZLIB_ROOT_DIR}
1694 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1695)
1696
1697target_link_libraries(gen_hpack_tables
1698 gpr
1699 grpc
1700)
1701
1702
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001703if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001704 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1705 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1706 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1707 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1708 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001709endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001710
1711
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001712add_executable(gen_legal_metadata_characters
1713 tools/codegen/core/gen_legal_metadata_characters.c
1714)
1715
1716target_include_directories(gen_legal_metadata_characters
1717 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1718 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1719 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1720 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1721 PRIVATE ${ZLIB_ROOT_DIR}
1722 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1723)
1724
1725
1726
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001727if (gRPC_INSTALL)
1728 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1729 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1730 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1731 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1732 )
1733endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001734
1735
Craig Tiller1c7a8422016-08-18 11:13:11 -07001736add_executable(gen_percent_encoding_tables
1737 tools/codegen/core/gen_percent_encoding_tables.c
1738)
1739
1740target_include_directories(gen_percent_encoding_tables
1741 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1742 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1743 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1744 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1745 PRIVATE ${ZLIB_ROOT_DIR}
1746 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1747)
1748
1749
1750
Craig Tiller344834b2016-09-07 08:39:05 -07001751if (gRPC_INSTALL)
1752 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1753 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1754 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1755 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1756 )
1757endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001758
1759
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001760add_executable(grpc_create_jwt
1761 test/core/security/create_jwt.c
1762)
1763
1764target_include_directories(grpc_create_jwt
1765 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1766 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1767 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1768 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1769 PRIVATE ${ZLIB_ROOT_DIR}
1770 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1771)
1772
1773target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001774 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001775 grpc
1776 gpr
1777)
1778
1779
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001780if (gRPC_INSTALL)
1781 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1782 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1783 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1784 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1785 )
1786endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001787
1788
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001789add_executable(grpc_print_google_default_creds_token
1790 test/core/security/print_google_default_creds_token.c
1791)
1792
1793target_include_directories(grpc_print_google_default_creds_token
1794 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1795 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1796 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1797 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1798 PRIVATE ${ZLIB_ROOT_DIR}
1799 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1800)
1801
1802target_link_libraries(grpc_print_google_default_creds_token
1803 grpc
1804 gpr
1805)
1806
1807
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001808if (gRPC_INSTALL)
1809 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1810 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1811 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1812 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1813 )
1814endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001815
1816
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001817add_executable(grpc_verify_jwt
1818 test/core/security/verify_jwt.c
1819)
1820
1821target_include_directories(grpc_verify_jwt
1822 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1823 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1824 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1825 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1826 PRIVATE ${ZLIB_ROOT_DIR}
1827 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1828)
1829
1830target_link_libraries(grpc_verify_jwt
1831 grpc
1832 gpr
1833)
1834
1835
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001836if (gRPC_INSTALL)
1837 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1838 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1839 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1840 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1841 )
1842endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001843
1844
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001845add_executable(grpc_cpp_plugin
1846 src/compiler/cpp_plugin.cc
1847)
1848
1849target_include_directories(grpc_cpp_plugin
1850 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1851 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1852 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1853 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1854 PRIVATE ${ZLIB_ROOT_DIR}
1855 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1856)
1857
1858target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001859 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001860 grpc_plugin_support
1861)
1862
1863
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001864if (gRPC_INSTALL)
1865 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1866 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1867 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1868 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1869 )
1870endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001871
1872
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001873add_executable(grpc_csharp_plugin
1874 src/compiler/csharp_plugin.cc
1875)
1876
1877target_include_directories(grpc_csharp_plugin
1878 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1879 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1880 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1881 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1882 PRIVATE ${ZLIB_ROOT_DIR}
1883 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1884)
1885
1886target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001887 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001888 grpc_plugin_support
1889)
1890
1891
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001892if (gRPC_INSTALL)
1893 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1894 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1895 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1896 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1897 )
1898endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001899
1900
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001901add_executable(grpc_node_plugin
1902 src/compiler/node_plugin.cc
1903)
1904
1905target_include_directories(grpc_node_plugin
1906 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1907 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1908 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1909 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1910 PRIVATE ${ZLIB_ROOT_DIR}
1911 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1912)
1913
1914target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001915 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001916 grpc_plugin_support
1917)
1918
1919
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001920if (gRPC_INSTALL)
1921 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1922 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1923 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1924 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1925 )
1926endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001927
1928
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001929add_executable(grpc_objective_c_plugin
1930 src/compiler/objective_c_plugin.cc
1931)
1932
1933target_include_directories(grpc_objective_c_plugin
1934 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1936 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1937 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1938 PRIVATE ${ZLIB_ROOT_DIR}
1939 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1940)
1941
1942target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001943 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001944 grpc_plugin_support
1945)
1946
1947
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001948if (gRPC_INSTALL)
1949 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1950 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1951 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1952 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1953 )
1954endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001955
1956
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001957add_executable(grpc_python_plugin
1958 src/compiler/python_plugin.cc
1959)
1960
1961target_include_directories(grpc_python_plugin
1962 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1963 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1964 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1965 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1966 PRIVATE ${ZLIB_ROOT_DIR}
1967 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1968)
1969
1970target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001971 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001972 grpc_plugin_support
1973)
1974
1975
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001976if (gRPC_INSTALL)
1977 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
1978 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1979 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1980 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1981 )
1982endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001983
1984
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001985add_executable(grpc_ruby_plugin
1986 src/compiler/ruby_plugin.cc
1987)
1988
1989target_include_directories(grpc_ruby_plugin
1990 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1991 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1992 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1993 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1994 PRIVATE ${ZLIB_ROOT_DIR}
1995 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1996)
1997
1998target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001999 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002000 grpc_plugin_support
2001)
2002
2003
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002004if (gRPC_INSTALL)
2005 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2006 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2007 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2008 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2009 )
2010endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002011
2012
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002013
2014
2015
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002016
2017
2018
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002019if (gRPC_INSTALL)
2020 install(EXPORT gRPCTargets
2021 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2022 NAMESPACE gRPC::
2023 )
2024endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002025
2026foreach(_config gRPCConfig gRPCConfigVersion)
2027 configure_file(tools/cmake/${_config}.cmake.in
2028 ${_config}.cmake @ONLY)
2029 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2030 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2031 )
2032endforeach()