blob: f49c8ffda18036db7a0ab0d6c11470e30c677e33 [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
194 src/core/lib/support/murmur_hash.c
195 src/core/lib/support/slice.c
196 src/core/lib/support/slice_buffer.c
197 src/core/lib/support/stack_lockfree.c
198 src/core/lib/support/string.c
199 src/core/lib/support/string_posix.c
200 src/core/lib/support/string_util_windows.c
201 src/core/lib/support/string_windows.c
202 src/core/lib/support/subprocess_posix.c
203 src/core/lib/support/subprocess_windows.c
204 src/core/lib/support/sync.c
205 src/core/lib/support/sync_posix.c
206 src/core/lib/support/sync_windows.c
207 src/core/lib/support/thd.c
208 src/core/lib/support/thd_posix.c
209 src/core/lib/support/thd_windows.c
210 src/core/lib/support/time.c
211 src/core/lib/support/time_posix.c
212 src/core/lib/support/time_precise.c
213 src/core/lib/support/time_windows.c
214 src/core/lib/support/tls_pthread.c
215 src/core/lib/support/tmpfile_msys.c
216 src/core/lib/support/tmpfile_posix.c
217 src/core/lib/support/tmpfile_windows.c
218 src/core/lib/support/wrap_memcpy.c
219)
220
221target_include_directories(gpr
222 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
223 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
224 PRIVATE ${BORINGSSL_ROOT_DIR}/include
225 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300226 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100227 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
228)
229
230
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300231foreach(_hdr
232 include/grpc/support/alloc.h
233 include/grpc/support/atm.h
234 include/grpc/support/atm_gcc_atomic.h
235 include/grpc/support/atm_gcc_sync.h
236 include/grpc/support/atm_windows.h
237 include/grpc/support/avl.h
238 include/grpc/support/cmdline.h
239 include/grpc/support/cpu.h
240 include/grpc/support/histogram.h
241 include/grpc/support/host_port.h
242 include/grpc/support/log.h
243 include/grpc/support/log_windows.h
244 include/grpc/support/port_platform.h
245 include/grpc/support/slice.h
246 include/grpc/support/slice_buffer.h
247 include/grpc/support/string_util.h
248 include/grpc/support/subprocess.h
249 include/grpc/support/sync.h
250 include/grpc/support/sync_generic.h
251 include/grpc/support/sync_posix.h
252 include/grpc/support/sync_windows.h
253 include/grpc/support/thd.h
254 include/grpc/support/time.h
255 include/grpc/support/tls.h
256 include/grpc/support/tls_gcc.h
257 include/grpc/support/tls_msvc.h
258 include/grpc/support/tls_pthread.h
259 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300260 include/grpc/impl/codegen/atm.h
261 include/grpc/impl/codegen/atm_gcc_atomic.h
262 include/grpc/impl/codegen/atm_gcc_sync.h
263 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700264 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300265 include/grpc/impl/codegen/port_platform.h
266 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300267 include/grpc/impl/codegen/sync.h
268 include/grpc/impl/codegen/sync_generic.h
269 include/grpc/impl/codegen/sync_posix.h
270 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300271)
272 string(REPLACE "include/" "" _path ${_hdr})
273 get_filename_component(_path ${_path} PATH)
274 install(FILES ${_hdr}
275 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
276 )
277endforeach()
278
279
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300280if (gRPC_INSTALL)
281 install(TARGETS gpr EXPORT gRPCTargets
282 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
283 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
284 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
285 )
286endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300287
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100288
289add_library(grpc
290 src/core/lib/surface/init.c
291 src/core/lib/channel/channel_args.c
292 src/core/lib/channel/channel_stack.c
293 src/core/lib/channel/channel_stack_builder.c
294 src/core/lib/channel/compress_filter.c
295 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700296 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100297 src/core/lib/channel/http_client_filter.c
298 src/core/lib/channel/http_server_filter.c
299 src/core/lib/compression/compression.c
300 src/core/lib/compression/message_compress.c
301 src/core/lib/debug/trace.c
302 src/core/lib/http/format_request.c
303 src/core/lib/http/httpcli.c
304 src/core/lib/http/parser.c
305 src/core/lib/iomgr/closure.c
306 src/core/lib/iomgr/endpoint.c
307 src/core/lib/iomgr/endpoint_pair_posix.c
308 src/core/lib/iomgr/endpoint_pair_windows.c
309 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200310 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100311 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
312 src/core/lib/iomgr/ev_poll_posix.c
313 src/core/lib/iomgr/ev_posix.c
314 src/core/lib/iomgr/exec_ctx.c
315 src/core/lib/iomgr/executor.c
316 src/core/lib/iomgr/iocp_windows.c
317 src/core/lib/iomgr/iomgr.c
318 src/core/lib/iomgr/iomgr_posix.c
319 src/core/lib/iomgr/iomgr_windows.c
320 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200321 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100322 src/core/lib/iomgr/polling_entity.c
323 src/core/lib/iomgr/pollset_set_windows.c
324 src/core/lib/iomgr/pollset_windows.c
325 src/core/lib/iomgr/resolve_address_posix.c
326 src/core/lib/iomgr/resolve_address_windows.c
327 src/core/lib/iomgr/sockaddr_utils.c
328 src/core/lib/iomgr/socket_utils_common_posix.c
329 src/core/lib/iomgr/socket_utils_linux.c
330 src/core/lib/iomgr/socket_utils_posix.c
331 src/core/lib/iomgr/socket_windows.c
332 src/core/lib/iomgr/tcp_client_posix.c
333 src/core/lib/iomgr/tcp_client_windows.c
334 src/core/lib/iomgr/tcp_posix.c
335 src/core/lib/iomgr/tcp_server_posix.c
336 src/core/lib/iomgr/tcp_server_windows.c
337 src/core/lib/iomgr/tcp_windows.c
338 src/core/lib/iomgr/time_averaged_stats.c
339 src/core/lib/iomgr/timer.c
340 src/core/lib/iomgr/timer_heap.c
341 src/core/lib/iomgr/udp_server.c
342 src/core/lib/iomgr/unix_sockets_posix.c
343 src/core/lib/iomgr/unix_sockets_posix_noop.c
344 src/core/lib/iomgr/wakeup_fd_eventfd.c
345 src/core/lib/iomgr/wakeup_fd_nospecial.c
346 src/core/lib/iomgr/wakeup_fd_pipe.c
347 src/core/lib/iomgr/wakeup_fd_posix.c
348 src/core/lib/iomgr/workqueue_posix.c
349 src/core/lib/iomgr/workqueue_windows.c
350 src/core/lib/json/json.c
351 src/core/lib/json/json_reader.c
352 src/core/lib/json/json_string.c
353 src/core/lib/json/json_writer.c
354 src/core/lib/surface/alarm.c
355 src/core/lib/surface/api_trace.c
356 src/core/lib/surface/byte_buffer.c
357 src/core/lib/surface/byte_buffer_reader.c
358 src/core/lib/surface/call.c
359 src/core/lib/surface/call_details.c
360 src/core/lib/surface/call_log_batch.c
361 src/core/lib/surface/channel.c
362 src/core/lib/surface/channel_init.c
363 src/core/lib/surface/channel_ping.c
364 src/core/lib/surface/channel_stack_type.c
365 src/core/lib/surface/completion_queue.c
366 src/core/lib/surface/event_string.c
367 src/core/lib/surface/lame_client.c
368 src/core/lib/surface/metadata_array.c
369 src/core/lib/surface/server.c
370 src/core/lib/surface/validate_metadata.c
371 src/core/lib/surface/version.c
372 src/core/lib/transport/byte_stream.c
373 src/core/lib/transport/connectivity_state.c
374 src/core/lib/transport/metadata.c
375 src/core/lib/transport/metadata_batch.c
376 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400377 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100378 src/core/lib/transport/transport.c
379 src/core/lib/transport/transport_op_string.c
380 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
381 src/core/ext/transport/chttp2/transport/bin_decoder.c
382 src/core/ext/transport/chttp2/transport/bin_encoder.c
383 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
384 src/core/ext/transport/chttp2/transport/chttp2_transport.c
385 src/core/ext/transport/chttp2/transport/frame_data.c
386 src/core/ext/transport/chttp2/transport/frame_goaway.c
387 src/core/ext/transport/chttp2/transport/frame_ping.c
388 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
389 src/core/ext/transport/chttp2/transport/frame_settings.c
390 src/core/ext/transport/chttp2/transport/frame_window_update.c
391 src/core/ext/transport/chttp2/transport/hpack_encoder.c
392 src/core/ext/transport/chttp2/transport/hpack_parser.c
393 src/core/ext/transport/chttp2/transport/hpack_table.c
394 src/core/ext/transport/chttp2/transport/huffsyms.c
395 src/core/ext/transport/chttp2/transport/incoming_metadata.c
396 src/core/ext/transport/chttp2/transport/parsing.c
397 src/core/ext/transport/chttp2/transport/status_conversion.c
398 src/core/ext/transport/chttp2/transport/stream_lists.c
399 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100400 src/core/ext/transport/chttp2/transport/varint.c
401 src/core/ext/transport/chttp2/transport/writing.c
402 src/core/ext/transport/chttp2/alpn/alpn.c
403 src/core/lib/http/httpcli_security_connector.c
404 src/core/lib/security/context/security_context.c
405 src/core/lib/security/credentials/composite/composite_credentials.c
406 src/core/lib/security/credentials/credentials.c
407 src/core/lib/security/credentials/credentials_metadata.c
408 src/core/lib/security/credentials/fake/fake_credentials.c
409 src/core/lib/security/credentials/google_default/credentials_posix.c
410 src/core/lib/security/credentials/google_default/credentials_windows.c
411 src/core/lib/security/credentials/google_default/google_default_credentials.c
412 src/core/lib/security/credentials/iam/iam_credentials.c
413 src/core/lib/security/credentials/jwt/json_token.c
414 src/core/lib/security/credentials/jwt/jwt_credentials.c
415 src/core/lib/security/credentials/jwt/jwt_verifier.c
416 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
417 src/core/lib/security/credentials/plugin/plugin_credentials.c
418 src/core/lib/security/credentials/ssl/ssl_credentials.c
419 src/core/lib/security/transport/client_auth_filter.c
420 src/core/lib/security/transport/handshake.c
421 src/core/lib/security/transport/secure_endpoint.c
422 src/core/lib/security/transport/security_connector.c
423 src/core/lib/security/transport/server_auth_filter.c
424 src/core/lib/security/transport/tsi_error.c
425 src/core/lib/security/util/b64.c
426 src/core/lib/security/util/json_util.c
427 src/core/lib/surface/init_secure.c
428 src/core/lib/tsi/fake_transport_security.c
429 src/core/lib/tsi/ssl_transport_security.c
430 src/core/lib/tsi/transport_security.c
431 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
432 src/core/ext/client_config/channel_connectivity.c
433 src/core/ext/client_config/client_channel.c
434 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100435 src/core/ext/client_config/client_config_plugin.c
436 src/core/ext/client_config/connector.c
437 src/core/ext/client_config/default_initial_connect_string.c
438 src/core/ext/client_config/initial_connect_string.c
439 src/core/ext/client_config/lb_policy.c
440 src/core/ext/client_config/lb_policy_factory.c
441 src/core/ext/client_config/lb_policy_registry.c
442 src/core/ext/client_config/parse_address.c
443 src/core/ext/client_config/resolver.c
444 src/core/ext/client_config/resolver_factory.c
445 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700446 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100447 src/core/ext/client_config/subchannel.c
448 src/core/ext/client_config/subchannel_call_holder.c
449 src/core/ext/client_config/subchannel_index.c
450 src/core/ext/client_config/uri_parser.c
451 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
452 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
453 src/core/ext/transport/chttp2/client/insecure/channel_create.c
454 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700455 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100456 src/core/ext/lb_policy/grpclb/load_balancer_api.c
457 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
458 third_party/nanopb/pb_common.c
459 third_party/nanopb/pb_decode.c
460 third_party/nanopb/pb_encode.c
461 src/core/ext/lb_policy/pick_first/pick_first.c
462 src/core/ext/lb_policy/round_robin/round_robin.c
463 src/core/ext/resolver/dns/native/dns_resolver.c
464 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
465 src/core/ext/load_reporting/load_reporting.c
466 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700467 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100468 src/core/ext/census/context.c
469 src/core/ext/census/gen/census.pb.c
470 src/core/ext/census/grpc_context.c
471 src/core/ext/census/grpc_filter.c
472 src/core/ext/census/grpc_plugin.c
473 src/core/ext/census/initialize.c
474 src/core/ext/census/mlog.c
475 src/core/ext/census/operation.c
476 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700477 src/core/ext/census/resource.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100478 src/core/ext/census/tracing.c
479 src/core/plugin_registry/grpc_plugin_registry.c
480)
481
482target_include_directories(grpc
483 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
484 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
485 PRIVATE ${BORINGSSL_ROOT_DIR}/include
486 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300487 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100488 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
489)
490
491target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300492 ${_gRPC_BASELIB_LIBRARIES}
493 ${_gRPC_SSL_LIBRARIES}
494 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100495 gpr
496)
497
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300498foreach(_hdr
499 include/grpc/byte_buffer.h
500 include/grpc/byte_buffer_reader.h
501 include/grpc/compression.h
502 include/grpc/grpc.h
503 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200504 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300505 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300506 include/grpc/impl/codegen/byte_buffer_reader.h
507 include/grpc/impl/codegen/compression_types.h
508 include/grpc/impl/codegen/connectivity_state.h
509 include/grpc/impl/codegen/grpc_types.h
510 include/grpc/impl/codegen/propagation_bits.h
511 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300512 include/grpc/impl/codegen/atm.h
513 include/grpc/impl/codegen/atm_gcc_atomic.h
514 include/grpc/impl/codegen/atm_gcc_sync.h
515 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700516 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300517 include/grpc/impl/codegen/port_platform.h
518 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300519 include/grpc/impl/codegen/sync.h
520 include/grpc/impl/codegen/sync_generic.h
521 include/grpc/impl/codegen/sync_posix.h
522 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300523 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300524 include/grpc/census.h
525)
526 string(REPLACE "include/" "" _path ${_hdr})
527 get_filename_component(_path ${_path} PATH)
528 install(FILES ${_hdr}
529 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
530 )
531endforeach()
532
533
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300534if (gRPC_INSTALL)
535 install(TARGETS grpc EXPORT gRPCTargets
536 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
537 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
538 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
539 )
540endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300541
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100542
543add_library(grpc_cronet
544 src/core/lib/surface/init.c
545 src/core/lib/channel/channel_args.c
546 src/core/lib/channel/channel_stack.c
547 src/core/lib/channel/channel_stack_builder.c
548 src/core/lib/channel/compress_filter.c
549 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700550 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100551 src/core/lib/channel/http_client_filter.c
552 src/core/lib/channel/http_server_filter.c
553 src/core/lib/compression/compression.c
554 src/core/lib/compression/message_compress.c
555 src/core/lib/debug/trace.c
556 src/core/lib/http/format_request.c
557 src/core/lib/http/httpcli.c
558 src/core/lib/http/parser.c
559 src/core/lib/iomgr/closure.c
560 src/core/lib/iomgr/endpoint.c
561 src/core/lib/iomgr/endpoint_pair_posix.c
562 src/core/lib/iomgr/endpoint_pair_windows.c
563 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200564 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100565 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
566 src/core/lib/iomgr/ev_poll_posix.c
567 src/core/lib/iomgr/ev_posix.c
568 src/core/lib/iomgr/exec_ctx.c
569 src/core/lib/iomgr/executor.c
570 src/core/lib/iomgr/iocp_windows.c
571 src/core/lib/iomgr/iomgr.c
572 src/core/lib/iomgr/iomgr_posix.c
573 src/core/lib/iomgr/iomgr_windows.c
574 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200575 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100576 src/core/lib/iomgr/polling_entity.c
577 src/core/lib/iomgr/pollset_set_windows.c
578 src/core/lib/iomgr/pollset_windows.c
579 src/core/lib/iomgr/resolve_address_posix.c
580 src/core/lib/iomgr/resolve_address_windows.c
581 src/core/lib/iomgr/sockaddr_utils.c
582 src/core/lib/iomgr/socket_utils_common_posix.c
583 src/core/lib/iomgr/socket_utils_linux.c
584 src/core/lib/iomgr/socket_utils_posix.c
585 src/core/lib/iomgr/socket_windows.c
586 src/core/lib/iomgr/tcp_client_posix.c
587 src/core/lib/iomgr/tcp_client_windows.c
588 src/core/lib/iomgr/tcp_posix.c
589 src/core/lib/iomgr/tcp_server_posix.c
590 src/core/lib/iomgr/tcp_server_windows.c
591 src/core/lib/iomgr/tcp_windows.c
592 src/core/lib/iomgr/time_averaged_stats.c
593 src/core/lib/iomgr/timer.c
594 src/core/lib/iomgr/timer_heap.c
595 src/core/lib/iomgr/udp_server.c
596 src/core/lib/iomgr/unix_sockets_posix.c
597 src/core/lib/iomgr/unix_sockets_posix_noop.c
598 src/core/lib/iomgr/wakeup_fd_eventfd.c
599 src/core/lib/iomgr/wakeup_fd_nospecial.c
600 src/core/lib/iomgr/wakeup_fd_pipe.c
601 src/core/lib/iomgr/wakeup_fd_posix.c
602 src/core/lib/iomgr/workqueue_posix.c
603 src/core/lib/iomgr/workqueue_windows.c
604 src/core/lib/json/json.c
605 src/core/lib/json/json_reader.c
606 src/core/lib/json/json_string.c
607 src/core/lib/json/json_writer.c
608 src/core/lib/surface/alarm.c
609 src/core/lib/surface/api_trace.c
610 src/core/lib/surface/byte_buffer.c
611 src/core/lib/surface/byte_buffer_reader.c
612 src/core/lib/surface/call.c
613 src/core/lib/surface/call_details.c
614 src/core/lib/surface/call_log_batch.c
615 src/core/lib/surface/channel.c
616 src/core/lib/surface/channel_init.c
617 src/core/lib/surface/channel_ping.c
618 src/core/lib/surface/channel_stack_type.c
619 src/core/lib/surface/completion_queue.c
620 src/core/lib/surface/event_string.c
621 src/core/lib/surface/lame_client.c
622 src/core/lib/surface/metadata_array.c
623 src/core/lib/surface/server.c
624 src/core/lib/surface/validate_metadata.c
625 src/core/lib/surface/version.c
626 src/core/lib/transport/byte_stream.c
627 src/core/lib/transport/connectivity_state.c
628 src/core/lib/transport/metadata.c
629 src/core/lib/transport/metadata_batch.c
630 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400631 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100632 src/core/lib/transport/transport.c
633 src/core/lib/transport/transport_op_string.c
634 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
635 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
636 src/core/ext/transport/cronet/transport/cronet_transport.c
637 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
638 src/core/ext/transport/chttp2/transport/bin_decoder.c
639 src/core/ext/transport/chttp2/transport/bin_encoder.c
640 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
641 src/core/ext/transport/chttp2/transport/chttp2_transport.c
642 src/core/ext/transport/chttp2/transport/frame_data.c
643 src/core/ext/transport/chttp2/transport/frame_goaway.c
644 src/core/ext/transport/chttp2/transport/frame_ping.c
645 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
646 src/core/ext/transport/chttp2/transport/frame_settings.c
647 src/core/ext/transport/chttp2/transport/frame_window_update.c
648 src/core/ext/transport/chttp2/transport/hpack_encoder.c
649 src/core/ext/transport/chttp2/transport/hpack_parser.c
650 src/core/ext/transport/chttp2/transport/hpack_table.c
651 src/core/ext/transport/chttp2/transport/huffsyms.c
652 src/core/ext/transport/chttp2/transport/incoming_metadata.c
653 src/core/ext/transport/chttp2/transport/parsing.c
654 src/core/ext/transport/chttp2/transport/status_conversion.c
655 src/core/ext/transport/chttp2/transport/stream_lists.c
656 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100657 src/core/ext/transport/chttp2/transport/varint.c
658 src/core/ext/transport/chttp2/transport/writing.c
659 src/core/ext/transport/chttp2/alpn/alpn.c
660 src/core/ext/client_config/channel_connectivity.c
661 src/core/ext/client_config/client_channel.c
662 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100663 src/core/ext/client_config/client_config_plugin.c
664 src/core/ext/client_config/connector.c
665 src/core/ext/client_config/default_initial_connect_string.c
666 src/core/ext/client_config/initial_connect_string.c
667 src/core/ext/client_config/lb_policy.c
668 src/core/ext/client_config/lb_policy_factory.c
669 src/core/ext/client_config/lb_policy_registry.c
670 src/core/ext/client_config/parse_address.c
671 src/core/ext/client_config/resolver.c
672 src/core/ext/client_config/resolver_factory.c
673 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700674 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100675 src/core/ext/client_config/subchannel.c
676 src/core/ext/client_config/subchannel_call_holder.c
677 src/core/ext/client_config/subchannel_index.c
678 src/core/ext/client_config/uri_parser.c
679 src/core/lib/http/httpcli_security_connector.c
680 src/core/lib/security/context/security_context.c
681 src/core/lib/security/credentials/composite/composite_credentials.c
682 src/core/lib/security/credentials/credentials.c
683 src/core/lib/security/credentials/credentials_metadata.c
684 src/core/lib/security/credentials/fake/fake_credentials.c
685 src/core/lib/security/credentials/google_default/credentials_posix.c
686 src/core/lib/security/credentials/google_default/credentials_windows.c
687 src/core/lib/security/credentials/google_default/google_default_credentials.c
688 src/core/lib/security/credentials/iam/iam_credentials.c
689 src/core/lib/security/credentials/jwt/json_token.c
690 src/core/lib/security/credentials/jwt/jwt_credentials.c
691 src/core/lib/security/credentials/jwt/jwt_verifier.c
692 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
693 src/core/lib/security/credentials/plugin/plugin_credentials.c
694 src/core/lib/security/credentials/ssl/ssl_credentials.c
695 src/core/lib/security/transport/client_auth_filter.c
696 src/core/lib/security/transport/handshake.c
697 src/core/lib/security/transport/secure_endpoint.c
698 src/core/lib/security/transport/security_connector.c
699 src/core/lib/security/transport/server_auth_filter.c
700 src/core/lib/security/transport/tsi_error.c
701 src/core/lib/security/util/b64.c
702 src/core/lib/security/util/json_util.c
703 src/core/lib/surface/init_secure.c
704 src/core/lib/tsi/fake_transport_security.c
705 src/core/lib/tsi/ssl_transport_security.c
706 src/core/lib/tsi/transport_security.c
707 src/core/plugin_registry/grpc_cronet_plugin_registry.c
708)
709
710target_include_directories(grpc_cronet
711 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
712 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
713 PRIVATE ${BORINGSSL_ROOT_DIR}/include
714 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300715 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100716 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
717)
718
719target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300720 ${_gRPC_BASELIB_LIBRARIES}
721 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100722 gpr
723)
724
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300725foreach(_hdr
726 include/grpc/byte_buffer.h
727 include/grpc/byte_buffer_reader.h
728 include/grpc/compression.h
729 include/grpc/grpc.h
730 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200731 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300732 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300733 include/grpc/impl/codegen/byte_buffer_reader.h
734 include/grpc/impl/codegen/compression_types.h
735 include/grpc/impl/codegen/connectivity_state.h
736 include/grpc/impl/codegen/grpc_types.h
737 include/grpc/impl/codegen/propagation_bits.h
738 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300739 include/grpc/impl/codegen/atm.h
740 include/grpc/impl/codegen/atm_gcc_atomic.h
741 include/grpc/impl/codegen/atm_gcc_sync.h
742 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700743 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300744 include/grpc/impl/codegen/port_platform.h
745 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300746 include/grpc/impl/codegen/sync.h
747 include/grpc/impl/codegen/sync_generic.h
748 include/grpc/impl/codegen/sync_posix.h
749 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300750 include/grpc/grpc_cronet.h
751 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300752)
753 string(REPLACE "include/" "" _path ${_hdr})
754 get_filename_component(_path ${_path} PATH)
755 install(FILES ${_hdr}
756 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
757 )
758endforeach()
759
760
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300761if (gRPC_INSTALL)
762 install(TARGETS grpc_cronet EXPORT gRPCTargets
763 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
764 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
765 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
766 )
767endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300768
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100769
770add_library(grpc_unsecure
771 src/core/lib/surface/init.c
772 src/core/lib/surface/init_unsecure.c
773 src/core/lib/channel/channel_args.c
774 src/core/lib/channel/channel_stack.c
775 src/core/lib/channel/channel_stack_builder.c
776 src/core/lib/channel/compress_filter.c
777 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700778 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100779 src/core/lib/channel/http_client_filter.c
780 src/core/lib/channel/http_server_filter.c
781 src/core/lib/compression/compression.c
782 src/core/lib/compression/message_compress.c
783 src/core/lib/debug/trace.c
784 src/core/lib/http/format_request.c
785 src/core/lib/http/httpcli.c
786 src/core/lib/http/parser.c
787 src/core/lib/iomgr/closure.c
788 src/core/lib/iomgr/endpoint.c
789 src/core/lib/iomgr/endpoint_pair_posix.c
790 src/core/lib/iomgr/endpoint_pair_windows.c
791 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200792 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100793 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
794 src/core/lib/iomgr/ev_poll_posix.c
795 src/core/lib/iomgr/ev_posix.c
796 src/core/lib/iomgr/exec_ctx.c
797 src/core/lib/iomgr/executor.c
798 src/core/lib/iomgr/iocp_windows.c
799 src/core/lib/iomgr/iomgr.c
800 src/core/lib/iomgr/iomgr_posix.c
801 src/core/lib/iomgr/iomgr_windows.c
802 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200803 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100804 src/core/lib/iomgr/polling_entity.c
805 src/core/lib/iomgr/pollset_set_windows.c
806 src/core/lib/iomgr/pollset_windows.c
807 src/core/lib/iomgr/resolve_address_posix.c
808 src/core/lib/iomgr/resolve_address_windows.c
809 src/core/lib/iomgr/sockaddr_utils.c
810 src/core/lib/iomgr/socket_utils_common_posix.c
811 src/core/lib/iomgr/socket_utils_linux.c
812 src/core/lib/iomgr/socket_utils_posix.c
813 src/core/lib/iomgr/socket_windows.c
814 src/core/lib/iomgr/tcp_client_posix.c
815 src/core/lib/iomgr/tcp_client_windows.c
816 src/core/lib/iomgr/tcp_posix.c
817 src/core/lib/iomgr/tcp_server_posix.c
818 src/core/lib/iomgr/tcp_server_windows.c
819 src/core/lib/iomgr/tcp_windows.c
820 src/core/lib/iomgr/time_averaged_stats.c
821 src/core/lib/iomgr/timer.c
822 src/core/lib/iomgr/timer_heap.c
823 src/core/lib/iomgr/udp_server.c
824 src/core/lib/iomgr/unix_sockets_posix.c
825 src/core/lib/iomgr/unix_sockets_posix_noop.c
826 src/core/lib/iomgr/wakeup_fd_eventfd.c
827 src/core/lib/iomgr/wakeup_fd_nospecial.c
828 src/core/lib/iomgr/wakeup_fd_pipe.c
829 src/core/lib/iomgr/wakeup_fd_posix.c
830 src/core/lib/iomgr/workqueue_posix.c
831 src/core/lib/iomgr/workqueue_windows.c
832 src/core/lib/json/json.c
833 src/core/lib/json/json_reader.c
834 src/core/lib/json/json_string.c
835 src/core/lib/json/json_writer.c
836 src/core/lib/surface/alarm.c
837 src/core/lib/surface/api_trace.c
838 src/core/lib/surface/byte_buffer.c
839 src/core/lib/surface/byte_buffer_reader.c
840 src/core/lib/surface/call.c
841 src/core/lib/surface/call_details.c
842 src/core/lib/surface/call_log_batch.c
843 src/core/lib/surface/channel.c
844 src/core/lib/surface/channel_init.c
845 src/core/lib/surface/channel_ping.c
846 src/core/lib/surface/channel_stack_type.c
847 src/core/lib/surface/completion_queue.c
848 src/core/lib/surface/event_string.c
849 src/core/lib/surface/lame_client.c
850 src/core/lib/surface/metadata_array.c
851 src/core/lib/surface/server.c
852 src/core/lib/surface/validate_metadata.c
853 src/core/lib/surface/version.c
854 src/core/lib/transport/byte_stream.c
855 src/core/lib/transport/connectivity_state.c
856 src/core/lib/transport/metadata.c
857 src/core/lib/transport/metadata_batch.c
858 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400859 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100860 src/core/lib/transport/transport.c
861 src/core/lib/transport/transport_op_string.c
862 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
863 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
864 src/core/ext/transport/chttp2/transport/bin_decoder.c
865 src/core/ext/transport/chttp2/transport/bin_encoder.c
866 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
867 src/core/ext/transport/chttp2/transport/chttp2_transport.c
868 src/core/ext/transport/chttp2/transport/frame_data.c
869 src/core/ext/transport/chttp2/transport/frame_goaway.c
870 src/core/ext/transport/chttp2/transport/frame_ping.c
871 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
872 src/core/ext/transport/chttp2/transport/frame_settings.c
873 src/core/ext/transport/chttp2/transport/frame_window_update.c
874 src/core/ext/transport/chttp2/transport/hpack_encoder.c
875 src/core/ext/transport/chttp2/transport/hpack_parser.c
876 src/core/ext/transport/chttp2/transport/hpack_table.c
877 src/core/ext/transport/chttp2/transport/huffsyms.c
878 src/core/ext/transport/chttp2/transport/incoming_metadata.c
879 src/core/ext/transport/chttp2/transport/parsing.c
880 src/core/ext/transport/chttp2/transport/status_conversion.c
881 src/core/ext/transport/chttp2/transport/stream_lists.c
882 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100883 src/core/ext/transport/chttp2/transport/varint.c
884 src/core/ext/transport/chttp2/transport/writing.c
885 src/core/ext/transport/chttp2/alpn/alpn.c
886 src/core/ext/transport/chttp2/client/insecure/channel_create.c
887 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
888 src/core/ext/client_config/channel_connectivity.c
889 src/core/ext/client_config/client_channel.c
890 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100891 src/core/ext/client_config/client_config_plugin.c
892 src/core/ext/client_config/connector.c
893 src/core/ext/client_config/default_initial_connect_string.c
894 src/core/ext/client_config/initial_connect_string.c
895 src/core/ext/client_config/lb_policy.c
896 src/core/ext/client_config/lb_policy_factory.c
897 src/core/ext/client_config/lb_policy_registry.c
898 src/core/ext/client_config/parse_address.c
899 src/core/ext/client_config/resolver.c
900 src/core/ext/client_config/resolver_factory.c
901 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700902 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100903 src/core/ext/client_config/subchannel.c
904 src/core/ext/client_config/subchannel_call_holder.c
905 src/core/ext/client_config/subchannel_index.c
906 src/core/ext/client_config/uri_parser.c
907 src/core/ext/resolver/dns/native/dns_resolver.c
908 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
909 src/core/ext/load_reporting/load_reporting.c
910 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700911 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100912 src/core/ext/lb_policy/grpclb/load_balancer_api.c
913 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
914 third_party/nanopb/pb_common.c
915 third_party/nanopb/pb_decode.c
916 third_party/nanopb/pb_encode.c
917 src/core/ext/lb_policy/pick_first/pick_first.c
918 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700919 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100920 src/core/ext/census/context.c
921 src/core/ext/census/gen/census.pb.c
922 src/core/ext/census/grpc_context.c
923 src/core/ext/census/grpc_filter.c
924 src/core/ext/census/grpc_plugin.c
925 src/core/ext/census/initialize.c
926 src/core/ext/census/mlog.c
927 src/core/ext/census/operation.c
928 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700929 src/core/ext/census/resource.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100930 src/core/ext/census/tracing.c
931 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
932)
933
934target_include_directories(grpc_unsecure
935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
936 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
937 PRIVATE ${BORINGSSL_ROOT_DIR}/include
938 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300939 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100940 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
941)
942
943target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300944 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100945 gpr
946)
947
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300948foreach(_hdr
949 include/grpc/byte_buffer.h
950 include/grpc/byte_buffer_reader.h
951 include/grpc/compression.h
952 include/grpc/grpc.h
953 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200954 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300955 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300956 include/grpc/impl/codegen/byte_buffer_reader.h
957 include/grpc/impl/codegen/compression_types.h
958 include/grpc/impl/codegen/connectivity_state.h
959 include/grpc/impl/codegen/grpc_types.h
960 include/grpc/impl/codegen/propagation_bits.h
961 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300962 include/grpc/impl/codegen/atm.h
963 include/grpc/impl/codegen/atm_gcc_atomic.h
964 include/grpc/impl/codegen/atm_gcc_sync.h
965 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700966 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300967 include/grpc/impl/codegen/port_platform.h
968 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300969 include/grpc/impl/codegen/sync.h
970 include/grpc/impl/codegen/sync_generic.h
971 include/grpc/impl/codegen/sync_posix.h
972 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300973 include/grpc/census.h
974)
975 string(REPLACE "include/" "" _path ${_hdr})
976 get_filename_component(_path ${_path} PATH)
977 install(FILES ${_hdr}
978 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
979 )
980endforeach()
981
982
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300983if (gRPC_INSTALL)
984 install(TARGETS grpc_unsecure EXPORT gRPCTargets
985 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
986 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
987 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
988 )
989endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300990
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100991
992add_library(grpc++
993 src/cpp/client/secure_credentials.cc
994 src/cpp/common/auth_property_iterator.cc
995 src/cpp/common/secure_auth_context.cc
996 src/cpp/common/secure_channel_arguments.cc
997 src/cpp/common/secure_create_auth_context.cc
998 src/cpp/server/secure_server_credentials.cc
999 src/cpp/client/channel.cc
1000 src/cpp/client/client_context.cc
1001 src/cpp/client/create_channel.cc
1002 src/cpp/client/create_channel_internal.cc
1003 src/cpp/client/create_channel_posix.cc
1004 src/cpp/client/credentials.cc
1005 src/cpp/client/generic_stub.cc
1006 src/cpp/client/insecure_credentials.cc
1007 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001008 src/cpp/common/channel_filter.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001009 src/cpp/common/completion_queue.cc
1010 src/cpp/common/core_codegen.cc
1011 src/cpp/common/rpc_method.cc
1012 src/cpp/server/async_generic_service.cc
1013 src/cpp/server/create_default_thread_pool.cc
1014 src/cpp/server/dynamic_thread_pool.cc
1015 src/cpp/server/insecure_server_credentials.cc
1016 src/cpp/server/server.cc
1017 src/cpp/server/server_builder.cc
1018 src/cpp/server/server_context.cc
1019 src/cpp/server/server_credentials.cc
1020 src/cpp/server/server_posix.cc
1021 src/cpp/util/byte_buffer.cc
1022 src/cpp/util/slice.cc
1023 src/cpp/util/status.cc
1024 src/cpp/util/string_ref.cc
1025 src/cpp/util/time.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001026 src/core/lib/channel/channel_args.c
1027 src/core/lib/channel/channel_stack.c
1028 src/core/lib/channel/channel_stack_builder.c
1029 src/core/lib/channel/compress_filter.c
1030 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001031 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001032 src/core/lib/channel/http_client_filter.c
1033 src/core/lib/channel/http_server_filter.c
1034 src/core/lib/compression/compression.c
1035 src/core/lib/compression/message_compress.c
1036 src/core/lib/debug/trace.c
1037 src/core/lib/http/format_request.c
1038 src/core/lib/http/httpcli.c
1039 src/core/lib/http/parser.c
1040 src/core/lib/iomgr/closure.c
1041 src/core/lib/iomgr/endpoint.c
1042 src/core/lib/iomgr/endpoint_pair_posix.c
1043 src/core/lib/iomgr/endpoint_pair_windows.c
1044 src/core/lib/iomgr/error.c
1045 src/core/lib/iomgr/ev_epoll_linux.c
1046 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1047 src/core/lib/iomgr/ev_poll_posix.c
1048 src/core/lib/iomgr/ev_posix.c
1049 src/core/lib/iomgr/exec_ctx.c
1050 src/core/lib/iomgr/executor.c
1051 src/core/lib/iomgr/iocp_windows.c
1052 src/core/lib/iomgr/iomgr.c
1053 src/core/lib/iomgr/iomgr_posix.c
1054 src/core/lib/iomgr/iomgr_windows.c
1055 src/core/lib/iomgr/load_file.c
1056 src/core/lib/iomgr/network_status_tracker.c
1057 src/core/lib/iomgr/polling_entity.c
1058 src/core/lib/iomgr/pollset_set_windows.c
1059 src/core/lib/iomgr/pollset_windows.c
1060 src/core/lib/iomgr/resolve_address_posix.c
1061 src/core/lib/iomgr/resolve_address_windows.c
1062 src/core/lib/iomgr/sockaddr_utils.c
1063 src/core/lib/iomgr/socket_utils_common_posix.c
1064 src/core/lib/iomgr/socket_utils_linux.c
1065 src/core/lib/iomgr/socket_utils_posix.c
1066 src/core/lib/iomgr/socket_windows.c
1067 src/core/lib/iomgr/tcp_client_posix.c
1068 src/core/lib/iomgr/tcp_client_windows.c
1069 src/core/lib/iomgr/tcp_posix.c
1070 src/core/lib/iomgr/tcp_server_posix.c
1071 src/core/lib/iomgr/tcp_server_windows.c
1072 src/core/lib/iomgr/tcp_windows.c
1073 src/core/lib/iomgr/time_averaged_stats.c
1074 src/core/lib/iomgr/timer.c
1075 src/core/lib/iomgr/timer_heap.c
1076 src/core/lib/iomgr/udp_server.c
1077 src/core/lib/iomgr/unix_sockets_posix.c
1078 src/core/lib/iomgr/unix_sockets_posix_noop.c
1079 src/core/lib/iomgr/wakeup_fd_eventfd.c
1080 src/core/lib/iomgr/wakeup_fd_nospecial.c
1081 src/core/lib/iomgr/wakeup_fd_pipe.c
1082 src/core/lib/iomgr/wakeup_fd_posix.c
1083 src/core/lib/iomgr/workqueue_posix.c
1084 src/core/lib/iomgr/workqueue_windows.c
1085 src/core/lib/json/json.c
1086 src/core/lib/json/json_reader.c
1087 src/core/lib/json/json_string.c
1088 src/core/lib/json/json_writer.c
1089 src/core/lib/surface/alarm.c
1090 src/core/lib/surface/api_trace.c
1091 src/core/lib/surface/byte_buffer.c
1092 src/core/lib/surface/byte_buffer_reader.c
1093 src/core/lib/surface/call.c
1094 src/core/lib/surface/call_details.c
1095 src/core/lib/surface/call_log_batch.c
1096 src/core/lib/surface/channel.c
1097 src/core/lib/surface/channel_init.c
1098 src/core/lib/surface/channel_ping.c
1099 src/core/lib/surface/channel_stack_type.c
1100 src/core/lib/surface/completion_queue.c
1101 src/core/lib/surface/event_string.c
1102 src/core/lib/surface/lame_client.c
1103 src/core/lib/surface/metadata_array.c
1104 src/core/lib/surface/server.c
1105 src/core/lib/surface/validate_metadata.c
1106 src/core/lib/surface/version.c
1107 src/core/lib/transport/byte_stream.c
1108 src/core/lib/transport/connectivity_state.c
1109 src/core/lib/transport/metadata.c
1110 src/core/lib/transport/metadata_batch.c
1111 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001112 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001113 src/core/lib/transport/transport.c
1114 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001115 src/cpp/codegen/codegen_init.cc
1116)
1117
1118target_include_directories(grpc++
1119 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1120 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1121 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1122 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001123 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001124 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1125)
1126
1127target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001128 ${_gRPC_BASELIB_LIBRARIES}
1129 ${_gRPC_SSL_LIBRARIES}
1130 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001131 grpc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001132 gpr
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001133)
1134
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001135foreach(_hdr
1136 include/grpc++/alarm.h
1137 include/grpc++/channel.h
1138 include/grpc++/client_context.h
1139 include/grpc++/completion_queue.h
1140 include/grpc++/create_channel.h
1141 include/grpc++/create_channel_posix.h
1142 include/grpc++/generic/async_generic_service.h
1143 include/grpc++/generic/generic_stub.h
1144 include/grpc++/grpc++.h
1145 include/grpc++/impl/call.h
1146 include/grpc++/impl/client_unary_call.h
1147 include/grpc++/impl/codegen/core_codegen.h
1148 include/grpc++/impl/grpc_library.h
1149 include/grpc++/impl/method_handler_impl.h
1150 include/grpc++/impl/rpc_method.h
1151 include/grpc++/impl/rpc_service_method.h
1152 include/grpc++/impl/serialization_traits.h
1153 include/grpc++/impl/server_builder_option.h
1154 include/grpc++/impl/server_builder_plugin.h
1155 include/grpc++/impl/server_initializer.h
1156 include/grpc++/impl/service_type.h
1157 include/grpc++/impl/sync.h
1158 include/grpc++/impl/sync_cxx11.h
1159 include/grpc++/impl/sync_no_cxx11.h
1160 include/grpc++/impl/thd.h
1161 include/grpc++/impl/thd_cxx11.h
1162 include/grpc++/impl/thd_no_cxx11.h
1163 include/grpc++/security/auth_context.h
1164 include/grpc++/security/auth_metadata_processor.h
1165 include/grpc++/security/credentials.h
1166 include/grpc++/security/server_credentials.h
1167 include/grpc++/server.h
1168 include/grpc++/server_builder.h
1169 include/grpc++/server_context.h
1170 include/grpc++/server_posix.h
1171 include/grpc++/support/async_stream.h
1172 include/grpc++/support/async_unary_call.h
1173 include/grpc++/support/byte_buffer.h
1174 include/grpc++/support/channel_arguments.h
1175 include/grpc++/support/config.h
1176 include/grpc++/support/slice.h
1177 include/grpc++/support/status.h
1178 include/grpc++/support/status_code_enum.h
1179 include/grpc++/support/string_ref.h
1180 include/grpc++/support/stub_options.h
1181 include/grpc++/support/sync_stream.h
1182 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001183 include/grpc/byte_buffer.h
1184 include/grpc/byte_buffer_reader.h
1185 include/grpc/compression.h
1186 include/grpc/grpc.h
1187 include/grpc/grpc_posix.h
1188 include/grpc/grpc_security_constants.h
1189 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001190 include/grpc/impl/codegen/byte_buffer_reader.h
1191 include/grpc/impl/codegen/compression_types.h
1192 include/grpc/impl/codegen/connectivity_state.h
1193 include/grpc/impl/codegen/grpc_types.h
1194 include/grpc/impl/codegen/propagation_bits.h
1195 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001196 include/grpc/impl/codegen/atm.h
1197 include/grpc/impl/codegen/atm_gcc_atomic.h
1198 include/grpc/impl/codegen/atm_gcc_sync.h
1199 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001200 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001201 include/grpc/impl/codegen/port_platform.h
1202 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001203 include/grpc/impl/codegen/sync.h
1204 include/grpc/impl/codegen/sync_generic.h
1205 include/grpc/impl/codegen/sync_posix.h
1206 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001207 include/grpc++/impl/codegen/async_stream.h
1208 include/grpc++/impl/codegen/async_unary_call.h
1209 include/grpc++/impl/codegen/call.h
1210 include/grpc++/impl/codegen/call_hook.h
1211 include/grpc++/impl/codegen/channel_interface.h
1212 include/grpc++/impl/codegen/client_context.h
1213 include/grpc++/impl/codegen/client_unary_call.h
1214 include/grpc++/impl/codegen/completion_queue.h
1215 include/grpc++/impl/codegen/completion_queue_tag.h
1216 include/grpc++/impl/codegen/config.h
1217 include/grpc++/impl/codegen/core_codegen_interface.h
1218 include/grpc++/impl/codegen/create_auth_context.h
1219 include/grpc++/impl/codegen/grpc_library.h
1220 include/grpc++/impl/codegen/method_handler_impl.h
1221 include/grpc++/impl/codegen/rpc_method.h
1222 include/grpc++/impl/codegen/rpc_service_method.h
1223 include/grpc++/impl/codegen/security/auth_context.h
1224 include/grpc++/impl/codegen/serialization_traits.h
1225 include/grpc++/impl/codegen/server_context.h
1226 include/grpc++/impl/codegen/server_interface.h
1227 include/grpc++/impl/codegen/service_type.h
1228 include/grpc++/impl/codegen/status.h
1229 include/grpc++/impl/codegen/status_code_enum.h
1230 include/grpc++/impl/codegen/string_ref.h
1231 include/grpc++/impl/codegen/stub_options.h
1232 include/grpc++/impl/codegen/sync.h
1233 include/grpc++/impl/codegen/sync_cxx11.h
1234 include/grpc++/impl/codegen/sync_no_cxx11.h
1235 include/grpc++/impl/codegen/sync_stream.h
1236 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001237)
1238 string(REPLACE "include/" "" _path ${_hdr})
1239 get_filename_component(_path ${_path} PATH)
1240 install(FILES ${_hdr}
1241 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1242 )
1243endforeach()
1244
1245
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001246if (gRPC_INSTALL)
1247 install(TARGETS grpc++ EXPORT gRPCTargets
1248 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1249 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1250 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1251 )
1252endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001253
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001254
1255add_library(grpc++_reflection
1256 src/cpp/ext/proto_server_reflection.cc
1257 src/cpp/ext/proto_server_reflection_plugin.cc
1258 src/cpp/ext/reflection.grpc.pb.cc
1259 src/cpp/ext/reflection.pb.cc
1260)
1261
1262target_include_directories(grpc++_reflection
1263 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1264 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1265 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1266 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001267 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001268 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1269)
1270
1271target_link_libraries(grpc++_reflection
1272 grpc++
1273)
1274
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001275foreach(_hdr
1276 include/grpc++/ext/proto_server_reflection_plugin.h
1277 include/grpc++/ext/reflection.grpc.pb.h
1278 include/grpc++/ext/reflection.pb.h
1279 include/grpc++/impl/codegen/proto_utils.h
1280 include/grpc++/impl/codegen/async_stream.h
1281 include/grpc++/impl/codegen/async_unary_call.h
1282 include/grpc++/impl/codegen/call.h
1283 include/grpc++/impl/codegen/call_hook.h
1284 include/grpc++/impl/codegen/channel_interface.h
1285 include/grpc++/impl/codegen/client_context.h
1286 include/grpc++/impl/codegen/client_unary_call.h
1287 include/grpc++/impl/codegen/completion_queue.h
1288 include/grpc++/impl/codegen/completion_queue_tag.h
1289 include/grpc++/impl/codegen/config.h
1290 include/grpc++/impl/codegen/core_codegen_interface.h
1291 include/grpc++/impl/codegen/create_auth_context.h
1292 include/grpc++/impl/codegen/grpc_library.h
1293 include/grpc++/impl/codegen/method_handler_impl.h
1294 include/grpc++/impl/codegen/rpc_method.h
1295 include/grpc++/impl/codegen/rpc_service_method.h
1296 include/grpc++/impl/codegen/security/auth_context.h
1297 include/grpc++/impl/codegen/serialization_traits.h
1298 include/grpc++/impl/codegen/server_context.h
1299 include/grpc++/impl/codegen/server_interface.h
1300 include/grpc++/impl/codegen/service_type.h
1301 include/grpc++/impl/codegen/status.h
1302 include/grpc++/impl/codegen/status_code_enum.h
1303 include/grpc++/impl/codegen/string_ref.h
1304 include/grpc++/impl/codegen/stub_options.h
1305 include/grpc++/impl/codegen/sync.h
1306 include/grpc++/impl/codegen/sync_cxx11.h
1307 include/grpc++/impl/codegen/sync_no_cxx11.h
1308 include/grpc++/impl/codegen/sync_stream.h
1309 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001310 include/grpc/impl/codegen/byte_buffer_reader.h
1311 include/grpc/impl/codegen/compression_types.h
1312 include/grpc/impl/codegen/connectivity_state.h
1313 include/grpc/impl/codegen/grpc_types.h
1314 include/grpc/impl/codegen/propagation_bits.h
1315 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001316 include/grpc/impl/codegen/atm.h
1317 include/grpc/impl/codegen/atm_gcc_atomic.h
1318 include/grpc/impl/codegen/atm_gcc_sync.h
1319 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001320 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001321 include/grpc/impl/codegen/port_platform.h
1322 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001323 include/grpc/impl/codegen/sync.h
1324 include/grpc/impl/codegen/sync_generic.h
1325 include/grpc/impl/codegen/sync_posix.h
1326 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001327 include/grpc++/impl/codegen/config_protobuf.h
1328)
1329 string(REPLACE "include/" "" _path ${_hdr})
1330 get_filename_component(_path ${_path} PATH)
1331 install(FILES ${_hdr}
1332 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1333 )
1334endforeach()
1335
1336
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001337if (gRPC_INSTALL)
1338 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1339 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1340 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1341 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1342 )
1343endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001344
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001345
1346add_library(grpc++_unsecure
1347 src/cpp/common/insecure_create_auth_context.cc
1348 src/cpp/client/channel.cc
1349 src/cpp/client/client_context.cc
1350 src/cpp/client/create_channel.cc
1351 src/cpp/client/create_channel_internal.cc
1352 src/cpp/client/create_channel_posix.cc
1353 src/cpp/client/credentials.cc
1354 src/cpp/client/generic_stub.cc
1355 src/cpp/client/insecure_credentials.cc
1356 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001357 src/cpp/common/channel_filter.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001358 src/cpp/common/completion_queue.cc
1359 src/cpp/common/core_codegen.cc
1360 src/cpp/common/rpc_method.cc
1361 src/cpp/server/async_generic_service.cc
1362 src/cpp/server/create_default_thread_pool.cc
1363 src/cpp/server/dynamic_thread_pool.cc
1364 src/cpp/server/insecure_server_credentials.cc
1365 src/cpp/server/server.cc
1366 src/cpp/server/server_builder.cc
1367 src/cpp/server/server_context.cc
1368 src/cpp/server/server_credentials.cc
1369 src/cpp/server/server_posix.cc
1370 src/cpp/util/byte_buffer.cc
1371 src/cpp/util/slice.cc
1372 src/cpp/util/status.cc
1373 src/cpp/util/string_ref.cc
1374 src/cpp/util/time.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001375 src/core/lib/channel/channel_args.c
1376 src/core/lib/channel/channel_stack.c
1377 src/core/lib/channel/channel_stack_builder.c
1378 src/core/lib/channel/compress_filter.c
1379 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001380 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001381 src/core/lib/channel/http_client_filter.c
1382 src/core/lib/channel/http_server_filter.c
1383 src/core/lib/compression/compression.c
1384 src/core/lib/compression/message_compress.c
1385 src/core/lib/debug/trace.c
1386 src/core/lib/http/format_request.c
1387 src/core/lib/http/httpcli.c
1388 src/core/lib/http/parser.c
1389 src/core/lib/iomgr/closure.c
1390 src/core/lib/iomgr/endpoint.c
1391 src/core/lib/iomgr/endpoint_pair_posix.c
1392 src/core/lib/iomgr/endpoint_pair_windows.c
1393 src/core/lib/iomgr/error.c
1394 src/core/lib/iomgr/ev_epoll_linux.c
1395 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1396 src/core/lib/iomgr/ev_poll_posix.c
1397 src/core/lib/iomgr/ev_posix.c
1398 src/core/lib/iomgr/exec_ctx.c
1399 src/core/lib/iomgr/executor.c
1400 src/core/lib/iomgr/iocp_windows.c
1401 src/core/lib/iomgr/iomgr.c
1402 src/core/lib/iomgr/iomgr_posix.c
1403 src/core/lib/iomgr/iomgr_windows.c
1404 src/core/lib/iomgr/load_file.c
1405 src/core/lib/iomgr/network_status_tracker.c
1406 src/core/lib/iomgr/polling_entity.c
1407 src/core/lib/iomgr/pollset_set_windows.c
1408 src/core/lib/iomgr/pollset_windows.c
1409 src/core/lib/iomgr/resolve_address_posix.c
1410 src/core/lib/iomgr/resolve_address_windows.c
1411 src/core/lib/iomgr/sockaddr_utils.c
1412 src/core/lib/iomgr/socket_utils_common_posix.c
1413 src/core/lib/iomgr/socket_utils_linux.c
1414 src/core/lib/iomgr/socket_utils_posix.c
1415 src/core/lib/iomgr/socket_windows.c
1416 src/core/lib/iomgr/tcp_client_posix.c
1417 src/core/lib/iomgr/tcp_client_windows.c
1418 src/core/lib/iomgr/tcp_posix.c
1419 src/core/lib/iomgr/tcp_server_posix.c
1420 src/core/lib/iomgr/tcp_server_windows.c
1421 src/core/lib/iomgr/tcp_windows.c
1422 src/core/lib/iomgr/time_averaged_stats.c
1423 src/core/lib/iomgr/timer.c
1424 src/core/lib/iomgr/timer_heap.c
1425 src/core/lib/iomgr/udp_server.c
1426 src/core/lib/iomgr/unix_sockets_posix.c
1427 src/core/lib/iomgr/unix_sockets_posix_noop.c
1428 src/core/lib/iomgr/wakeup_fd_eventfd.c
1429 src/core/lib/iomgr/wakeup_fd_nospecial.c
1430 src/core/lib/iomgr/wakeup_fd_pipe.c
1431 src/core/lib/iomgr/wakeup_fd_posix.c
1432 src/core/lib/iomgr/workqueue_posix.c
1433 src/core/lib/iomgr/workqueue_windows.c
1434 src/core/lib/json/json.c
1435 src/core/lib/json/json_reader.c
1436 src/core/lib/json/json_string.c
1437 src/core/lib/json/json_writer.c
1438 src/core/lib/surface/alarm.c
1439 src/core/lib/surface/api_trace.c
1440 src/core/lib/surface/byte_buffer.c
1441 src/core/lib/surface/byte_buffer_reader.c
1442 src/core/lib/surface/call.c
1443 src/core/lib/surface/call_details.c
1444 src/core/lib/surface/call_log_batch.c
1445 src/core/lib/surface/channel.c
1446 src/core/lib/surface/channel_init.c
1447 src/core/lib/surface/channel_ping.c
1448 src/core/lib/surface/channel_stack_type.c
1449 src/core/lib/surface/completion_queue.c
1450 src/core/lib/surface/event_string.c
1451 src/core/lib/surface/lame_client.c
1452 src/core/lib/surface/metadata_array.c
1453 src/core/lib/surface/server.c
1454 src/core/lib/surface/validate_metadata.c
1455 src/core/lib/surface/version.c
1456 src/core/lib/transport/byte_stream.c
1457 src/core/lib/transport/connectivity_state.c
1458 src/core/lib/transport/metadata.c
1459 src/core/lib/transport/metadata_batch.c
1460 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001461 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001462 src/core/lib/transport/transport.c
1463 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001464 src/cpp/codegen/codegen_init.cc
1465)
1466
1467target_include_directories(grpc++_unsecure
1468 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1469 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1470 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1471 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001472 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001473 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1474)
1475
1476target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001477 ${_gRPC_BASELIB_LIBRARIES}
1478 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001479 gpr
1480 grpc_unsecure
1481)
1482
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001483foreach(_hdr
1484 include/grpc++/alarm.h
1485 include/grpc++/channel.h
1486 include/grpc++/client_context.h
1487 include/grpc++/completion_queue.h
1488 include/grpc++/create_channel.h
1489 include/grpc++/create_channel_posix.h
1490 include/grpc++/generic/async_generic_service.h
1491 include/grpc++/generic/generic_stub.h
1492 include/grpc++/grpc++.h
1493 include/grpc++/impl/call.h
1494 include/grpc++/impl/client_unary_call.h
1495 include/grpc++/impl/codegen/core_codegen.h
1496 include/grpc++/impl/grpc_library.h
1497 include/grpc++/impl/method_handler_impl.h
1498 include/grpc++/impl/rpc_method.h
1499 include/grpc++/impl/rpc_service_method.h
1500 include/grpc++/impl/serialization_traits.h
1501 include/grpc++/impl/server_builder_option.h
1502 include/grpc++/impl/server_builder_plugin.h
1503 include/grpc++/impl/server_initializer.h
1504 include/grpc++/impl/service_type.h
1505 include/grpc++/impl/sync.h
1506 include/grpc++/impl/sync_cxx11.h
1507 include/grpc++/impl/sync_no_cxx11.h
1508 include/grpc++/impl/thd.h
1509 include/grpc++/impl/thd_cxx11.h
1510 include/grpc++/impl/thd_no_cxx11.h
1511 include/grpc++/security/auth_context.h
1512 include/grpc++/security/auth_metadata_processor.h
1513 include/grpc++/security/credentials.h
1514 include/grpc++/security/server_credentials.h
1515 include/grpc++/server.h
1516 include/grpc++/server_builder.h
1517 include/grpc++/server_context.h
1518 include/grpc++/server_posix.h
1519 include/grpc++/support/async_stream.h
1520 include/grpc++/support/async_unary_call.h
1521 include/grpc++/support/byte_buffer.h
1522 include/grpc++/support/channel_arguments.h
1523 include/grpc++/support/config.h
1524 include/grpc++/support/slice.h
1525 include/grpc++/support/status.h
1526 include/grpc++/support/status_code_enum.h
1527 include/grpc++/support/string_ref.h
1528 include/grpc++/support/stub_options.h
1529 include/grpc++/support/sync_stream.h
1530 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001531 include/grpc/byte_buffer.h
1532 include/grpc/byte_buffer_reader.h
1533 include/grpc/compression.h
1534 include/grpc/grpc.h
1535 include/grpc/grpc_posix.h
1536 include/grpc/grpc_security_constants.h
1537 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001538 include/grpc/impl/codegen/byte_buffer_reader.h
1539 include/grpc/impl/codegen/compression_types.h
1540 include/grpc/impl/codegen/connectivity_state.h
1541 include/grpc/impl/codegen/grpc_types.h
1542 include/grpc/impl/codegen/propagation_bits.h
1543 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001544 include/grpc/impl/codegen/atm.h
1545 include/grpc/impl/codegen/atm_gcc_atomic.h
1546 include/grpc/impl/codegen/atm_gcc_sync.h
1547 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001548 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001549 include/grpc/impl/codegen/port_platform.h
1550 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001551 include/grpc/impl/codegen/sync.h
1552 include/grpc/impl/codegen/sync_generic.h
1553 include/grpc/impl/codegen/sync_posix.h
1554 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001555 include/grpc++/impl/codegen/async_stream.h
1556 include/grpc++/impl/codegen/async_unary_call.h
1557 include/grpc++/impl/codegen/call.h
1558 include/grpc++/impl/codegen/call_hook.h
1559 include/grpc++/impl/codegen/channel_interface.h
1560 include/grpc++/impl/codegen/client_context.h
1561 include/grpc++/impl/codegen/client_unary_call.h
1562 include/grpc++/impl/codegen/completion_queue.h
1563 include/grpc++/impl/codegen/completion_queue_tag.h
1564 include/grpc++/impl/codegen/config.h
1565 include/grpc++/impl/codegen/core_codegen_interface.h
1566 include/grpc++/impl/codegen/create_auth_context.h
1567 include/grpc++/impl/codegen/grpc_library.h
1568 include/grpc++/impl/codegen/method_handler_impl.h
1569 include/grpc++/impl/codegen/rpc_method.h
1570 include/grpc++/impl/codegen/rpc_service_method.h
1571 include/grpc++/impl/codegen/security/auth_context.h
1572 include/grpc++/impl/codegen/serialization_traits.h
1573 include/grpc++/impl/codegen/server_context.h
1574 include/grpc++/impl/codegen/server_interface.h
1575 include/grpc++/impl/codegen/service_type.h
1576 include/grpc++/impl/codegen/status.h
1577 include/grpc++/impl/codegen/status_code_enum.h
1578 include/grpc++/impl/codegen/string_ref.h
1579 include/grpc++/impl/codegen/stub_options.h
1580 include/grpc++/impl/codegen/sync.h
1581 include/grpc++/impl/codegen/sync_cxx11.h
1582 include/grpc++/impl/codegen/sync_no_cxx11.h
1583 include/grpc++/impl/codegen/sync_stream.h
1584 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001585)
1586 string(REPLACE "include/" "" _path ${_hdr})
1587 get_filename_component(_path ${_path} PATH)
1588 install(FILES ${_hdr}
1589 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1590 )
1591endforeach()
1592
1593
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001594if (gRPC_INSTALL)
1595 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1596 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1597 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1598 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1599 )
1600endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001601
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001602
1603add_library(grpc_plugin_support
1604 src/compiler/cpp_generator.cc
1605 src/compiler/csharp_generator.cc
1606 src/compiler/node_generator.cc
1607 src/compiler/objective_c_generator.cc
1608 src/compiler/python_generator.cc
1609 src/compiler/ruby_generator.cc
1610)
1611
1612target_include_directories(grpc_plugin_support
1613 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1614 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1615 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1616 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001617 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001618 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1619)
1620
1621target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001622 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001623)
1624
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001625foreach(_hdr
1626 include/grpc++/impl/codegen/config_protobuf.h
1627)
1628 string(REPLACE "include/" "" _path ${_hdr})
1629 get_filename_component(_path ${_path} PATH)
1630 install(FILES ${_hdr}
1631 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1632 )
1633endforeach()
1634
1635
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001636if (gRPC_INSTALL)
1637 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1638 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1639 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1640 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1641 )
1642endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001643
1644
1645add_library(grpc_csharp_ext
1646 src/csharp/ext/grpc_csharp_ext.c
1647)
1648
1649target_include_directories(grpc_csharp_ext
1650 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1651 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1652 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1653 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001654 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001655 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1656)
1657
1658target_link_libraries(grpc_csharp_ext
1659 grpc
1660 gpr
1661)
1662
1663
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001664
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001665if (gRPC_INSTALL)
1666 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1667 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1668 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1669 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1670 )
1671endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001672
1673
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001674
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001675add_executable(gen_hpack_tables
1676 tools/codegen/core/gen_hpack_tables.c
1677)
1678
1679target_include_directories(gen_hpack_tables
1680 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1681 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1682 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1683 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1684 PRIVATE ${ZLIB_ROOT_DIR}
1685 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1686)
1687
1688target_link_libraries(gen_hpack_tables
1689 gpr
1690 grpc
1691)
1692
1693
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001694if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001695 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1696 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1697 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1698 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1699 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001700endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001701
1702
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001703add_executable(gen_legal_metadata_characters
1704 tools/codegen/core/gen_legal_metadata_characters.c
1705)
1706
1707target_include_directories(gen_legal_metadata_characters
1708 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1709 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1710 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1711 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1712 PRIVATE ${ZLIB_ROOT_DIR}
1713 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1714)
1715
1716
1717
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001718if (gRPC_INSTALL)
1719 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1720 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1721 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1722 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1723 )
1724endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001725
1726
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001727add_executable(grpc_create_jwt
1728 test/core/security/create_jwt.c
1729)
1730
1731target_include_directories(grpc_create_jwt
1732 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1733 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1734 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1735 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1736 PRIVATE ${ZLIB_ROOT_DIR}
1737 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1738)
1739
1740target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001741 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001742 grpc
1743 gpr
1744)
1745
1746
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001747if (gRPC_INSTALL)
1748 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1749 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1750 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1751 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1752 )
1753endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001754
1755
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001756add_executable(grpc_print_google_default_creds_token
1757 test/core/security/print_google_default_creds_token.c
1758)
1759
1760target_include_directories(grpc_print_google_default_creds_token
1761 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1762 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1763 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1764 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1765 PRIVATE ${ZLIB_ROOT_DIR}
1766 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1767)
1768
1769target_link_libraries(grpc_print_google_default_creds_token
1770 grpc
1771 gpr
1772)
1773
1774
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001775if (gRPC_INSTALL)
1776 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1777 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1778 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1779 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1780 )
1781endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001782
1783
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001784add_executable(grpc_verify_jwt
1785 test/core/security/verify_jwt.c
1786)
1787
1788target_include_directories(grpc_verify_jwt
1789 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1790 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1791 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1792 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1793 PRIVATE ${ZLIB_ROOT_DIR}
1794 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1795)
1796
1797target_link_libraries(grpc_verify_jwt
1798 grpc
1799 gpr
1800)
1801
1802
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001803if (gRPC_INSTALL)
1804 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1805 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1806 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1807 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1808 )
1809endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001810
1811
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001812add_executable(grpc_cpp_plugin
1813 src/compiler/cpp_plugin.cc
1814)
1815
1816target_include_directories(grpc_cpp_plugin
1817 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1818 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1819 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1820 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1821 PRIVATE ${ZLIB_ROOT_DIR}
1822 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1823)
1824
1825target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001826 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001827 grpc_plugin_support
1828)
1829
1830
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001831if (gRPC_INSTALL)
1832 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1833 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1834 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1835 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1836 )
1837endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001838
1839
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001840add_executable(grpc_csharp_plugin
1841 src/compiler/csharp_plugin.cc
1842)
1843
1844target_include_directories(grpc_csharp_plugin
1845 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1846 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1847 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1848 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1849 PRIVATE ${ZLIB_ROOT_DIR}
1850 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1851)
1852
1853target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001854 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001855 grpc_plugin_support
1856)
1857
1858
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001859if (gRPC_INSTALL)
1860 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1861 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1862 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1863 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1864 )
1865endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001866
1867
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001868add_executable(grpc_node_plugin
1869 src/compiler/node_plugin.cc
1870)
1871
1872target_include_directories(grpc_node_plugin
1873 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1874 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1875 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1876 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1877 PRIVATE ${ZLIB_ROOT_DIR}
1878 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1879)
1880
1881target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001882 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001883 grpc_plugin_support
1884)
1885
1886
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001887if (gRPC_INSTALL)
1888 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1889 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1890 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1891 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1892 )
1893endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001894
1895
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001896add_executable(grpc_objective_c_plugin
1897 src/compiler/objective_c_plugin.cc
1898)
1899
1900target_include_directories(grpc_objective_c_plugin
1901 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1902 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1903 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1904 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1905 PRIVATE ${ZLIB_ROOT_DIR}
1906 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1907)
1908
1909target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001910 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001911 grpc_plugin_support
1912)
1913
1914
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001915if (gRPC_INSTALL)
1916 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1917 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1918 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1919 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1920 )
1921endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001922
1923
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001924add_executable(grpc_python_plugin
1925 src/compiler/python_plugin.cc
1926)
1927
1928target_include_directories(grpc_python_plugin
1929 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1930 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1931 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1932 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1933 PRIVATE ${ZLIB_ROOT_DIR}
1934 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1935)
1936
1937target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001938 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001939 grpc_plugin_support
1940)
1941
1942
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001943if (gRPC_INSTALL)
1944 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
1945 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1946 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1947 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1948 )
1949endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001950
1951
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001952add_executable(grpc_ruby_plugin
1953 src/compiler/ruby_plugin.cc
1954)
1955
1956target_include_directories(grpc_ruby_plugin
1957 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1958 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1959 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1960 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1961 PRIVATE ${ZLIB_ROOT_DIR}
1962 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1963)
1964
1965target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001966 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001967 grpc_plugin_support
1968)
1969
1970
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001971if (gRPC_INSTALL)
1972 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
1973 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1974 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1975 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1976 )
1977endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001978
1979
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001980
1981
1982
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001983
1984
1985
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001986if (gRPC_INSTALL)
1987 install(EXPORT gRPCTargets
1988 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
1989 NAMESPACE gRPC::
1990 )
1991endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001992
1993foreach(_config gRPCConfig gRPCConfigVersion)
1994 configure_file(tools/cmake/${_config}.cmake.in
1995 ${_config}.cmake @ONLY)
1996 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
1997 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
1998 )
1999endforeach()