blob: 5064149c6a2a9a880b0fa4b62c62a4a7bdb9b609 [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, Google Inc.
12# All rights reserved.
13#
14# Redistribution and use in source and binary forms, with or without
15# modification, are permitted provided that the following conditions are
16# met:
17#
18# * Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# * Redistributions in binary form must reproduce the above
21# copyright notice, this list of conditions and the following disclaimer
22# in the documentation and/or other materials provided with the
23# distribution.
24# * Neither the name of Google Inc. nor the names of its
25# contributors may be used to endorse or promote products derived from
26# this software without specific prior written permission.
27#
28# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
Nicolas "Pixel" Noble49bfb922016-07-12 09:31:41 +020045set(PACKAGE_VERSION "1.1.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030051set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
52set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010053
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030054set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
55set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010056
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030057set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
58set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010059
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010061
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030062if (gRPC_USE_PROTO_LITE)
63 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010064 add_definitions("-DGRPC_USE_PROTO_LITE")
65else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010067endif()
68
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030069if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
70 if(NOT ZLIB_ROOT_DIR)
71 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
72 endif()
73 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
74 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
75 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
76 if(TARGET zlibstatic)
77 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
78 endif()
79 else()
80 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
81 endif()
82elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
83 find_package(ZLIB)
84 if(TARGET ZLIB::ZLIB)
85 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
86 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +030087 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010088endif()
89
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030090if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
91 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
92 # Disable them unless they are explicitly requested from the cmake command line (when we assume
93 # gmock is downloaded to the right location inside protobuf).
94 if(NOT protobuf_BUILD_TESTS)
95 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
96 endif()
97 if(NOT PROTOBUF_ROOT_DIR)
98 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
99 endif()
100 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
101 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
102 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
103 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
104 endif()
105 if(TARGET libprotoc)
106 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
107 endif()
108 else()
109 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
110 endif()
111elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
112 find_package(protobuf CONFIG)
113 if(protobuf_FOUND)
114 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
115 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
116 endif()
117 if(TARGET protobuf::libprotoc)
118 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
119 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300120 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300121 else()
122 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300123 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300124 endif()
125endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100126
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300127if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
128 if(NOT BORINGSSL_ROOT_DIR)
129 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
130 endif()
131 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
132 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
133 if(TARGET ssl)
134 set(_gRPC_SSL_LIBRARIES ssl)
135 endif()
136 else()
137 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
138 endif()
139elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
140 find_package(OpenSSL)
141 if(TARGET OpenSSL::SSL)
142 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
143 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300144 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300145endif()
146
147if(NOT MSVC)
148 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
149 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
150endif()
151
152if(WIN32 AND MSVC)
153 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100154endif()
155
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300156include(GNUInstallDirs)
157if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
158 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
159endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100160
161
162add_library(gpr
163 src/core/lib/profiling/basic_timers.c
164 src/core/lib/profiling/stap_timers.c
165 src/core/lib/support/alloc.c
166 src/core/lib/support/avl.c
167 src/core/lib/support/backoff.c
168 src/core/lib/support/cmdline.c
169 src/core/lib/support/cpu_iphone.c
170 src/core/lib/support/cpu_linux.c
171 src/core/lib/support/cpu_posix.c
172 src/core/lib/support/cpu_windows.c
173 src/core/lib/support/env_linux.c
174 src/core/lib/support/env_posix.c
175 src/core/lib/support/env_windows.c
176 src/core/lib/support/histogram.c
177 src/core/lib/support/host_port.c
178 src/core/lib/support/log.c
179 src/core/lib/support/log_android.c
180 src/core/lib/support/log_linux.c
181 src/core/lib/support/log_posix.c
182 src/core/lib/support/log_windows.c
183 src/core/lib/support/murmur_hash.c
Craig Tiller17ed6b12016-08-18 09:33:33 -0700184 src/core/lib/support/percent_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100185 src/core/lib/support/slice.c
186 src/core/lib/support/slice_buffer.c
187 src/core/lib/support/stack_lockfree.c
188 src/core/lib/support/string.c
189 src/core/lib/support/string_posix.c
190 src/core/lib/support/string_util_windows.c
191 src/core/lib/support/string_windows.c
192 src/core/lib/support/subprocess_posix.c
193 src/core/lib/support/subprocess_windows.c
194 src/core/lib/support/sync.c
195 src/core/lib/support/sync_posix.c
196 src/core/lib/support/sync_windows.c
197 src/core/lib/support/thd.c
198 src/core/lib/support/thd_posix.c
199 src/core/lib/support/thd_windows.c
200 src/core/lib/support/time.c
201 src/core/lib/support/time_posix.c
202 src/core/lib/support/time_precise.c
203 src/core/lib/support/time_windows.c
204 src/core/lib/support/tls_pthread.c
205 src/core/lib/support/tmpfile_msys.c
206 src/core/lib/support/tmpfile_posix.c
207 src/core/lib/support/tmpfile_windows.c
208 src/core/lib/support/wrap_memcpy.c
209)
210
211target_include_directories(gpr
212 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
213 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
214 PRIVATE ${BORINGSSL_ROOT_DIR}/include
215 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300216 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100217 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
218)
219
220
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300221foreach(_hdr
222 include/grpc/support/alloc.h
223 include/grpc/support/atm.h
224 include/grpc/support/atm_gcc_atomic.h
225 include/grpc/support/atm_gcc_sync.h
226 include/grpc/support/atm_windows.h
227 include/grpc/support/avl.h
228 include/grpc/support/cmdline.h
229 include/grpc/support/cpu.h
230 include/grpc/support/histogram.h
231 include/grpc/support/host_port.h
232 include/grpc/support/log.h
233 include/grpc/support/log_windows.h
234 include/grpc/support/port_platform.h
235 include/grpc/support/slice.h
236 include/grpc/support/slice_buffer.h
237 include/grpc/support/string_util.h
238 include/grpc/support/subprocess.h
239 include/grpc/support/sync.h
240 include/grpc/support/sync_generic.h
241 include/grpc/support/sync_posix.h
242 include/grpc/support/sync_windows.h
243 include/grpc/support/thd.h
244 include/grpc/support/time.h
245 include/grpc/support/tls.h
246 include/grpc/support/tls_gcc.h
247 include/grpc/support/tls_msvc.h
248 include/grpc/support/tls_pthread.h
249 include/grpc/support/useful.h
250 include/grpc/impl/codegen/alloc.h
251 include/grpc/impl/codegen/atm.h
252 include/grpc/impl/codegen/atm_gcc_atomic.h
253 include/grpc/impl/codegen/atm_gcc_sync.h
254 include/grpc/impl/codegen/atm_windows.h
255 include/grpc/impl/codegen/log.h
256 include/grpc/impl/codegen/port_platform.h
257 include/grpc/impl/codegen/slice.h
258 include/grpc/impl/codegen/slice_buffer.h
259 include/grpc/impl/codegen/sync.h
260 include/grpc/impl/codegen/sync_generic.h
261 include/grpc/impl/codegen/sync_posix.h
262 include/grpc/impl/codegen/sync_windows.h
263 include/grpc/impl/codegen/time.h
264)
265 string(REPLACE "include/" "" _path ${_hdr})
266 get_filename_component(_path ${_path} PATH)
267 install(FILES ${_hdr}
268 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
269 )
270endforeach()
271
272
273install(TARGETS gpr EXPORT gRPCTargets
274 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
275 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
276 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
277)
278
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100279
280add_library(grpc
281 src/core/lib/surface/init.c
282 src/core/lib/channel/channel_args.c
283 src/core/lib/channel/channel_stack.c
284 src/core/lib/channel/channel_stack_builder.c
285 src/core/lib/channel/compress_filter.c
286 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700287 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100288 src/core/lib/channel/http_client_filter.c
289 src/core/lib/channel/http_server_filter.c
290 src/core/lib/compression/compression.c
291 src/core/lib/compression/message_compress.c
292 src/core/lib/debug/trace.c
293 src/core/lib/http/format_request.c
294 src/core/lib/http/httpcli.c
295 src/core/lib/http/parser.c
296 src/core/lib/iomgr/closure.c
297 src/core/lib/iomgr/endpoint.c
298 src/core/lib/iomgr/endpoint_pair_posix.c
299 src/core/lib/iomgr/endpoint_pair_windows.c
300 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200301 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100302 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
303 src/core/lib/iomgr/ev_poll_posix.c
304 src/core/lib/iomgr/ev_posix.c
305 src/core/lib/iomgr/exec_ctx.c
306 src/core/lib/iomgr/executor.c
307 src/core/lib/iomgr/iocp_windows.c
308 src/core/lib/iomgr/iomgr.c
309 src/core/lib/iomgr/iomgr_posix.c
310 src/core/lib/iomgr/iomgr_windows.c
311 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200312 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100313 src/core/lib/iomgr/polling_entity.c
314 src/core/lib/iomgr/pollset_set_windows.c
315 src/core/lib/iomgr/pollset_windows.c
316 src/core/lib/iomgr/resolve_address_posix.c
317 src/core/lib/iomgr/resolve_address_windows.c
318 src/core/lib/iomgr/sockaddr_utils.c
319 src/core/lib/iomgr/socket_utils_common_posix.c
320 src/core/lib/iomgr/socket_utils_linux.c
321 src/core/lib/iomgr/socket_utils_posix.c
322 src/core/lib/iomgr/socket_windows.c
323 src/core/lib/iomgr/tcp_client_posix.c
324 src/core/lib/iomgr/tcp_client_windows.c
325 src/core/lib/iomgr/tcp_posix.c
326 src/core/lib/iomgr/tcp_server_posix.c
327 src/core/lib/iomgr/tcp_server_windows.c
328 src/core/lib/iomgr/tcp_windows.c
329 src/core/lib/iomgr/time_averaged_stats.c
330 src/core/lib/iomgr/timer.c
331 src/core/lib/iomgr/timer_heap.c
332 src/core/lib/iomgr/udp_server.c
333 src/core/lib/iomgr/unix_sockets_posix.c
334 src/core/lib/iomgr/unix_sockets_posix_noop.c
335 src/core/lib/iomgr/wakeup_fd_eventfd.c
336 src/core/lib/iomgr/wakeup_fd_nospecial.c
337 src/core/lib/iomgr/wakeup_fd_pipe.c
338 src/core/lib/iomgr/wakeup_fd_posix.c
339 src/core/lib/iomgr/workqueue_posix.c
340 src/core/lib/iomgr/workqueue_windows.c
341 src/core/lib/json/json.c
342 src/core/lib/json/json_reader.c
343 src/core/lib/json/json_string.c
344 src/core/lib/json/json_writer.c
345 src/core/lib/surface/alarm.c
346 src/core/lib/surface/api_trace.c
347 src/core/lib/surface/byte_buffer.c
348 src/core/lib/surface/byte_buffer_reader.c
349 src/core/lib/surface/call.c
350 src/core/lib/surface/call_details.c
351 src/core/lib/surface/call_log_batch.c
352 src/core/lib/surface/channel.c
353 src/core/lib/surface/channel_init.c
354 src/core/lib/surface/channel_ping.c
355 src/core/lib/surface/channel_stack_type.c
356 src/core/lib/surface/completion_queue.c
357 src/core/lib/surface/event_string.c
358 src/core/lib/surface/lame_client.c
359 src/core/lib/surface/metadata_array.c
360 src/core/lib/surface/server.c
361 src/core/lib/surface/validate_metadata.c
362 src/core/lib/surface/version.c
363 src/core/lib/transport/byte_stream.c
364 src/core/lib/transport/connectivity_state.c
365 src/core/lib/transport/metadata.c
366 src/core/lib/transport/metadata_batch.c
367 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400368 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100369 src/core/lib/transport/transport.c
370 src/core/lib/transport/transport_op_string.c
371 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
372 src/core/ext/transport/chttp2/transport/bin_decoder.c
373 src/core/ext/transport/chttp2/transport/bin_encoder.c
374 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
375 src/core/ext/transport/chttp2/transport/chttp2_transport.c
376 src/core/ext/transport/chttp2/transport/frame_data.c
377 src/core/ext/transport/chttp2/transport/frame_goaway.c
378 src/core/ext/transport/chttp2/transport/frame_ping.c
379 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
380 src/core/ext/transport/chttp2/transport/frame_settings.c
381 src/core/ext/transport/chttp2/transport/frame_window_update.c
382 src/core/ext/transport/chttp2/transport/hpack_encoder.c
383 src/core/ext/transport/chttp2/transport/hpack_parser.c
384 src/core/ext/transport/chttp2/transport/hpack_table.c
385 src/core/ext/transport/chttp2/transport/huffsyms.c
386 src/core/ext/transport/chttp2/transport/incoming_metadata.c
387 src/core/ext/transport/chttp2/transport/parsing.c
388 src/core/ext/transport/chttp2/transport/status_conversion.c
389 src/core/ext/transport/chttp2/transport/stream_lists.c
390 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100391 src/core/ext/transport/chttp2/transport/varint.c
392 src/core/ext/transport/chttp2/transport/writing.c
393 src/core/ext/transport/chttp2/alpn/alpn.c
394 src/core/lib/http/httpcli_security_connector.c
395 src/core/lib/security/context/security_context.c
396 src/core/lib/security/credentials/composite/composite_credentials.c
397 src/core/lib/security/credentials/credentials.c
398 src/core/lib/security/credentials/credentials_metadata.c
399 src/core/lib/security/credentials/fake/fake_credentials.c
400 src/core/lib/security/credentials/google_default/credentials_posix.c
401 src/core/lib/security/credentials/google_default/credentials_windows.c
402 src/core/lib/security/credentials/google_default/google_default_credentials.c
403 src/core/lib/security/credentials/iam/iam_credentials.c
404 src/core/lib/security/credentials/jwt/json_token.c
405 src/core/lib/security/credentials/jwt/jwt_credentials.c
406 src/core/lib/security/credentials/jwt/jwt_verifier.c
407 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
408 src/core/lib/security/credentials/plugin/plugin_credentials.c
409 src/core/lib/security/credentials/ssl/ssl_credentials.c
410 src/core/lib/security/transport/client_auth_filter.c
411 src/core/lib/security/transport/handshake.c
412 src/core/lib/security/transport/secure_endpoint.c
413 src/core/lib/security/transport/security_connector.c
414 src/core/lib/security/transport/server_auth_filter.c
415 src/core/lib/security/transport/tsi_error.c
416 src/core/lib/security/util/b64.c
417 src/core/lib/security/util/json_util.c
418 src/core/lib/surface/init_secure.c
419 src/core/lib/tsi/fake_transport_security.c
420 src/core/lib/tsi/ssl_transport_security.c
421 src/core/lib/tsi/transport_security.c
422 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
423 src/core/ext/client_config/channel_connectivity.c
424 src/core/ext/client_config/client_channel.c
425 src/core/ext/client_config/client_channel_factory.c
426 src/core/ext/client_config/client_config.c
427 src/core/ext/client_config/client_config_plugin.c
428 src/core/ext/client_config/connector.c
429 src/core/ext/client_config/default_initial_connect_string.c
430 src/core/ext/client_config/initial_connect_string.c
431 src/core/ext/client_config/lb_policy.c
432 src/core/ext/client_config/lb_policy_factory.c
433 src/core/ext/client_config/lb_policy_registry.c
434 src/core/ext/client_config/parse_address.c
435 src/core/ext/client_config/resolver.c
436 src/core/ext/client_config/resolver_factory.c
437 src/core/ext/client_config/resolver_registry.c
438 src/core/ext/client_config/subchannel.c
439 src/core/ext/client_config/subchannel_call_holder.c
440 src/core/ext/client_config/subchannel_index.c
441 src/core/ext/client_config/uri_parser.c
442 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
443 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
444 src/core/ext/transport/chttp2/client/insecure/channel_create.c
445 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700446 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100447 src/core/ext/lb_policy/grpclb/load_balancer_api.c
448 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
449 third_party/nanopb/pb_common.c
450 third_party/nanopb/pb_decode.c
451 third_party/nanopb/pb_encode.c
452 src/core/ext/lb_policy/pick_first/pick_first.c
453 src/core/ext/lb_policy/round_robin/round_robin.c
454 src/core/ext/resolver/dns/native/dns_resolver.c
455 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
456 src/core/ext/load_reporting/load_reporting.c
457 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700458 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100459 src/core/ext/census/context.c
460 src/core/ext/census/gen/census.pb.c
461 src/core/ext/census/grpc_context.c
462 src/core/ext/census/grpc_filter.c
463 src/core/ext/census/grpc_plugin.c
464 src/core/ext/census/initialize.c
465 src/core/ext/census/mlog.c
466 src/core/ext/census/operation.c
467 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700468 src/core/ext/census/resource.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100469 src/core/ext/census/tracing.c
470 src/core/plugin_registry/grpc_plugin_registry.c
471)
472
473target_include_directories(grpc
474 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
475 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
476 PRIVATE ${BORINGSSL_ROOT_DIR}/include
477 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300478 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100479 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
480)
481
482target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300483 ${_gRPC_BASELIB_LIBRARIES}
484 ${_gRPC_SSL_LIBRARIES}
485 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100486 gpr
487)
488
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300489foreach(_hdr
490 include/grpc/byte_buffer.h
491 include/grpc/byte_buffer_reader.h
492 include/grpc/compression.h
493 include/grpc/grpc.h
494 include/grpc/grpc_posix.h
495 include/grpc/status.h
496 include/grpc/impl/codegen/byte_buffer.h
497 include/grpc/impl/codegen/byte_buffer_reader.h
498 include/grpc/impl/codegen/compression_types.h
499 include/grpc/impl/codegen/connectivity_state.h
500 include/grpc/impl/codegen/grpc_types.h
501 include/grpc/impl/codegen/propagation_bits.h
502 include/grpc/impl/codegen/status.h
503 include/grpc/impl/codegen/alloc.h
504 include/grpc/impl/codegen/atm.h
505 include/grpc/impl/codegen/atm_gcc_atomic.h
506 include/grpc/impl/codegen/atm_gcc_sync.h
507 include/grpc/impl/codegen/atm_windows.h
508 include/grpc/impl/codegen/log.h
509 include/grpc/impl/codegen/port_platform.h
510 include/grpc/impl/codegen/slice.h
511 include/grpc/impl/codegen/slice_buffer.h
512 include/grpc/impl/codegen/sync.h
513 include/grpc/impl/codegen/sync_generic.h
514 include/grpc/impl/codegen/sync_posix.h
515 include/grpc/impl/codegen/sync_windows.h
516 include/grpc/impl/codegen/time.h
517 include/grpc/grpc_security.h
518 include/grpc/grpc_security_constants.h
519 include/grpc/census.h
520)
521 string(REPLACE "include/" "" _path ${_hdr})
522 get_filename_component(_path ${_path} PATH)
523 install(FILES ${_hdr}
524 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
525 )
526endforeach()
527
528
529install(TARGETS grpc EXPORT gRPCTargets
530 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
531 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
532 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
533)
534
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100535
536add_library(grpc_cronet
537 src/core/lib/surface/init.c
538 src/core/lib/channel/channel_args.c
539 src/core/lib/channel/channel_stack.c
540 src/core/lib/channel/channel_stack_builder.c
541 src/core/lib/channel/compress_filter.c
542 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700543 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100544 src/core/lib/channel/http_client_filter.c
545 src/core/lib/channel/http_server_filter.c
546 src/core/lib/compression/compression.c
547 src/core/lib/compression/message_compress.c
548 src/core/lib/debug/trace.c
549 src/core/lib/http/format_request.c
550 src/core/lib/http/httpcli.c
551 src/core/lib/http/parser.c
552 src/core/lib/iomgr/closure.c
553 src/core/lib/iomgr/endpoint.c
554 src/core/lib/iomgr/endpoint_pair_posix.c
555 src/core/lib/iomgr/endpoint_pair_windows.c
556 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200557 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100558 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
559 src/core/lib/iomgr/ev_poll_posix.c
560 src/core/lib/iomgr/ev_posix.c
561 src/core/lib/iomgr/exec_ctx.c
562 src/core/lib/iomgr/executor.c
563 src/core/lib/iomgr/iocp_windows.c
564 src/core/lib/iomgr/iomgr.c
565 src/core/lib/iomgr/iomgr_posix.c
566 src/core/lib/iomgr/iomgr_windows.c
567 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200568 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100569 src/core/lib/iomgr/polling_entity.c
570 src/core/lib/iomgr/pollset_set_windows.c
571 src/core/lib/iomgr/pollset_windows.c
572 src/core/lib/iomgr/resolve_address_posix.c
573 src/core/lib/iomgr/resolve_address_windows.c
574 src/core/lib/iomgr/sockaddr_utils.c
575 src/core/lib/iomgr/socket_utils_common_posix.c
576 src/core/lib/iomgr/socket_utils_linux.c
577 src/core/lib/iomgr/socket_utils_posix.c
578 src/core/lib/iomgr/socket_windows.c
579 src/core/lib/iomgr/tcp_client_posix.c
580 src/core/lib/iomgr/tcp_client_windows.c
581 src/core/lib/iomgr/tcp_posix.c
582 src/core/lib/iomgr/tcp_server_posix.c
583 src/core/lib/iomgr/tcp_server_windows.c
584 src/core/lib/iomgr/tcp_windows.c
585 src/core/lib/iomgr/time_averaged_stats.c
586 src/core/lib/iomgr/timer.c
587 src/core/lib/iomgr/timer_heap.c
588 src/core/lib/iomgr/udp_server.c
589 src/core/lib/iomgr/unix_sockets_posix.c
590 src/core/lib/iomgr/unix_sockets_posix_noop.c
591 src/core/lib/iomgr/wakeup_fd_eventfd.c
592 src/core/lib/iomgr/wakeup_fd_nospecial.c
593 src/core/lib/iomgr/wakeup_fd_pipe.c
594 src/core/lib/iomgr/wakeup_fd_posix.c
595 src/core/lib/iomgr/workqueue_posix.c
596 src/core/lib/iomgr/workqueue_windows.c
597 src/core/lib/json/json.c
598 src/core/lib/json/json_reader.c
599 src/core/lib/json/json_string.c
600 src/core/lib/json/json_writer.c
601 src/core/lib/surface/alarm.c
602 src/core/lib/surface/api_trace.c
603 src/core/lib/surface/byte_buffer.c
604 src/core/lib/surface/byte_buffer_reader.c
605 src/core/lib/surface/call.c
606 src/core/lib/surface/call_details.c
607 src/core/lib/surface/call_log_batch.c
608 src/core/lib/surface/channel.c
609 src/core/lib/surface/channel_init.c
610 src/core/lib/surface/channel_ping.c
611 src/core/lib/surface/channel_stack_type.c
612 src/core/lib/surface/completion_queue.c
613 src/core/lib/surface/event_string.c
614 src/core/lib/surface/lame_client.c
615 src/core/lib/surface/metadata_array.c
616 src/core/lib/surface/server.c
617 src/core/lib/surface/validate_metadata.c
618 src/core/lib/surface/version.c
619 src/core/lib/transport/byte_stream.c
620 src/core/lib/transport/connectivity_state.c
621 src/core/lib/transport/metadata.c
622 src/core/lib/transport/metadata_batch.c
623 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400624 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100625 src/core/lib/transport/transport.c
626 src/core/lib/transport/transport_op_string.c
627 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
628 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
629 src/core/ext/transport/cronet/transport/cronet_transport.c
630 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
631 src/core/ext/transport/chttp2/transport/bin_decoder.c
632 src/core/ext/transport/chttp2/transport/bin_encoder.c
633 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
634 src/core/ext/transport/chttp2/transport/chttp2_transport.c
635 src/core/ext/transport/chttp2/transport/frame_data.c
636 src/core/ext/transport/chttp2/transport/frame_goaway.c
637 src/core/ext/transport/chttp2/transport/frame_ping.c
638 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
639 src/core/ext/transport/chttp2/transport/frame_settings.c
640 src/core/ext/transport/chttp2/transport/frame_window_update.c
641 src/core/ext/transport/chttp2/transport/hpack_encoder.c
642 src/core/ext/transport/chttp2/transport/hpack_parser.c
643 src/core/ext/transport/chttp2/transport/hpack_table.c
644 src/core/ext/transport/chttp2/transport/huffsyms.c
645 src/core/ext/transport/chttp2/transport/incoming_metadata.c
646 src/core/ext/transport/chttp2/transport/parsing.c
647 src/core/ext/transport/chttp2/transport/status_conversion.c
648 src/core/ext/transport/chttp2/transport/stream_lists.c
649 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100650 src/core/ext/transport/chttp2/transport/varint.c
651 src/core/ext/transport/chttp2/transport/writing.c
652 src/core/ext/transport/chttp2/alpn/alpn.c
653 src/core/ext/client_config/channel_connectivity.c
654 src/core/ext/client_config/client_channel.c
655 src/core/ext/client_config/client_channel_factory.c
656 src/core/ext/client_config/client_config.c
657 src/core/ext/client_config/client_config_plugin.c
658 src/core/ext/client_config/connector.c
659 src/core/ext/client_config/default_initial_connect_string.c
660 src/core/ext/client_config/initial_connect_string.c
661 src/core/ext/client_config/lb_policy.c
662 src/core/ext/client_config/lb_policy_factory.c
663 src/core/ext/client_config/lb_policy_registry.c
664 src/core/ext/client_config/parse_address.c
665 src/core/ext/client_config/resolver.c
666 src/core/ext/client_config/resolver_factory.c
667 src/core/ext/client_config/resolver_registry.c
668 src/core/ext/client_config/subchannel.c
669 src/core/ext/client_config/subchannel_call_holder.c
670 src/core/ext/client_config/subchannel_index.c
671 src/core/ext/client_config/uri_parser.c
672 src/core/lib/http/httpcli_security_connector.c
673 src/core/lib/security/context/security_context.c
674 src/core/lib/security/credentials/composite/composite_credentials.c
675 src/core/lib/security/credentials/credentials.c
676 src/core/lib/security/credentials/credentials_metadata.c
677 src/core/lib/security/credentials/fake/fake_credentials.c
678 src/core/lib/security/credentials/google_default/credentials_posix.c
679 src/core/lib/security/credentials/google_default/credentials_windows.c
680 src/core/lib/security/credentials/google_default/google_default_credentials.c
681 src/core/lib/security/credentials/iam/iam_credentials.c
682 src/core/lib/security/credentials/jwt/json_token.c
683 src/core/lib/security/credentials/jwt/jwt_credentials.c
684 src/core/lib/security/credentials/jwt/jwt_verifier.c
685 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
686 src/core/lib/security/credentials/plugin/plugin_credentials.c
687 src/core/lib/security/credentials/ssl/ssl_credentials.c
688 src/core/lib/security/transport/client_auth_filter.c
689 src/core/lib/security/transport/handshake.c
690 src/core/lib/security/transport/secure_endpoint.c
691 src/core/lib/security/transport/security_connector.c
692 src/core/lib/security/transport/server_auth_filter.c
693 src/core/lib/security/transport/tsi_error.c
694 src/core/lib/security/util/b64.c
695 src/core/lib/security/util/json_util.c
696 src/core/lib/surface/init_secure.c
697 src/core/lib/tsi/fake_transport_security.c
698 src/core/lib/tsi/ssl_transport_security.c
699 src/core/lib/tsi/transport_security.c
700 src/core/plugin_registry/grpc_cronet_plugin_registry.c
701)
702
703target_include_directories(grpc_cronet
704 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
705 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
706 PRIVATE ${BORINGSSL_ROOT_DIR}/include
707 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300708 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100709 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
710)
711
712target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300713 ${_gRPC_BASELIB_LIBRARIES}
714 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100715 gpr
716)
717
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300718foreach(_hdr
719 include/grpc/byte_buffer.h
720 include/grpc/byte_buffer_reader.h
721 include/grpc/compression.h
722 include/grpc/grpc.h
723 include/grpc/grpc_posix.h
724 include/grpc/status.h
725 include/grpc/impl/codegen/byte_buffer.h
726 include/grpc/impl/codegen/byte_buffer_reader.h
727 include/grpc/impl/codegen/compression_types.h
728 include/grpc/impl/codegen/connectivity_state.h
729 include/grpc/impl/codegen/grpc_types.h
730 include/grpc/impl/codegen/propagation_bits.h
731 include/grpc/impl/codegen/status.h
732 include/grpc/impl/codegen/alloc.h
733 include/grpc/impl/codegen/atm.h
734 include/grpc/impl/codegen/atm_gcc_atomic.h
735 include/grpc/impl/codegen/atm_gcc_sync.h
736 include/grpc/impl/codegen/atm_windows.h
737 include/grpc/impl/codegen/log.h
738 include/grpc/impl/codegen/port_platform.h
739 include/grpc/impl/codegen/slice.h
740 include/grpc/impl/codegen/slice_buffer.h
741 include/grpc/impl/codegen/sync.h
742 include/grpc/impl/codegen/sync_generic.h
743 include/grpc/impl/codegen/sync_posix.h
744 include/grpc/impl/codegen/sync_windows.h
745 include/grpc/impl/codegen/time.h
746 include/grpc/grpc_cronet.h
747 include/grpc/grpc_security.h
748 include/grpc/grpc_security_constants.h
749)
750 string(REPLACE "include/" "" _path ${_hdr})
751 get_filename_component(_path ${_path} PATH)
752 install(FILES ${_hdr}
753 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
754 )
755endforeach()
756
757
758install(TARGETS grpc_cronet EXPORT gRPCTargets
759 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
760 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
761 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
762)
763
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100764
765add_library(grpc_unsecure
766 src/core/lib/surface/init.c
767 src/core/lib/surface/init_unsecure.c
768 src/core/lib/channel/channel_args.c
769 src/core/lib/channel/channel_stack.c
770 src/core/lib/channel/channel_stack_builder.c
771 src/core/lib/channel/compress_filter.c
772 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700773 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100774 src/core/lib/channel/http_client_filter.c
775 src/core/lib/channel/http_server_filter.c
776 src/core/lib/compression/compression.c
777 src/core/lib/compression/message_compress.c
778 src/core/lib/debug/trace.c
779 src/core/lib/http/format_request.c
780 src/core/lib/http/httpcli.c
781 src/core/lib/http/parser.c
782 src/core/lib/iomgr/closure.c
783 src/core/lib/iomgr/endpoint.c
784 src/core/lib/iomgr/endpoint_pair_posix.c
785 src/core/lib/iomgr/endpoint_pair_windows.c
786 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200787 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100788 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
789 src/core/lib/iomgr/ev_poll_posix.c
790 src/core/lib/iomgr/ev_posix.c
791 src/core/lib/iomgr/exec_ctx.c
792 src/core/lib/iomgr/executor.c
793 src/core/lib/iomgr/iocp_windows.c
794 src/core/lib/iomgr/iomgr.c
795 src/core/lib/iomgr/iomgr_posix.c
796 src/core/lib/iomgr/iomgr_windows.c
797 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200798 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100799 src/core/lib/iomgr/polling_entity.c
800 src/core/lib/iomgr/pollset_set_windows.c
801 src/core/lib/iomgr/pollset_windows.c
802 src/core/lib/iomgr/resolve_address_posix.c
803 src/core/lib/iomgr/resolve_address_windows.c
804 src/core/lib/iomgr/sockaddr_utils.c
805 src/core/lib/iomgr/socket_utils_common_posix.c
806 src/core/lib/iomgr/socket_utils_linux.c
807 src/core/lib/iomgr/socket_utils_posix.c
808 src/core/lib/iomgr/socket_windows.c
809 src/core/lib/iomgr/tcp_client_posix.c
810 src/core/lib/iomgr/tcp_client_windows.c
811 src/core/lib/iomgr/tcp_posix.c
812 src/core/lib/iomgr/tcp_server_posix.c
813 src/core/lib/iomgr/tcp_server_windows.c
814 src/core/lib/iomgr/tcp_windows.c
815 src/core/lib/iomgr/time_averaged_stats.c
816 src/core/lib/iomgr/timer.c
817 src/core/lib/iomgr/timer_heap.c
818 src/core/lib/iomgr/udp_server.c
819 src/core/lib/iomgr/unix_sockets_posix.c
820 src/core/lib/iomgr/unix_sockets_posix_noop.c
821 src/core/lib/iomgr/wakeup_fd_eventfd.c
822 src/core/lib/iomgr/wakeup_fd_nospecial.c
823 src/core/lib/iomgr/wakeup_fd_pipe.c
824 src/core/lib/iomgr/wakeup_fd_posix.c
825 src/core/lib/iomgr/workqueue_posix.c
826 src/core/lib/iomgr/workqueue_windows.c
827 src/core/lib/json/json.c
828 src/core/lib/json/json_reader.c
829 src/core/lib/json/json_string.c
830 src/core/lib/json/json_writer.c
831 src/core/lib/surface/alarm.c
832 src/core/lib/surface/api_trace.c
833 src/core/lib/surface/byte_buffer.c
834 src/core/lib/surface/byte_buffer_reader.c
835 src/core/lib/surface/call.c
836 src/core/lib/surface/call_details.c
837 src/core/lib/surface/call_log_batch.c
838 src/core/lib/surface/channel.c
839 src/core/lib/surface/channel_init.c
840 src/core/lib/surface/channel_ping.c
841 src/core/lib/surface/channel_stack_type.c
842 src/core/lib/surface/completion_queue.c
843 src/core/lib/surface/event_string.c
844 src/core/lib/surface/lame_client.c
845 src/core/lib/surface/metadata_array.c
846 src/core/lib/surface/server.c
847 src/core/lib/surface/validate_metadata.c
848 src/core/lib/surface/version.c
849 src/core/lib/transport/byte_stream.c
850 src/core/lib/transport/connectivity_state.c
851 src/core/lib/transport/metadata.c
852 src/core/lib/transport/metadata_batch.c
853 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400854 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100855 src/core/lib/transport/transport.c
856 src/core/lib/transport/transport_op_string.c
857 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
858 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
859 src/core/ext/transport/chttp2/transport/bin_decoder.c
860 src/core/ext/transport/chttp2/transport/bin_encoder.c
861 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
862 src/core/ext/transport/chttp2/transport/chttp2_transport.c
863 src/core/ext/transport/chttp2/transport/frame_data.c
864 src/core/ext/transport/chttp2/transport/frame_goaway.c
865 src/core/ext/transport/chttp2/transport/frame_ping.c
866 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
867 src/core/ext/transport/chttp2/transport/frame_settings.c
868 src/core/ext/transport/chttp2/transport/frame_window_update.c
869 src/core/ext/transport/chttp2/transport/hpack_encoder.c
870 src/core/ext/transport/chttp2/transport/hpack_parser.c
871 src/core/ext/transport/chttp2/transport/hpack_table.c
872 src/core/ext/transport/chttp2/transport/huffsyms.c
873 src/core/ext/transport/chttp2/transport/incoming_metadata.c
874 src/core/ext/transport/chttp2/transport/parsing.c
875 src/core/ext/transport/chttp2/transport/status_conversion.c
876 src/core/ext/transport/chttp2/transport/stream_lists.c
877 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100878 src/core/ext/transport/chttp2/transport/varint.c
879 src/core/ext/transport/chttp2/transport/writing.c
880 src/core/ext/transport/chttp2/alpn/alpn.c
881 src/core/ext/transport/chttp2/client/insecure/channel_create.c
882 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
883 src/core/ext/client_config/channel_connectivity.c
884 src/core/ext/client_config/client_channel.c
885 src/core/ext/client_config/client_channel_factory.c
886 src/core/ext/client_config/client_config.c
887 src/core/ext/client_config/client_config_plugin.c
888 src/core/ext/client_config/connector.c
889 src/core/ext/client_config/default_initial_connect_string.c
890 src/core/ext/client_config/initial_connect_string.c
891 src/core/ext/client_config/lb_policy.c
892 src/core/ext/client_config/lb_policy_factory.c
893 src/core/ext/client_config/lb_policy_registry.c
894 src/core/ext/client_config/parse_address.c
895 src/core/ext/client_config/resolver.c
896 src/core/ext/client_config/resolver_factory.c
897 src/core/ext/client_config/resolver_registry.c
898 src/core/ext/client_config/subchannel.c
899 src/core/ext/client_config/subchannel_call_holder.c
900 src/core/ext/client_config/subchannel_index.c
901 src/core/ext/client_config/uri_parser.c
902 src/core/ext/resolver/dns/native/dns_resolver.c
903 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
904 src/core/ext/load_reporting/load_reporting.c
905 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700906 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100907 src/core/ext/lb_policy/grpclb/load_balancer_api.c
908 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
909 third_party/nanopb/pb_common.c
910 third_party/nanopb/pb_decode.c
911 third_party/nanopb/pb_encode.c
912 src/core/ext/lb_policy/pick_first/pick_first.c
913 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700914 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100915 src/core/ext/census/context.c
916 src/core/ext/census/gen/census.pb.c
917 src/core/ext/census/grpc_context.c
918 src/core/ext/census/grpc_filter.c
919 src/core/ext/census/grpc_plugin.c
920 src/core/ext/census/initialize.c
921 src/core/ext/census/mlog.c
922 src/core/ext/census/operation.c
923 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700924 src/core/ext/census/resource.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100925 src/core/ext/census/tracing.c
926 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
927)
928
929target_include_directories(grpc_unsecure
930 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
931 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
932 PRIVATE ${BORINGSSL_ROOT_DIR}/include
933 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300934 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100935 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
936)
937
938target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300939 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100940 gpr
941)
942
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300943foreach(_hdr
944 include/grpc/byte_buffer.h
945 include/grpc/byte_buffer_reader.h
946 include/grpc/compression.h
947 include/grpc/grpc.h
948 include/grpc/grpc_posix.h
949 include/grpc/status.h
950 include/grpc/impl/codegen/byte_buffer.h
951 include/grpc/impl/codegen/byte_buffer_reader.h
952 include/grpc/impl/codegen/compression_types.h
953 include/grpc/impl/codegen/connectivity_state.h
954 include/grpc/impl/codegen/grpc_types.h
955 include/grpc/impl/codegen/propagation_bits.h
956 include/grpc/impl/codegen/status.h
957 include/grpc/impl/codegen/alloc.h
958 include/grpc/impl/codegen/atm.h
959 include/grpc/impl/codegen/atm_gcc_atomic.h
960 include/grpc/impl/codegen/atm_gcc_sync.h
961 include/grpc/impl/codegen/atm_windows.h
962 include/grpc/impl/codegen/log.h
963 include/grpc/impl/codegen/port_platform.h
964 include/grpc/impl/codegen/slice.h
965 include/grpc/impl/codegen/slice_buffer.h
966 include/grpc/impl/codegen/sync.h
967 include/grpc/impl/codegen/sync_generic.h
968 include/grpc/impl/codegen/sync_posix.h
969 include/grpc/impl/codegen/sync_windows.h
970 include/grpc/impl/codegen/time.h
971 include/grpc/census.h
972)
973 string(REPLACE "include/" "" _path ${_hdr})
974 get_filename_component(_path ${_path} PATH)
975 install(FILES ${_hdr}
976 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
977 )
978endforeach()
979
980
981install(TARGETS grpc_unsecure EXPORT gRPCTargets
982 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
983 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
984 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
985)
986
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100987
988add_library(grpc++
989 src/cpp/client/secure_credentials.cc
990 src/cpp/common/auth_property_iterator.cc
991 src/cpp/common/secure_auth_context.cc
992 src/cpp/common/secure_channel_arguments.cc
993 src/cpp/common/secure_create_auth_context.cc
994 src/cpp/server/secure_server_credentials.cc
995 src/cpp/client/channel.cc
996 src/cpp/client/client_context.cc
997 src/cpp/client/create_channel.cc
998 src/cpp/client/create_channel_internal.cc
999 src/cpp/client/create_channel_posix.cc
1000 src/cpp/client/credentials.cc
1001 src/cpp/client/generic_stub.cc
1002 src/cpp/client/insecure_credentials.cc
1003 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001004 src/cpp/common/channel_filter.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001005 src/cpp/common/completion_queue.cc
1006 src/cpp/common/core_codegen.cc
1007 src/cpp/common/rpc_method.cc
1008 src/cpp/server/async_generic_service.cc
1009 src/cpp/server/create_default_thread_pool.cc
1010 src/cpp/server/dynamic_thread_pool.cc
1011 src/cpp/server/insecure_server_credentials.cc
1012 src/cpp/server/server.cc
1013 src/cpp/server/server_builder.cc
1014 src/cpp/server/server_context.cc
1015 src/cpp/server/server_credentials.cc
1016 src/cpp/server/server_posix.cc
1017 src/cpp/util/byte_buffer.cc
1018 src/cpp/util/slice.cc
1019 src/cpp/util/status.cc
1020 src/cpp/util/string_ref.cc
1021 src/cpp/util/time.cc
1022 src/cpp/codegen/codegen_init.cc
1023)
1024
1025target_include_directories(grpc++
1026 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1027 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1028 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1029 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001030 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001031 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1032)
1033
1034target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001035 ${_gRPC_BASELIB_LIBRARIES}
1036 ${_gRPC_SSL_LIBRARIES}
1037 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001038 grpc
1039)
1040
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001041foreach(_hdr
1042 include/grpc++/alarm.h
1043 include/grpc++/channel.h
1044 include/grpc++/client_context.h
1045 include/grpc++/completion_queue.h
1046 include/grpc++/create_channel.h
1047 include/grpc++/create_channel_posix.h
1048 include/grpc++/generic/async_generic_service.h
1049 include/grpc++/generic/generic_stub.h
1050 include/grpc++/grpc++.h
1051 include/grpc++/impl/call.h
1052 include/grpc++/impl/client_unary_call.h
1053 include/grpc++/impl/codegen/core_codegen.h
1054 include/grpc++/impl/grpc_library.h
1055 include/grpc++/impl/method_handler_impl.h
1056 include/grpc++/impl/rpc_method.h
1057 include/grpc++/impl/rpc_service_method.h
1058 include/grpc++/impl/serialization_traits.h
1059 include/grpc++/impl/server_builder_option.h
1060 include/grpc++/impl/server_builder_plugin.h
1061 include/grpc++/impl/server_initializer.h
1062 include/grpc++/impl/service_type.h
1063 include/grpc++/impl/sync.h
1064 include/grpc++/impl/sync_cxx11.h
1065 include/grpc++/impl/sync_no_cxx11.h
1066 include/grpc++/impl/thd.h
1067 include/grpc++/impl/thd_cxx11.h
1068 include/grpc++/impl/thd_no_cxx11.h
1069 include/grpc++/security/auth_context.h
1070 include/grpc++/security/auth_metadata_processor.h
1071 include/grpc++/security/credentials.h
1072 include/grpc++/security/server_credentials.h
1073 include/grpc++/server.h
1074 include/grpc++/server_builder.h
1075 include/grpc++/server_context.h
1076 include/grpc++/server_posix.h
1077 include/grpc++/support/async_stream.h
1078 include/grpc++/support/async_unary_call.h
1079 include/grpc++/support/byte_buffer.h
1080 include/grpc++/support/channel_arguments.h
1081 include/grpc++/support/config.h
1082 include/grpc++/support/slice.h
1083 include/grpc++/support/status.h
1084 include/grpc++/support/status_code_enum.h
1085 include/grpc++/support/string_ref.h
1086 include/grpc++/support/stub_options.h
1087 include/grpc++/support/sync_stream.h
1088 include/grpc++/support/time.h
1089 include/grpc++/impl/codegen/async_stream.h
1090 include/grpc++/impl/codegen/async_unary_call.h
1091 include/grpc++/impl/codegen/call.h
1092 include/grpc++/impl/codegen/call_hook.h
1093 include/grpc++/impl/codegen/channel_interface.h
1094 include/grpc++/impl/codegen/client_context.h
1095 include/grpc++/impl/codegen/client_unary_call.h
1096 include/grpc++/impl/codegen/completion_queue.h
1097 include/grpc++/impl/codegen/completion_queue_tag.h
1098 include/grpc++/impl/codegen/config.h
1099 include/grpc++/impl/codegen/core_codegen_interface.h
1100 include/grpc++/impl/codegen/create_auth_context.h
1101 include/grpc++/impl/codegen/grpc_library.h
1102 include/grpc++/impl/codegen/method_handler_impl.h
1103 include/grpc++/impl/codegen/rpc_method.h
1104 include/grpc++/impl/codegen/rpc_service_method.h
1105 include/grpc++/impl/codegen/security/auth_context.h
1106 include/grpc++/impl/codegen/serialization_traits.h
1107 include/grpc++/impl/codegen/server_context.h
1108 include/grpc++/impl/codegen/server_interface.h
1109 include/grpc++/impl/codegen/service_type.h
1110 include/grpc++/impl/codegen/status.h
1111 include/grpc++/impl/codegen/status_code_enum.h
1112 include/grpc++/impl/codegen/string_ref.h
1113 include/grpc++/impl/codegen/stub_options.h
1114 include/grpc++/impl/codegen/sync.h
1115 include/grpc++/impl/codegen/sync_cxx11.h
1116 include/grpc++/impl/codegen/sync_no_cxx11.h
1117 include/grpc++/impl/codegen/sync_stream.h
1118 include/grpc++/impl/codegen/time.h
1119 include/grpc/impl/codegen/byte_buffer.h
1120 include/grpc/impl/codegen/byte_buffer_reader.h
1121 include/grpc/impl/codegen/compression_types.h
1122 include/grpc/impl/codegen/connectivity_state.h
1123 include/grpc/impl/codegen/grpc_types.h
1124 include/grpc/impl/codegen/propagation_bits.h
1125 include/grpc/impl/codegen/status.h
1126 include/grpc/impl/codegen/alloc.h
1127 include/grpc/impl/codegen/atm.h
1128 include/grpc/impl/codegen/atm_gcc_atomic.h
1129 include/grpc/impl/codegen/atm_gcc_sync.h
1130 include/grpc/impl/codegen/atm_windows.h
1131 include/grpc/impl/codegen/log.h
1132 include/grpc/impl/codegen/port_platform.h
1133 include/grpc/impl/codegen/slice.h
1134 include/grpc/impl/codegen/slice_buffer.h
1135 include/grpc/impl/codegen/sync.h
1136 include/grpc/impl/codegen/sync_generic.h
1137 include/grpc/impl/codegen/sync_posix.h
1138 include/grpc/impl/codegen/sync_windows.h
1139 include/grpc/impl/codegen/time.h
1140)
1141 string(REPLACE "include/" "" _path ${_hdr})
1142 get_filename_component(_path ${_path} PATH)
1143 install(FILES ${_hdr}
1144 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1145 )
1146endforeach()
1147
1148
1149install(TARGETS grpc++ EXPORT gRPCTargets
1150 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1151 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1152 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1153)
1154
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001155
1156add_library(grpc++_reflection
1157 src/cpp/ext/proto_server_reflection.cc
1158 src/cpp/ext/proto_server_reflection_plugin.cc
1159 src/cpp/ext/reflection.grpc.pb.cc
1160 src/cpp/ext/reflection.pb.cc
1161)
1162
1163target_include_directories(grpc++_reflection
1164 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1165 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1166 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1167 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001168 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001169 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1170)
1171
1172target_link_libraries(grpc++_reflection
1173 grpc++
1174)
1175
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001176foreach(_hdr
1177 include/grpc++/ext/proto_server_reflection_plugin.h
1178 include/grpc++/ext/reflection.grpc.pb.h
1179 include/grpc++/ext/reflection.pb.h
1180 include/grpc++/impl/codegen/proto_utils.h
1181 include/grpc++/impl/codegen/async_stream.h
1182 include/grpc++/impl/codegen/async_unary_call.h
1183 include/grpc++/impl/codegen/call.h
1184 include/grpc++/impl/codegen/call_hook.h
1185 include/grpc++/impl/codegen/channel_interface.h
1186 include/grpc++/impl/codegen/client_context.h
1187 include/grpc++/impl/codegen/client_unary_call.h
1188 include/grpc++/impl/codegen/completion_queue.h
1189 include/grpc++/impl/codegen/completion_queue_tag.h
1190 include/grpc++/impl/codegen/config.h
1191 include/grpc++/impl/codegen/core_codegen_interface.h
1192 include/grpc++/impl/codegen/create_auth_context.h
1193 include/grpc++/impl/codegen/grpc_library.h
1194 include/grpc++/impl/codegen/method_handler_impl.h
1195 include/grpc++/impl/codegen/rpc_method.h
1196 include/grpc++/impl/codegen/rpc_service_method.h
1197 include/grpc++/impl/codegen/security/auth_context.h
1198 include/grpc++/impl/codegen/serialization_traits.h
1199 include/grpc++/impl/codegen/server_context.h
1200 include/grpc++/impl/codegen/server_interface.h
1201 include/grpc++/impl/codegen/service_type.h
1202 include/grpc++/impl/codegen/status.h
1203 include/grpc++/impl/codegen/status_code_enum.h
1204 include/grpc++/impl/codegen/string_ref.h
1205 include/grpc++/impl/codegen/stub_options.h
1206 include/grpc++/impl/codegen/sync.h
1207 include/grpc++/impl/codegen/sync_cxx11.h
1208 include/grpc++/impl/codegen/sync_no_cxx11.h
1209 include/grpc++/impl/codegen/sync_stream.h
1210 include/grpc++/impl/codegen/time.h
1211 include/grpc/impl/codegen/byte_buffer.h
1212 include/grpc/impl/codegen/byte_buffer_reader.h
1213 include/grpc/impl/codegen/compression_types.h
1214 include/grpc/impl/codegen/connectivity_state.h
1215 include/grpc/impl/codegen/grpc_types.h
1216 include/grpc/impl/codegen/propagation_bits.h
1217 include/grpc/impl/codegen/status.h
1218 include/grpc/impl/codegen/alloc.h
1219 include/grpc/impl/codegen/atm.h
1220 include/grpc/impl/codegen/atm_gcc_atomic.h
1221 include/grpc/impl/codegen/atm_gcc_sync.h
1222 include/grpc/impl/codegen/atm_windows.h
1223 include/grpc/impl/codegen/log.h
1224 include/grpc/impl/codegen/port_platform.h
1225 include/grpc/impl/codegen/slice.h
1226 include/grpc/impl/codegen/slice_buffer.h
1227 include/grpc/impl/codegen/sync.h
1228 include/grpc/impl/codegen/sync_generic.h
1229 include/grpc/impl/codegen/sync_posix.h
1230 include/grpc/impl/codegen/sync_windows.h
1231 include/grpc/impl/codegen/time.h
1232 include/grpc++/impl/codegen/config_protobuf.h
1233)
1234 string(REPLACE "include/" "" _path ${_hdr})
1235 get_filename_component(_path ${_path} PATH)
1236 install(FILES ${_hdr}
1237 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1238 )
1239endforeach()
1240
1241
1242install(TARGETS grpc++_reflection EXPORT gRPCTargets
1243 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1244 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1245 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1246)
1247
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001248
1249add_library(grpc++_unsecure
1250 src/cpp/common/insecure_create_auth_context.cc
1251 src/cpp/client/channel.cc
1252 src/cpp/client/client_context.cc
1253 src/cpp/client/create_channel.cc
1254 src/cpp/client/create_channel_internal.cc
1255 src/cpp/client/create_channel_posix.cc
1256 src/cpp/client/credentials.cc
1257 src/cpp/client/generic_stub.cc
1258 src/cpp/client/insecure_credentials.cc
1259 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001260 src/cpp/common/channel_filter.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001261 src/cpp/common/completion_queue.cc
1262 src/cpp/common/core_codegen.cc
1263 src/cpp/common/rpc_method.cc
1264 src/cpp/server/async_generic_service.cc
1265 src/cpp/server/create_default_thread_pool.cc
1266 src/cpp/server/dynamic_thread_pool.cc
1267 src/cpp/server/insecure_server_credentials.cc
1268 src/cpp/server/server.cc
1269 src/cpp/server/server_builder.cc
1270 src/cpp/server/server_context.cc
1271 src/cpp/server/server_credentials.cc
1272 src/cpp/server/server_posix.cc
1273 src/cpp/util/byte_buffer.cc
1274 src/cpp/util/slice.cc
1275 src/cpp/util/status.cc
1276 src/cpp/util/string_ref.cc
1277 src/cpp/util/time.cc
1278 src/cpp/codegen/codegen_init.cc
1279)
1280
1281target_include_directories(grpc++_unsecure
1282 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1283 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1284 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1285 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001286 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001287 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1288)
1289
1290target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001291 ${_gRPC_BASELIB_LIBRARIES}
1292 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001293 gpr
1294 grpc_unsecure
Yuchen Zengf0ec5b62016-07-08 13:40:40 -07001295 grpc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001296)
1297
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001298foreach(_hdr
1299 include/grpc++/alarm.h
1300 include/grpc++/channel.h
1301 include/grpc++/client_context.h
1302 include/grpc++/completion_queue.h
1303 include/grpc++/create_channel.h
1304 include/grpc++/create_channel_posix.h
1305 include/grpc++/generic/async_generic_service.h
1306 include/grpc++/generic/generic_stub.h
1307 include/grpc++/grpc++.h
1308 include/grpc++/impl/call.h
1309 include/grpc++/impl/client_unary_call.h
1310 include/grpc++/impl/codegen/core_codegen.h
1311 include/grpc++/impl/grpc_library.h
1312 include/grpc++/impl/method_handler_impl.h
1313 include/grpc++/impl/rpc_method.h
1314 include/grpc++/impl/rpc_service_method.h
1315 include/grpc++/impl/serialization_traits.h
1316 include/grpc++/impl/server_builder_option.h
1317 include/grpc++/impl/server_builder_plugin.h
1318 include/grpc++/impl/server_initializer.h
1319 include/grpc++/impl/service_type.h
1320 include/grpc++/impl/sync.h
1321 include/grpc++/impl/sync_cxx11.h
1322 include/grpc++/impl/sync_no_cxx11.h
1323 include/grpc++/impl/thd.h
1324 include/grpc++/impl/thd_cxx11.h
1325 include/grpc++/impl/thd_no_cxx11.h
1326 include/grpc++/security/auth_context.h
1327 include/grpc++/security/auth_metadata_processor.h
1328 include/grpc++/security/credentials.h
1329 include/grpc++/security/server_credentials.h
1330 include/grpc++/server.h
1331 include/grpc++/server_builder.h
1332 include/grpc++/server_context.h
1333 include/grpc++/server_posix.h
1334 include/grpc++/support/async_stream.h
1335 include/grpc++/support/async_unary_call.h
1336 include/grpc++/support/byte_buffer.h
1337 include/grpc++/support/channel_arguments.h
1338 include/grpc++/support/config.h
1339 include/grpc++/support/slice.h
1340 include/grpc++/support/status.h
1341 include/grpc++/support/status_code_enum.h
1342 include/grpc++/support/string_ref.h
1343 include/grpc++/support/stub_options.h
1344 include/grpc++/support/sync_stream.h
1345 include/grpc++/support/time.h
1346 include/grpc++/impl/codegen/async_stream.h
1347 include/grpc++/impl/codegen/async_unary_call.h
1348 include/grpc++/impl/codegen/call.h
1349 include/grpc++/impl/codegen/call_hook.h
1350 include/grpc++/impl/codegen/channel_interface.h
1351 include/grpc++/impl/codegen/client_context.h
1352 include/grpc++/impl/codegen/client_unary_call.h
1353 include/grpc++/impl/codegen/completion_queue.h
1354 include/grpc++/impl/codegen/completion_queue_tag.h
1355 include/grpc++/impl/codegen/config.h
1356 include/grpc++/impl/codegen/core_codegen_interface.h
1357 include/grpc++/impl/codegen/create_auth_context.h
1358 include/grpc++/impl/codegen/grpc_library.h
1359 include/grpc++/impl/codegen/method_handler_impl.h
1360 include/grpc++/impl/codegen/rpc_method.h
1361 include/grpc++/impl/codegen/rpc_service_method.h
1362 include/grpc++/impl/codegen/security/auth_context.h
1363 include/grpc++/impl/codegen/serialization_traits.h
1364 include/grpc++/impl/codegen/server_context.h
1365 include/grpc++/impl/codegen/server_interface.h
1366 include/grpc++/impl/codegen/service_type.h
1367 include/grpc++/impl/codegen/status.h
1368 include/grpc++/impl/codegen/status_code_enum.h
1369 include/grpc++/impl/codegen/string_ref.h
1370 include/grpc++/impl/codegen/stub_options.h
1371 include/grpc++/impl/codegen/sync.h
1372 include/grpc++/impl/codegen/sync_cxx11.h
1373 include/grpc++/impl/codegen/sync_no_cxx11.h
1374 include/grpc++/impl/codegen/sync_stream.h
1375 include/grpc++/impl/codegen/time.h
1376 include/grpc/impl/codegen/byte_buffer.h
1377 include/grpc/impl/codegen/byte_buffer_reader.h
1378 include/grpc/impl/codegen/compression_types.h
1379 include/grpc/impl/codegen/connectivity_state.h
1380 include/grpc/impl/codegen/grpc_types.h
1381 include/grpc/impl/codegen/propagation_bits.h
1382 include/grpc/impl/codegen/status.h
1383 include/grpc/impl/codegen/alloc.h
1384 include/grpc/impl/codegen/atm.h
1385 include/grpc/impl/codegen/atm_gcc_atomic.h
1386 include/grpc/impl/codegen/atm_gcc_sync.h
1387 include/grpc/impl/codegen/atm_windows.h
1388 include/grpc/impl/codegen/log.h
1389 include/grpc/impl/codegen/port_platform.h
1390 include/grpc/impl/codegen/slice.h
1391 include/grpc/impl/codegen/slice_buffer.h
1392 include/grpc/impl/codegen/sync.h
1393 include/grpc/impl/codegen/sync_generic.h
1394 include/grpc/impl/codegen/sync_posix.h
1395 include/grpc/impl/codegen/sync_windows.h
1396 include/grpc/impl/codegen/time.h
1397)
1398 string(REPLACE "include/" "" _path ${_hdr})
1399 get_filename_component(_path ${_path} PATH)
1400 install(FILES ${_hdr}
1401 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1402 )
1403endforeach()
1404
1405
1406install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1407 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1408 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1409 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1410)
1411
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001412
1413add_library(grpc_plugin_support
1414 src/compiler/cpp_generator.cc
1415 src/compiler/csharp_generator.cc
1416 src/compiler/node_generator.cc
1417 src/compiler/objective_c_generator.cc
1418 src/compiler/python_generator.cc
1419 src/compiler/ruby_generator.cc
1420)
1421
1422target_include_directories(grpc_plugin_support
1423 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1424 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1425 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1426 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001427 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001428 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1429)
1430
1431target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001432 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001433)
1434
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001435foreach(_hdr
1436 include/grpc++/impl/codegen/config_protobuf.h
1437)
1438 string(REPLACE "include/" "" _path ${_hdr})
1439 get_filename_component(_path ${_path} PATH)
1440 install(FILES ${_hdr}
1441 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1442 )
1443endforeach()
1444
1445
1446install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1447 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1448 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1449 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001450)
1451
1452
1453add_library(grpc_csharp_ext
1454 src/csharp/ext/grpc_csharp_ext.c
1455)
1456
1457target_include_directories(grpc_csharp_ext
1458 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1459 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1460 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1461 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001462 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001463 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1464)
1465
1466target_link_libraries(grpc_csharp_ext
1467 grpc
1468 gpr
1469)
1470
1471
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001472
1473install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1474 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1475 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1476 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1477)
1478
1479
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001480
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001481add_executable(gen_hpack_tables
1482 tools/codegen/core/gen_hpack_tables.c
1483)
1484
1485target_include_directories(gen_hpack_tables
1486 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1487 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1488 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1489 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1490 PRIVATE ${ZLIB_ROOT_DIR}
1491 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1492)
1493
1494target_link_libraries(gen_hpack_tables
1495 gpr
1496 grpc
1497)
1498
1499
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001500install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1501 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1502 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1503 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1504)
1505
1506
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001507add_executable(gen_legal_metadata_characters
1508 tools/codegen/core/gen_legal_metadata_characters.c
1509)
1510
1511target_include_directories(gen_legal_metadata_characters
1512 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1513 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1514 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1515 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1516 PRIVATE ${ZLIB_ROOT_DIR}
1517 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1518)
1519
1520
1521
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001522install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1523 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1524 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1525 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1526)
1527
1528
Craig Tiller1c7a8422016-08-18 11:13:11 -07001529add_executable(gen_percent_encoding_tables
1530 tools/codegen/core/gen_percent_encoding_tables.c
1531)
1532
1533target_include_directories(gen_percent_encoding_tables
1534 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1535 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1536 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1537 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1538 PRIVATE ${ZLIB_ROOT_DIR}
1539 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1540)
1541
1542
1543
1544install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1545 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1546 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1547 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1548)
1549
1550
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001551add_executable(grpc_create_jwt
1552 test/core/security/create_jwt.c
1553)
1554
1555target_include_directories(grpc_create_jwt
1556 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1557 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1558 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1559 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1560 PRIVATE ${ZLIB_ROOT_DIR}
1561 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1562)
1563
1564target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001565 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001566 grpc
1567 gpr
1568)
1569
1570
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001571install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1572 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1573 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1574 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1575)
1576
1577
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001578add_executable(grpc_print_google_default_creds_token
1579 test/core/security/print_google_default_creds_token.c
1580)
1581
1582target_include_directories(grpc_print_google_default_creds_token
1583 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1584 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1585 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1586 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1587 PRIVATE ${ZLIB_ROOT_DIR}
1588 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1589)
1590
1591target_link_libraries(grpc_print_google_default_creds_token
1592 grpc
1593 gpr
1594)
1595
1596
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001597install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1598 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1599 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1600 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1601)
1602
1603
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001604add_executable(grpc_verify_jwt
1605 test/core/security/verify_jwt.c
1606)
1607
1608target_include_directories(grpc_verify_jwt
1609 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1610 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1611 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1612 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1613 PRIVATE ${ZLIB_ROOT_DIR}
1614 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1615)
1616
1617target_link_libraries(grpc_verify_jwt
1618 grpc
1619 gpr
1620)
1621
1622
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001623install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1624 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1625 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1626 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1627)
1628
1629
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001630add_executable(grpc_cpp_plugin
1631 src/compiler/cpp_plugin.cc
1632)
1633
1634target_include_directories(grpc_cpp_plugin
1635 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1636 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1637 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1638 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1639 PRIVATE ${ZLIB_ROOT_DIR}
1640 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1641)
1642
1643target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001644 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001645 grpc_plugin_support
1646)
1647
1648
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001649install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1650 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1651 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1652 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1653)
1654
1655
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001656add_executable(grpc_csharp_plugin
1657 src/compiler/csharp_plugin.cc
1658)
1659
1660target_include_directories(grpc_csharp_plugin
1661 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1662 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1663 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1664 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1665 PRIVATE ${ZLIB_ROOT_DIR}
1666 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1667)
1668
1669target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001670 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001671 grpc_plugin_support
1672)
1673
1674
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001675install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1676 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1677 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1678 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1679)
1680
1681
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001682add_executable(grpc_node_plugin
1683 src/compiler/node_plugin.cc
1684)
1685
1686target_include_directories(grpc_node_plugin
1687 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1688 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1689 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1690 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1691 PRIVATE ${ZLIB_ROOT_DIR}
1692 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1693)
1694
1695target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001696 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001697 grpc_plugin_support
1698)
1699
1700
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001701install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1702 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1703 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1704 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1705)
1706
1707
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001708add_executable(grpc_objective_c_plugin
1709 src/compiler/objective_c_plugin.cc
1710)
1711
1712target_include_directories(grpc_objective_c_plugin
1713 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1714 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1715 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1716 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1717 PRIVATE ${ZLIB_ROOT_DIR}
1718 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1719)
1720
1721target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001722 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001723 grpc_plugin_support
1724)
1725
1726
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001727install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1728 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1729 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1730 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1731)
1732
1733
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001734add_executable(grpc_python_plugin
1735 src/compiler/python_plugin.cc
1736)
1737
1738target_include_directories(grpc_python_plugin
1739 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1740 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1741 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1742 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1743 PRIVATE ${ZLIB_ROOT_DIR}
1744 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1745)
1746
1747target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001748 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001749 grpc_plugin_support
1750)
1751
1752
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001753install(TARGETS grpc_python_plugin EXPORT gRPCTargets
1754 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1755 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1756 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1757)
1758
1759
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001760add_executable(grpc_ruby_plugin
1761 src/compiler/ruby_plugin.cc
1762)
1763
1764target_include_directories(grpc_ruby_plugin
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_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001774 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001775 grpc_plugin_support
1776)
1777
1778
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001779install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
1780 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1781 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1782 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1783)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001784
1785
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001786
1787
1788
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001789
1790
1791
1792install(EXPORT gRPCTargets
1793 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
1794 NAMESPACE gRPC::
1795)
1796
1797foreach(_config gRPCConfig gRPCConfigVersion)
1798 configure_file(tools/cmake/${_config}.cmake.in
1799 ${_config}.cmake @ONLY)
1800 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
1801 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
1802 )
1803endforeach()