blob: 9e6b5f6bee02ccfa959998b3a7be24677ec7fb81 [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)
Jan Tattermusch3aab96f2017-01-11 16:12:46 +010069 add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS)
70 # needed to compile boringssl
71 add_definitions(/wd4464 /wd4623 /wd4668 /wd4701 /wd4702 /wd4777 /wd5027)
72 # needed to compile protobuf
73 add_definitions(/wd4065 /wd4506)
74 # TODO(jtattermusch): revisit C4267 occurrences throughout the code
75 add_definitions(/wd4267)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030076endif()
77
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030078if (gRPC_USE_PROTO_LITE)
79 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010080 add_definitions("-DGRPC_USE_PROTO_LITE")
81else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030082 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010083endif()
84
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030085if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
86 if(NOT ZLIB_ROOT_DIR)
87 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
88 endif()
89 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
90 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
91 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
92 if(TARGET zlibstatic)
93 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
94 endif()
95 else()
96 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
97 endif()
98elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
99 find_package(ZLIB)
100 if(TARGET ZLIB::ZLIB)
101 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
102 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300103 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100104endif()
105
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300106if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
107 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
108 # Disable them unless they are explicitly requested from the cmake command line (when we assume
109 # gmock is downloaded to the right location inside protobuf).
110 if(NOT protobuf_BUILD_TESTS)
111 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
112 endif()
113 if(NOT PROTOBUF_ROOT_DIR)
114 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
115 endif()
116 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300117 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300118 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
119 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
120 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
121 endif()
122 if(TARGET libprotoc)
123 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
124 endif()
125 else()
126 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
127 endif()
128elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
129 find_package(protobuf CONFIG)
130 if(protobuf_FOUND)
131 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
132 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
133 endif()
134 if(TARGET protobuf::libprotoc)
135 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
136 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300137 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300138 else()
139 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300140 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300141 endif()
142endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100143
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300144if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
145 if(NOT BORINGSSL_ROOT_DIR)
146 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
147 endif()
148 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
149 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
150 if(TARGET ssl)
151 set(_gRPC_SSL_LIBRARIES ssl)
152 endif()
153 else()
154 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
155 endif()
156elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
157 find_package(OpenSSL)
158 if(TARGET OpenSSL::SSL)
159 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
160 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300161 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300162endif()
163
164if(NOT MSVC)
165 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
166 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
167endif()
168
169if(WIN32 AND MSVC)
170 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100171endif()
172
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300173include(GNUInstallDirs)
174if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
175 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
176endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100177
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200178
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100179add_library(gpr
180 src/core/lib/profiling/basic_timers.c
181 src/core/lib/profiling/stap_timers.c
182 src/core/lib/support/alloc.c
183 src/core/lib/support/avl.c
184 src/core/lib/support/backoff.c
185 src/core/lib/support/cmdline.c
186 src/core/lib/support/cpu_iphone.c
187 src/core/lib/support/cpu_linux.c
188 src/core/lib/support/cpu_posix.c
189 src/core/lib/support/cpu_windows.c
190 src/core/lib/support/env_linux.c
191 src/core/lib/support/env_posix.c
192 src/core/lib/support/env_windows.c
193 src/core/lib/support/histogram.c
194 src/core/lib/support/host_port.c
195 src/core/lib/support/log.c
196 src/core/lib/support/log_android.c
197 src/core/lib/support/log_linux.c
198 src/core/lib/support/log_posix.c
199 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700200 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100201 src/core/lib/support/murmur_hash.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100202 src/core/lib/support/stack_lockfree.c
203 src/core/lib/support/string.c
204 src/core/lib/support/string_posix.c
205 src/core/lib/support/string_util_windows.c
206 src/core/lib/support/string_windows.c
207 src/core/lib/support/subprocess_posix.c
208 src/core/lib/support/subprocess_windows.c
209 src/core/lib/support/sync.c
210 src/core/lib/support/sync_posix.c
211 src/core/lib/support/sync_windows.c
212 src/core/lib/support/thd.c
213 src/core/lib/support/thd_posix.c
214 src/core/lib/support/thd_windows.c
215 src/core/lib/support/time.c
216 src/core/lib/support/time_posix.c
217 src/core/lib/support/time_precise.c
218 src/core/lib/support/time_windows.c
219 src/core/lib/support/tls_pthread.c
220 src/core/lib/support/tmpfile_msys.c
221 src/core/lib/support/tmpfile_posix.c
222 src/core/lib/support/tmpfile_windows.c
223 src/core/lib/support/wrap_memcpy.c
224)
225
226target_include_directories(gpr
227 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
228 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
229 PRIVATE ${BORINGSSL_ROOT_DIR}/include
230 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300231 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100232 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
233)
234
235
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300236foreach(_hdr
237 include/grpc/support/alloc.h
238 include/grpc/support/atm.h
239 include/grpc/support/atm_gcc_atomic.h
240 include/grpc/support/atm_gcc_sync.h
241 include/grpc/support/atm_windows.h
242 include/grpc/support/avl.h
243 include/grpc/support/cmdline.h
244 include/grpc/support/cpu.h
245 include/grpc/support/histogram.h
246 include/grpc/support/host_port.h
247 include/grpc/support/log.h
248 include/grpc/support/log_windows.h
249 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300250 include/grpc/support/string_util.h
251 include/grpc/support/subprocess.h
252 include/grpc/support/sync.h
253 include/grpc/support/sync_generic.h
254 include/grpc/support/sync_posix.h
255 include/grpc/support/sync_windows.h
256 include/grpc/support/thd.h
257 include/grpc/support/time.h
258 include/grpc/support/tls.h
259 include/grpc/support/tls_gcc.h
260 include/grpc/support/tls_msvc.h
261 include/grpc/support/tls_pthread.h
262 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300263 include/grpc/impl/codegen/atm.h
264 include/grpc/impl/codegen/atm_gcc_atomic.h
265 include/grpc/impl/codegen/atm_gcc_sync.h
266 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700267 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300268 include/grpc/impl/codegen/port_platform.h
269 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300270 include/grpc/impl/codegen/sync.h
271 include/grpc/impl/codegen/sync_generic.h
272 include/grpc/impl/codegen/sync_posix.h
273 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300274)
275 string(REPLACE "include/" "" _path ${_hdr})
276 get_filename_component(_path ${_path} PATH)
277 install(FILES ${_hdr}
278 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
279 )
280endforeach()
281
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200282
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300283if (gRPC_INSTALL)
284 install(TARGETS gpr EXPORT gRPCTargets
285 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
286 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
287 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
288 )
289endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300290
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200291
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100292add_library(grpc
293 src/core/lib/surface/init.c
294 src/core/lib/channel/channel_args.c
295 src/core/lib/channel/channel_stack.c
296 src/core/lib/channel/channel_stack_builder.c
297 src/core/lib/channel/compress_filter.c
298 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700299 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700300 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800301 src/core/lib/channel/handshaker_factory.c
302 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100303 src/core/lib/channel/http_client_filter.c
304 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700305 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100306 src/core/lib/compression/compression.c
307 src/core/lib/compression/message_compress.c
308 src/core/lib/debug/trace.c
309 src/core/lib/http/format_request.c
310 src/core/lib/http/httpcli.c
311 src/core/lib/http/parser.c
312 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700313 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100314 src/core/lib/iomgr/endpoint.c
315 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700316 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100317 src/core/lib/iomgr/endpoint_pair_windows.c
318 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200319 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100320 src/core/lib/iomgr/ev_poll_posix.c
321 src/core/lib/iomgr/ev_posix.c
322 src/core/lib/iomgr/exec_ctx.c
323 src/core/lib/iomgr/executor.c
324 src/core/lib/iomgr/iocp_windows.c
325 src/core/lib/iomgr/iomgr.c
326 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700327 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100328 src/core/lib/iomgr/iomgr_windows.c
329 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200330 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100331 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700332 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100333 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700334 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100335 src/core/lib/iomgr/pollset_windows.c
336 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700337 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100338 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700339 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100340 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700341 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100342 src/core/lib/iomgr/socket_utils_common_posix.c
343 src/core/lib/iomgr/socket_utils_linux.c
344 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700345 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700346 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100347 src/core/lib/iomgr/socket_windows.c
348 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700349 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100350 src/core/lib/iomgr/tcp_client_windows.c
351 src/core/lib/iomgr/tcp_posix.c
352 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700353 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100354 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700355 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100356 src/core/lib/iomgr/tcp_windows.c
357 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700358 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100359 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700360 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100361 src/core/lib/iomgr/udp_server.c
362 src/core/lib/iomgr/unix_sockets_posix.c
363 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700364 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100365 src/core/lib/iomgr/wakeup_fd_eventfd.c
366 src/core/lib/iomgr/wakeup_fd_nospecial.c
367 src/core/lib/iomgr/wakeup_fd_pipe.c
368 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700369 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100370 src/core/lib/iomgr/workqueue_windows.c
371 src/core/lib/json/json.c
372 src/core/lib/json/json_reader.c
373 src/core/lib/json/json_string.c
374 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700375 src/core/lib/slice/percent_encoding.c
376 src/core/lib/slice/slice.c
377 src/core/lib/slice/slice_buffer.c
378 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100379 src/core/lib/surface/alarm.c
380 src/core/lib/surface/api_trace.c
381 src/core/lib/surface/byte_buffer.c
382 src/core/lib/surface/byte_buffer_reader.c
383 src/core/lib/surface/call.c
384 src/core/lib/surface/call_details.c
385 src/core/lib/surface/call_log_batch.c
386 src/core/lib/surface/channel.c
387 src/core/lib/surface/channel_init.c
388 src/core/lib/surface/channel_ping.c
389 src/core/lib/surface/channel_stack_type.c
390 src/core/lib/surface/completion_queue.c
391 src/core/lib/surface/event_string.c
392 src/core/lib/surface/lame_client.c
393 src/core/lib/surface/metadata_array.c
394 src/core/lib/surface/server.c
395 src/core/lib/surface/validate_metadata.c
396 src/core/lib/surface/version.c
397 src/core/lib/transport/byte_stream.c
398 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700399 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100400 src/core/lib/transport/metadata.c
401 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700402 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700403 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100404 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400405 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100406 src/core/lib/transport/transport.c
407 src/core/lib/transport/transport_op_string.c
408 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
409 src/core/ext/transport/chttp2/transport/bin_decoder.c
410 src/core/ext/transport/chttp2/transport/bin_encoder.c
411 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
412 src/core/ext/transport/chttp2/transport/chttp2_transport.c
413 src/core/ext/transport/chttp2/transport/frame_data.c
414 src/core/ext/transport/chttp2/transport/frame_goaway.c
415 src/core/ext/transport/chttp2/transport/frame_ping.c
416 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
417 src/core/ext/transport/chttp2/transport/frame_settings.c
418 src/core/ext/transport/chttp2/transport/frame_window_update.c
419 src/core/ext/transport/chttp2/transport/hpack_encoder.c
420 src/core/ext/transport/chttp2/transport/hpack_parser.c
421 src/core/ext/transport/chttp2/transport/hpack_table.c
422 src/core/ext/transport/chttp2/transport/huffsyms.c
423 src/core/ext/transport/chttp2/transport/incoming_metadata.c
424 src/core/ext/transport/chttp2/transport/parsing.c
425 src/core/ext/transport/chttp2/transport/status_conversion.c
426 src/core/ext/transport/chttp2/transport/stream_lists.c
427 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100428 src/core/ext/transport/chttp2/transport/varint.c
429 src/core/ext/transport/chttp2/transport/writing.c
430 src/core/ext/transport/chttp2/alpn/alpn.c
431 src/core/lib/http/httpcli_security_connector.c
432 src/core/lib/security/context/security_context.c
433 src/core/lib/security/credentials/composite/composite_credentials.c
434 src/core/lib/security/credentials/credentials.c
435 src/core/lib/security/credentials/credentials_metadata.c
436 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700437 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100438 src/core/lib/security/credentials/google_default/google_default_credentials.c
439 src/core/lib/security/credentials/iam/iam_credentials.c
440 src/core/lib/security/credentials/jwt/json_token.c
441 src/core/lib/security/credentials/jwt/jwt_credentials.c
442 src/core/lib/security/credentials/jwt/jwt_verifier.c
443 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
444 src/core/lib/security/credentials/plugin/plugin_credentials.c
445 src/core/lib/security/credentials/ssl/ssl_credentials.c
446 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100447 src/core/lib/security/transport/secure_endpoint.c
448 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800449 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100450 src/core/lib/security/transport/server_auth_filter.c
451 src/core/lib/security/transport/tsi_error.c
452 src/core/lib/security/util/b64.c
453 src/core/lib/security/util/json_util.c
454 src/core/lib/surface/init_secure.c
455 src/core/lib/tsi/fake_transport_security.c
456 src/core/lib/tsi/ssl_transport_security.c
457 src/core/lib/tsi/transport_security.c
Mark D. Roth71403822016-12-02 10:51:39 -0800458 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100459 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700460 src/core/ext/client_channel/channel_connectivity.c
461 src/core/ext/client_channel/client_channel.c
462 src/core/ext/client_channel/client_channel_factory.c
463 src/core/ext/client_channel/client_channel_plugin.c
464 src/core/ext/client_channel/connector.c
465 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700466 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700467 src/core/ext/client_channel/initial_connect_string.c
468 src/core/ext/client_channel/lb_policy.c
469 src/core/ext/client_channel/lb_policy_factory.c
470 src/core/ext/client_channel/lb_policy_registry.c
471 src/core/ext/client_channel/parse_address.c
472 src/core/ext/client_channel/resolver.c
473 src/core/ext/client_channel/resolver_factory.c
474 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700475 src/core/ext/client_channel/subchannel.c
476 src/core/ext/client_channel/subchannel_index.c
477 src/core/ext/client_channel/uri_parser.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800478 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100479 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
480 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
481 src/core/ext/transport/chttp2/client/insecure/channel_create.c
482 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700483 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100484 src/core/ext/lb_policy/grpclb/load_balancer_api.c
485 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
486 third_party/nanopb/pb_common.c
487 third_party/nanopb/pb_decode.c
488 third_party/nanopb/pb_encode.c
489 src/core/ext/lb_policy/pick_first/pick_first.c
490 src/core/ext/lb_policy/round_robin/round_robin.c
491 src/core/ext/resolver/dns/native/dns_resolver.c
492 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
493 src/core/ext/load_reporting/load_reporting.c
494 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700495 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100496 src/core/ext/census/context.c
497 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700498 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100499 src/core/ext/census/grpc_context.c
500 src/core/ext/census/grpc_filter.c
501 src/core/ext/census/grpc_plugin.c
502 src/core/ext/census/initialize.c
503 src/core/ext/census/mlog.c
504 src/core/ext/census/operation.c
505 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700506 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700507 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100508 src/core/ext/census/tracing.c
509 src/core/plugin_registry/grpc_plugin_registry.c
510)
511
512target_include_directories(grpc
513 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
514 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
515 PRIVATE ${BORINGSSL_ROOT_DIR}/include
516 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300517 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100518 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
519)
520
521target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300522 ${_gRPC_BASELIB_LIBRARIES}
523 ${_gRPC_SSL_LIBRARIES}
524 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100525 gpr
526)
527
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300528foreach(_hdr
529 include/grpc/byte_buffer.h
530 include/grpc/byte_buffer_reader.h
531 include/grpc/compression.h
532 include/grpc/grpc.h
533 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200534 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700535 include/grpc/slice.h
536 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300537 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300538 include/grpc/impl/codegen/byte_buffer_reader.h
539 include/grpc/impl/codegen/compression_types.h
540 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -0800541 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300542 include/grpc/impl/codegen/grpc_types.h
543 include/grpc/impl/codegen/propagation_bits.h
544 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300545 include/grpc/impl/codegen/atm.h
546 include/grpc/impl/codegen/atm_gcc_atomic.h
547 include/grpc/impl/codegen/atm_gcc_sync.h
548 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700549 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300550 include/grpc/impl/codegen/port_platform.h
551 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300552 include/grpc/impl/codegen/sync.h
553 include/grpc/impl/codegen/sync_generic.h
554 include/grpc/impl/codegen/sync_posix.h
555 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300556 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300557 include/grpc/census.h
558)
559 string(REPLACE "include/" "" _path ${_hdr})
560 get_filename_component(_path ${_path} PATH)
561 install(FILES ${_hdr}
562 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
563 )
564endforeach()
565
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200566
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300567if (gRPC_INSTALL)
568 install(TARGETS grpc EXPORT gRPCTargets
569 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
570 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
571 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
572 )
573endif()
574
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200575
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100576add_library(grpc_cronet
577 src/core/lib/surface/init.c
578 src/core/lib/channel/channel_args.c
579 src/core/lib/channel/channel_stack.c
580 src/core/lib/channel/channel_stack_builder.c
581 src/core/lib/channel/compress_filter.c
582 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700583 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700584 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800585 src/core/lib/channel/handshaker_factory.c
586 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100587 src/core/lib/channel/http_client_filter.c
588 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700589 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100590 src/core/lib/compression/compression.c
591 src/core/lib/compression/message_compress.c
592 src/core/lib/debug/trace.c
593 src/core/lib/http/format_request.c
594 src/core/lib/http/httpcli.c
595 src/core/lib/http/parser.c
596 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700597 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100598 src/core/lib/iomgr/endpoint.c
599 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700600 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100601 src/core/lib/iomgr/endpoint_pair_windows.c
602 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200603 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100604 src/core/lib/iomgr/ev_poll_posix.c
605 src/core/lib/iomgr/ev_posix.c
606 src/core/lib/iomgr/exec_ctx.c
607 src/core/lib/iomgr/executor.c
608 src/core/lib/iomgr/iocp_windows.c
609 src/core/lib/iomgr/iomgr.c
610 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700611 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100612 src/core/lib/iomgr/iomgr_windows.c
613 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200614 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100615 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700616 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100617 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700618 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100619 src/core/lib/iomgr/pollset_windows.c
620 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700621 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100622 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700623 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100624 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700625 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100626 src/core/lib/iomgr/socket_utils_common_posix.c
627 src/core/lib/iomgr/socket_utils_linux.c
628 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700629 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700630 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100631 src/core/lib/iomgr/socket_windows.c
632 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700633 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100634 src/core/lib/iomgr/tcp_client_windows.c
635 src/core/lib/iomgr/tcp_posix.c
636 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700637 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100638 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700639 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100640 src/core/lib/iomgr/tcp_windows.c
641 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700642 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100643 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700644 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100645 src/core/lib/iomgr/udp_server.c
646 src/core/lib/iomgr/unix_sockets_posix.c
647 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700648 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100649 src/core/lib/iomgr/wakeup_fd_eventfd.c
650 src/core/lib/iomgr/wakeup_fd_nospecial.c
651 src/core/lib/iomgr/wakeup_fd_pipe.c
652 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700653 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100654 src/core/lib/iomgr/workqueue_windows.c
655 src/core/lib/json/json.c
656 src/core/lib/json/json_reader.c
657 src/core/lib/json/json_string.c
658 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700659 src/core/lib/slice/percent_encoding.c
660 src/core/lib/slice/slice.c
661 src/core/lib/slice/slice_buffer.c
662 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100663 src/core/lib/surface/alarm.c
664 src/core/lib/surface/api_trace.c
665 src/core/lib/surface/byte_buffer.c
666 src/core/lib/surface/byte_buffer_reader.c
667 src/core/lib/surface/call.c
668 src/core/lib/surface/call_details.c
669 src/core/lib/surface/call_log_batch.c
670 src/core/lib/surface/channel.c
671 src/core/lib/surface/channel_init.c
672 src/core/lib/surface/channel_ping.c
673 src/core/lib/surface/channel_stack_type.c
674 src/core/lib/surface/completion_queue.c
675 src/core/lib/surface/event_string.c
676 src/core/lib/surface/lame_client.c
677 src/core/lib/surface/metadata_array.c
678 src/core/lib/surface/server.c
679 src/core/lib/surface/validate_metadata.c
680 src/core/lib/surface/version.c
681 src/core/lib/transport/byte_stream.c
682 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700683 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100684 src/core/lib/transport/metadata.c
685 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700686 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700687 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100688 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400689 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100690 src/core/lib/transport/transport.c
691 src/core/lib/transport/transport_op_string.c
692 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
693 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
694 src/core/ext/transport/cronet/transport/cronet_transport.c
695 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
696 src/core/ext/transport/chttp2/transport/bin_decoder.c
697 src/core/ext/transport/chttp2/transport/bin_encoder.c
698 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
699 src/core/ext/transport/chttp2/transport/chttp2_transport.c
700 src/core/ext/transport/chttp2/transport/frame_data.c
701 src/core/ext/transport/chttp2/transport/frame_goaway.c
702 src/core/ext/transport/chttp2/transport/frame_ping.c
703 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
704 src/core/ext/transport/chttp2/transport/frame_settings.c
705 src/core/ext/transport/chttp2/transport/frame_window_update.c
706 src/core/ext/transport/chttp2/transport/hpack_encoder.c
707 src/core/ext/transport/chttp2/transport/hpack_parser.c
708 src/core/ext/transport/chttp2/transport/hpack_table.c
709 src/core/ext/transport/chttp2/transport/huffsyms.c
710 src/core/ext/transport/chttp2/transport/incoming_metadata.c
711 src/core/ext/transport/chttp2/transport/parsing.c
712 src/core/ext/transport/chttp2/transport/status_conversion.c
713 src/core/ext/transport/chttp2/transport/stream_lists.c
714 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100715 src/core/ext/transport/chttp2/transport/varint.c
716 src/core/ext/transport/chttp2/transport/writing.c
717 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700718 src/core/ext/client_channel/channel_connectivity.c
719 src/core/ext/client_channel/client_channel.c
720 src/core/ext/client_channel/client_channel_factory.c
721 src/core/ext/client_channel/client_channel_plugin.c
722 src/core/ext/client_channel/connector.c
723 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700724 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700725 src/core/ext/client_channel/initial_connect_string.c
726 src/core/ext/client_channel/lb_policy.c
727 src/core/ext/client_channel/lb_policy_factory.c
728 src/core/ext/client_channel/lb_policy_registry.c
729 src/core/ext/client_channel/parse_address.c
730 src/core/ext/client_channel/resolver.c
731 src/core/ext/client_channel/resolver_factory.c
732 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700733 src/core/ext/client_channel/subchannel.c
734 src/core/ext/client_channel/subchannel_index.c
735 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100736 src/core/lib/http/httpcli_security_connector.c
737 src/core/lib/security/context/security_context.c
738 src/core/lib/security/credentials/composite/composite_credentials.c
739 src/core/lib/security/credentials/credentials.c
740 src/core/lib/security/credentials/credentials_metadata.c
741 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700742 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100743 src/core/lib/security/credentials/google_default/google_default_credentials.c
744 src/core/lib/security/credentials/iam/iam_credentials.c
745 src/core/lib/security/credentials/jwt/json_token.c
746 src/core/lib/security/credentials/jwt/jwt_credentials.c
747 src/core/lib/security/credentials/jwt/jwt_verifier.c
748 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
749 src/core/lib/security/credentials/plugin/plugin_credentials.c
750 src/core/lib/security/credentials/ssl/ssl_credentials.c
751 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100752 src/core/lib/security/transport/secure_endpoint.c
753 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800754 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100755 src/core/lib/security/transport/server_auth_filter.c
756 src/core/lib/security/transport/tsi_error.c
757 src/core/lib/security/util/b64.c
758 src/core/lib/security/util/json_util.c
759 src/core/lib/surface/init_secure.c
760 src/core/lib/tsi/fake_transport_security.c
761 src/core/lib/tsi/ssl_transport_security.c
762 src/core/lib/tsi/transport_security.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800763 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100764 src/core/plugin_registry/grpc_cronet_plugin_registry.c
765)
766
767target_include_directories(grpc_cronet
768 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
769 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
770 PRIVATE ${BORINGSSL_ROOT_DIR}/include
771 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300772 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100773 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
774)
775
776target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300777 ${_gRPC_BASELIB_LIBRARIES}
778 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100779 gpr
780)
781
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300782foreach(_hdr
783 include/grpc/byte_buffer.h
784 include/grpc/byte_buffer_reader.h
785 include/grpc/compression.h
786 include/grpc/grpc.h
787 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200788 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700789 include/grpc/slice.h
790 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300791 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300792 include/grpc/impl/codegen/byte_buffer_reader.h
793 include/grpc/impl/codegen/compression_types.h
794 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -0800795 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300796 include/grpc/impl/codegen/grpc_types.h
797 include/grpc/impl/codegen/propagation_bits.h
798 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300799 include/grpc/impl/codegen/atm.h
800 include/grpc/impl/codegen/atm_gcc_atomic.h
801 include/grpc/impl/codegen/atm_gcc_sync.h
802 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700803 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300804 include/grpc/impl/codegen/port_platform.h
805 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300806 include/grpc/impl/codegen/sync.h
807 include/grpc/impl/codegen/sync_generic.h
808 include/grpc/impl/codegen/sync_posix.h
809 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300810 include/grpc/grpc_cronet.h
811 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300812)
813 string(REPLACE "include/" "" _path ${_hdr})
814 get_filename_component(_path ${_path} PATH)
815 install(FILES ${_hdr}
816 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
817 )
818endforeach()
819
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200820
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300821if (gRPC_INSTALL)
822 install(TARGETS grpc_cronet EXPORT gRPCTargets
823 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
824 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
825 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
826 )
827endif()
828
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200829
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100830add_library(grpc_unsecure
831 src/core/lib/surface/init.c
832 src/core/lib/surface/init_unsecure.c
833 src/core/lib/channel/channel_args.c
834 src/core/lib/channel/channel_stack.c
835 src/core/lib/channel/channel_stack_builder.c
836 src/core/lib/channel/compress_filter.c
837 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700838 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700839 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800840 src/core/lib/channel/handshaker_factory.c
841 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100842 src/core/lib/channel/http_client_filter.c
843 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700844 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100845 src/core/lib/compression/compression.c
846 src/core/lib/compression/message_compress.c
847 src/core/lib/debug/trace.c
848 src/core/lib/http/format_request.c
849 src/core/lib/http/httpcli.c
850 src/core/lib/http/parser.c
851 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700852 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100853 src/core/lib/iomgr/endpoint.c
854 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700855 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100856 src/core/lib/iomgr/endpoint_pair_windows.c
857 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200858 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100859 src/core/lib/iomgr/ev_poll_posix.c
860 src/core/lib/iomgr/ev_posix.c
861 src/core/lib/iomgr/exec_ctx.c
862 src/core/lib/iomgr/executor.c
863 src/core/lib/iomgr/iocp_windows.c
864 src/core/lib/iomgr/iomgr.c
865 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700866 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100867 src/core/lib/iomgr/iomgr_windows.c
868 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200869 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100870 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700871 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100872 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700873 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100874 src/core/lib/iomgr/pollset_windows.c
875 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700876 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100877 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700878 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100879 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700880 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100881 src/core/lib/iomgr/socket_utils_common_posix.c
882 src/core/lib/iomgr/socket_utils_linux.c
883 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700884 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700885 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100886 src/core/lib/iomgr/socket_windows.c
887 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700888 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100889 src/core/lib/iomgr/tcp_client_windows.c
890 src/core/lib/iomgr/tcp_posix.c
891 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700892 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100893 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700894 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100895 src/core/lib/iomgr/tcp_windows.c
896 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700897 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100898 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700899 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100900 src/core/lib/iomgr/udp_server.c
901 src/core/lib/iomgr/unix_sockets_posix.c
902 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700903 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100904 src/core/lib/iomgr/wakeup_fd_eventfd.c
905 src/core/lib/iomgr/wakeup_fd_nospecial.c
906 src/core/lib/iomgr/wakeup_fd_pipe.c
907 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700908 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100909 src/core/lib/iomgr/workqueue_windows.c
910 src/core/lib/json/json.c
911 src/core/lib/json/json_reader.c
912 src/core/lib/json/json_string.c
913 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700914 src/core/lib/slice/percent_encoding.c
915 src/core/lib/slice/slice.c
916 src/core/lib/slice/slice_buffer.c
917 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100918 src/core/lib/surface/alarm.c
919 src/core/lib/surface/api_trace.c
920 src/core/lib/surface/byte_buffer.c
921 src/core/lib/surface/byte_buffer_reader.c
922 src/core/lib/surface/call.c
923 src/core/lib/surface/call_details.c
924 src/core/lib/surface/call_log_batch.c
925 src/core/lib/surface/channel.c
926 src/core/lib/surface/channel_init.c
927 src/core/lib/surface/channel_ping.c
928 src/core/lib/surface/channel_stack_type.c
929 src/core/lib/surface/completion_queue.c
930 src/core/lib/surface/event_string.c
931 src/core/lib/surface/lame_client.c
932 src/core/lib/surface/metadata_array.c
933 src/core/lib/surface/server.c
934 src/core/lib/surface/validate_metadata.c
935 src/core/lib/surface/version.c
936 src/core/lib/transport/byte_stream.c
937 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700938 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100939 src/core/lib/transport/metadata.c
940 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700941 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700942 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100943 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400944 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100945 src/core/lib/transport/transport.c
946 src/core/lib/transport/transport_op_string.c
947 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
948 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
949 src/core/ext/transport/chttp2/transport/bin_decoder.c
950 src/core/ext/transport/chttp2/transport/bin_encoder.c
951 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
952 src/core/ext/transport/chttp2/transport/chttp2_transport.c
953 src/core/ext/transport/chttp2/transport/frame_data.c
954 src/core/ext/transport/chttp2/transport/frame_goaway.c
955 src/core/ext/transport/chttp2/transport/frame_ping.c
956 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
957 src/core/ext/transport/chttp2/transport/frame_settings.c
958 src/core/ext/transport/chttp2/transport/frame_window_update.c
959 src/core/ext/transport/chttp2/transport/hpack_encoder.c
960 src/core/ext/transport/chttp2/transport/hpack_parser.c
961 src/core/ext/transport/chttp2/transport/hpack_table.c
962 src/core/ext/transport/chttp2/transport/huffsyms.c
963 src/core/ext/transport/chttp2/transport/incoming_metadata.c
964 src/core/ext/transport/chttp2/transport/parsing.c
965 src/core/ext/transport/chttp2/transport/status_conversion.c
966 src/core/ext/transport/chttp2/transport/stream_lists.c
967 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100968 src/core/ext/transport/chttp2/transport/varint.c
969 src/core/ext/transport/chttp2/transport/writing.c
970 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth71403822016-12-02 10:51:39 -0800971 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100972 src/core/ext/transport/chttp2/client/insecure/channel_create.c
973 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -0800974 src/core/ext/transport/chttp2/client/chttp2_connector.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700975 src/core/ext/client_channel/channel_connectivity.c
976 src/core/ext/client_channel/client_channel.c
977 src/core/ext/client_channel/client_channel_factory.c
978 src/core/ext/client_channel/client_channel_plugin.c
979 src/core/ext/client_channel/connector.c
980 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700981 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700982 src/core/ext/client_channel/initial_connect_string.c
983 src/core/ext/client_channel/lb_policy.c
984 src/core/ext/client_channel/lb_policy_factory.c
985 src/core/ext/client_channel/lb_policy_registry.c
986 src/core/ext/client_channel/parse_address.c
987 src/core/ext/client_channel/resolver.c
988 src/core/ext/client_channel/resolver_factory.c
989 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700990 src/core/ext/client_channel/subchannel.c
991 src/core/ext/client_channel/subchannel_index.c
992 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100993 src/core/ext/resolver/dns/native/dns_resolver.c
994 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
995 src/core/ext/load_reporting/load_reporting.c
996 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700997 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100998 src/core/ext/lb_policy/grpclb/load_balancer_api.c
999 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
1000 third_party/nanopb/pb_common.c
1001 third_party/nanopb/pb_decode.c
1002 third_party/nanopb/pb_encode.c
1003 src/core/ext/lb_policy/pick_first/pick_first.c
1004 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001005 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001006 src/core/ext/census/context.c
1007 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001008 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001009 src/core/ext/census/grpc_context.c
1010 src/core/ext/census/grpc_filter.c
1011 src/core/ext/census/grpc_plugin.c
1012 src/core/ext/census/initialize.c
1013 src/core/ext/census/mlog.c
1014 src/core/ext/census/operation.c
1015 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001016 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001017 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001018 src/core/ext/census/tracing.c
1019 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
1020)
1021
1022target_include_directories(grpc_unsecure
1023 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1024 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1025 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1026 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001027 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001028 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1029)
1030
1031target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001032 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001033 gpr
1034)
1035
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001036foreach(_hdr
1037 include/grpc/byte_buffer.h
1038 include/grpc/byte_buffer_reader.h
1039 include/grpc/compression.h
1040 include/grpc/grpc.h
1041 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001042 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001043 include/grpc/slice.h
1044 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001045 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001046 include/grpc/impl/codegen/byte_buffer_reader.h
1047 include/grpc/impl/codegen/compression_types.h
1048 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001049 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001050 include/grpc/impl/codegen/grpc_types.h
1051 include/grpc/impl/codegen/propagation_bits.h
1052 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001053 include/grpc/impl/codegen/atm.h
1054 include/grpc/impl/codegen/atm_gcc_atomic.h
1055 include/grpc/impl/codegen/atm_gcc_sync.h
1056 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001057 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001058 include/grpc/impl/codegen/port_platform.h
1059 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001060 include/grpc/impl/codegen/sync.h
1061 include/grpc/impl/codegen/sync_generic.h
1062 include/grpc/impl/codegen/sync_posix.h
1063 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001064 include/grpc/census.h
1065)
1066 string(REPLACE "include/" "" _path ${_hdr})
1067 get_filename_component(_path ${_path} PATH)
1068 install(FILES ${_hdr}
1069 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1070 )
1071endforeach()
1072
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001073
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001074if (gRPC_INSTALL)
1075 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1076 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1077 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1078 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1079 )
1080endif()
1081
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001082
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001083add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001084 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001085 src/cpp/client/secure_credentials.cc
1086 src/cpp/common/auth_property_iterator.cc
1087 src/cpp/common/secure_auth_context.cc
1088 src/cpp/common/secure_channel_arguments.cc
1089 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001090 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001091 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001092 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001093 src/cpp/client/client_context.cc
1094 src/cpp/client/create_channel.cc
1095 src/cpp/client/create_channel_internal.cc
1096 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001097 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001098 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001099 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001100 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001101 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001102 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001103 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001104 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001105 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001106 src/cpp/server/async_generic_service.cc
1107 src/cpp/server/create_default_thread_pool.cc
1108 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001109 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001110 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001111 src/cpp/server/server_context.cc
1112 src/cpp/server/server_credentials.cc
1113 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001114 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001115 src/cpp/util/byte_buffer_cc.cc
1116 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001117 src/cpp/util/status.cc
1118 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001119 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001120 src/cpp/codegen/codegen_init.cc
1121)
1122
1123target_include_directories(grpc++
1124 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1125 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1126 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1127 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001128 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001129 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1130)
1131
1132target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001133 ${_gRPC_BASELIB_LIBRARIES}
1134 ${_gRPC_SSL_LIBRARIES}
1135 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001136 grpc
1137)
1138
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001139foreach(_hdr
1140 include/grpc++/alarm.h
1141 include/grpc++/channel.h
1142 include/grpc++/client_context.h
1143 include/grpc++/completion_queue.h
1144 include/grpc++/create_channel.h
1145 include/grpc++/create_channel_posix.h
1146 include/grpc++/generic/async_generic_service.h
1147 include/grpc++/generic/generic_stub.h
1148 include/grpc++/grpc++.h
1149 include/grpc++/impl/call.h
1150 include/grpc++/impl/client_unary_call.h
1151 include/grpc++/impl/codegen/core_codegen.h
1152 include/grpc++/impl/grpc_library.h
1153 include/grpc++/impl/method_handler_impl.h
1154 include/grpc++/impl/rpc_method.h
1155 include/grpc++/impl/rpc_service_method.h
1156 include/grpc++/impl/serialization_traits.h
1157 include/grpc++/impl/server_builder_option.h
1158 include/grpc++/impl/server_builder_plugin.h
1159 include/grpc++/impl/server_initializer.h
1160 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001161 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001162 include/grpc++/security/auth_context.h
1163 include/grpc++/security/auth_metadata_processor.h
1164 include/grpc++/security/credentials.h
1165 include/grpc++/security/server_credentials.h
1166 include/grpc++/server.h
1167 include/grpc++/server_builder.h
1168 include/grpc++/server_context.h
1169 include/grpc++/server_posix.h
1170 include/grpc++/support/async_stream.h
1171 include/grpc++/support/async_unary_call.h
1172 include/grpc++/support/byte_buffer.h
1173 include/grpc++/support/channel_arguments.h
1174 include/grpc++/support/config.h
1175 include/grpc++/support/slice.h
1176 include/grpc++/support/status.h
1177 include/grpc++/support/status_code_enum.h
1178 include/grpc++/support/string_ref.h
1179 include/grpc++/support/stub_options.h
1180 include/grpc++/support/sync_stream.h
1181 include/grpc++/support/time.h
1182 include/grpc++/impl/codegen/async_stream.h
1183 include/grpc++/impl/codegen/async_unary_call.h
1184 include/grpc++/impl/codegen/call.h
1185 include/grpc++/impl/codegen/call_hook.h
1186 include/grpc++/impl/codegen/channel_interface.h
1187 include/grpc++/impl/codegen/client_context.h
1188 include/grpc++/impl/codegen/client_unary_call.h
1189 include/grpc++/impl/codegen/completion_queue.h
1190 include/grpc++/impl/codegen/completion_queue_tag.h
1191 include/grpc++/impl/codegen/config.h
1192 include/grpc++/impl/codegen/core_codegen_interface.h
1193 include/grpc++/impl/codegen/create_auth_context.h
1194 include/grpc++/impl/codegen/grpc_library.h
1195 include/grpc++/impl/codegen/method_handler_impl.h
1196 include/grpc++/impl/codegen/rpc_method.h
1197 include/grpc++/impl/codegen/rpc_service_method.h
1198 include/grpc++/impl/codegen/security/auth_context.h
1199 include/grpc++/impl/codegen/serialization_traits.h
1200 include/grpc++/impl/codegen/server_context.h
1201 include/grpc++/impl/codegen/server_interface.h
1202 include/grpc++/impl/codegen/service_type.h
1203 include/grpc++/impl/codegen/status.h
1204 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001205 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001206 include/grpc++/impl/codegen/string_ref.h
1207 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001208 include/grpc++/impl/codegen/sync_stream.h
1209 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001210 include/grpc/impl/codegen/byte_buffer_reader.h
1211 include/grpc/impl/codegen/compression_types.h
1212 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001213 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001214 include/grpc/impl/codegen/grpc_types.h
1215 include/grpc/impl/codegen/propagation_bits.h
1216 include/grpc/impl/codegen/status.h
1217 include/grpc/impl/codegen/atm.h
1218 include/grpc/impl/codegen/atm_gcc_atomic.h
1219 include/grpc/impl/codegen/atm_gcc_sync.h
1220 include/grpc/impl/codegen/atm_windows.h
1221 include/grpc/impl/codegen/gpr_types.h
1222 include/grpc/impl/codegen/port_platform.h
1223 include/grpc/impl/codegen/slice.h
1224 include/grpc/impl/codegen/sync.h
1225 include/grpc/impl/codegen/sync_generic.h
1226 include/grpc/impl/codegen/sync_posix.h
1227 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001228)
1229 string(REPLACE "include/" "" _path ${_hdr})
1230 get_filename_component(_path ${_path} PATH)
1231 install(FILES ${_hdr}
1232 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1233 )
1234endforeach()
1235
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001236
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001237if (gRPC_INSTALL)
1238 install(TARGETS grpc++ EXPORT gRPCTargets
1239 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1240 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1241 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1242 )
1243endif()
1244
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001245
Garrett Casto931a26b2016-10-04 09:18:29 -07001246add_library(grpc++_cronet
1247 src/cpp/client/cronet_credentials.cc
1248 src/cpp/client/insecure_credentials.cc
1249 src/cpp/common/insecure_create_auth_context.cc
1250 src/cpp/server/insecure_server_credentials.cc
1251 src/cpp/client/channel_cc.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.cc
1257 src/cpp/client/generic_stub.cc
1258 src/cpp/common/channel_arguments.cc
1259 src/cpp/common/channel_filter.cc
1260 src/cpp/common/completion_queue_cc.cc
1261 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07001262 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001263 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001264 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001265 src/cpp/server/async_generic_service.cc
1266 src/cpp/server/create_default_thread_pool.cc
1267 src/cpp/server/dynamic_thread_pool.cc
1268 src/cpp/server/server_builder.cc
1269 src/cpp/server/server_cc.cc
1270 src/cpp/server/server_context.cc
1271 src/cpp/server/server_credentials.cc
1272 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07001273 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001274 src/cpp/util/byte_buffer_cc.cc
1275 src/cpp/util/slice_cc.cc
1276 src/cpp/util/status.cc
1277 src/cpp/util/string_ref.cc
1278 src/cpp/util/time_cc.cc
1279 src/cpp/codegen/codegen_init.cc
ncteisen3770ac92016-11-28 11:02:41 -08001280 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1281 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08001282 src/core/ext/transport/chttp2/client/chttp2_connector.c
ncteisen3770ac92016-11-28 11:02:41 -08001283 src/core/ext/transport/chttp2/transport/bin_decoder.c
1284 src/core/ext/transport/chttp2/transport/bin_encoder.c
1285 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1286 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1287 src/core/ext/transport/chttp2/transport/frame_data.c
1288 src/core/ext/transport/chttp2/transport/frame_goaway.c
1289 src/core/ext/transport/chttp2/transport/frame_ping.c
1290 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1291 src/core/ext/transport/chttp2/transport/frame_settings.c
1292 src/core/ext/transport/chttp2/transport/frame_window_update.c
1293 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1294 src/core/ext/transport/chttp2/transport/hpack_parser.c
1295 src/core/ext/transport/chttp2/transport/hpack_table.c
1296 src/core/ext/transport/chttp2/transport/huffsyms.c
1297 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1298 src/core/ext/transport/chttp2/transport/parsing.c
1299 src/core/ext/transport/chttp2/transport/status_conversion.c
1300 src/core/ext/transport/chttp2/transport/stream_lists.c
1301 src/core/ext/transport/chttp2/transport/stream_map.c
1302 src/core/ext/transport/chttp2/transport/varint.c
1303 src/core/ext/transport/chttp2/transport/writing.c
1304 src/core/lib/channel/channel_args.c
1305 src/core/lib/channel/channel_stack.c
1306 src/core/lib/channel/channel_stack_builder.c
1307 src/core/lib/channel/compress_filter.c
1308 src/core/lib/channel/connected_channel.c
1309 src/core/lib/channel/deadline_filter.c
1310 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001311 src/core/lib/channel/handshaker_factory.c
1312 src/core/lib/channel/handshaker_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08001313 src/core/lib/channel/http_client_filter.c
1314 src/core/lib/channel/http_server_filter.c
1315 src/core/lib/channel/message_size_filter.c
1316 src/core/lib/compression/compression.c
1317 src/core/lib/compression/message_compress.c
1318 src/core/lib/debug/trace.c
1319 src/core/lib/http/format_request.c
1320 src/core/lib/http/httpcli.c
1321 src/core/lib/http/parser.c
1322 src/core/lib/iomgr/closure.c
1323 src/core/lib/iomgr/combiner.c
1324 src/core/lib/iomgr/endpoint.c
1325 src/core/lib/iomgr/endpoint_pair_posix.c
1326 src/core/lib/iomgr/endpoint_pair_uv.c
1327 src/core/lib/iomgr/endpoint_pair_windows.c
1328 src/core/lib/iomgr/error.c
1329 src/core/lib/iomgr/ev_epoll_linux.c
1330 src/core/lib/iomgr/ev_poll_posix.c
1331 src/core/lib/iomgr/ev_posix.c
1332 src/core/lib/iomgr/exec_ctx.c
1333 src/core/lib/iomgr/executor.c
1334 src/core/lib/iomgr/iocp_windows.c
1335 src/core/lib/iomgr/iomgr.c
1336 src/core/lib/iomgr/iomgr_posix.c
1337 src/core/lib/iomgr/iomgr_uv.c
1338 src/core/lib/iomgr/iomgr_windows.c
1339 src/core/lib/iomgr/load_file.c
1340 src/core/lib/iomgr/network_status_tracker.c
1341 src/core/lib/iomgr/polling_entity.c
1342 src/core/lib/iomgr/pollset_set_uv.c
1343 src/core/lib/iomgr/pollset_set_windows.c
1344 src/core/lib/iomgr/pollset_uv.c
1345 src/core/lib/iomgr/pollset_windows.c
1346 src/core/lib/iomgr/resolve_address_posix.c
1347 src/core/lib/iomgr/resolve_address_uv.c
1348 src/core/lib/iomgr/resolve_address_windows.c
1349 src/core/lib/iomgr/resource_quota.c
1350 src/core/lib/iomgr/sockaddr_utils.c
1351 src/core/lib/iomgr/socket_mutator.c
1352 src/core/lib/iomgr/socket_utils_common_posix.c
1353 src/core/lib/iomgr/socket_utils_linux.c
1354 src/core/lib/iomgr/socket_utils_posix.c
1355 src/core/lib/iomgr/socket_utils_uv.c
1356 src/core/lib/iomgr/socket_utils_windows.c
1357 src/core/lib/iomgr/socket_windows.c
1358 src/core/lib/iomgr/tcp_client_posix.c
1359 src/core/lib/iomgr/tcp_client_uv.c
1360 src/core/lib/iomgr/tcp_client_windows.c
1361 src/core/lib/iomgr/tcp_posix.c
1362 src/core/lib/iomgr/tcp_server_posix.c
1363 src/core/lib/iomgr/tcp_server_uv.c
1364 src/core/lib/iomgr/tcp_server_windows.c
1365 src/core/lib/iomgr/tcp_uv.c
1366 src/core/lib/iomgr/tcp_windows.c
1367 src/core/lib/iomgr/time_averaged_stats.c
1368 src/core/lib/iomgr/timer_generic.c
1369 src/core/lib/iomgr/timer_heap.c
1370 src/core/lib/iomgr/timer_uv.c
1371 src/core/lib/iomgr/udp_server.c
1372 src/core/lib/iomgr/unix_sockets_posix.c
1373 src/core/lib/iomgr/unix_sockets_posix_noop.c
1374 src/core/lib/iomgr/wakeup_fd_cv.c
1375 src/core/lib/iomgr/wakeup_fd_eventfd.c
1376 src/core/lib/iomgr/wakeup_fd_nospecial.c
1377 src/core/lib/iomgr/wakeup_fd_pipe.c
1378 src/core/lib/iomgr/wakeup_fd_posix.c
1379 src/core/lib/iomgr/workqueue_uv.c
1380 src/core/lib/iomgr/workqueue_windows.c
1381 src/core/lib/json/json.c
1382 src/core/lib/json/json_reader.c
1383 src/core/lib/json/json_string.c
1384 src/core/lib/json/json_writer.c
1385 src/core/lib/slice/percent_encoding.c
1386 src/core/lib/slice/slice.c
1387 src/core/lib/slice/slice_buffer.c
1388 src/core/lib/slice/slice_string_helpers.c
1389 src/core/lib/surface/alarm.c
1390 src/core/lib/surface/api_trace.c
1391 src/core/lib/surface/byte_buffer.c
1392 src/core/lib/surface/byte_buffer_reader.c
1393 src/core/lib/surface/call.c
1394 src/core/lib/surface/call_details.c
1395 src/core/lib/surface/call_log_batch.c
1396 src/core/lib/surface/channel.c
1397 src/core/lib/surface/channel_init.c
1398 src/core/lib/surface/channel_ping.c
1399 src/core/lib/surface/channel_stack_type.c
1400 src/core/lib/surface/completion_queue.c
1401 src/core/lib/surface/event_string.c
1402 src/core/lib/surface/lame_client.c
1403 src/core/lib/surface/metadata_array.c
1404 src/core/lib/surface/server.c
1405 src/core/lib/surface/validate_metadata.c
1406 src/core/lib/surface/version.c
1407 src/core/lib/transport/byte_stream.c
1408 src/core/lib/transport/connectivity_state.c
1409 src/core/lib/transport/mdstr_hash_table.c
1410 src/core/lib/transport/metadata.c
1411 src/core/lib/transport/metadata_batch.c
1412 src/core/lib/transport/pid_controller.c
1413 src/core/lib/transport/service_config.c
1414 src/core/lib/transport/static_metadata.c
1415 src/core/lib/transport/timeout_encoding.c
1416 src/core/lib/transport/transport.c
1417 src/core/lib/transport/transport_op_string.c
1418 src/core/ext/transport/chttp2/alpn/alpn.c
1419 src/core/ext/client_channel/channel_connectivity.c
1420 src/core/ext/client_channel/client_channel.c
1421 src/core/ext/client_channel/client_channel_factory.c
1422 src/core/ext/client_channel/client_channel_plugin.c
1423 src/core/ext/client_channel/connector.c
1424 src/core/ext/client_channel/default_initial_connect_string.c
1425 src/core/ext/client_channel/http_connect_handshaker.c
1426 src/core/ext/client_channel/initial_connect_string.c
1427 src/core/ext/client_channel/lb_policy.c
1428 src/core/ext/client_channel/lb_policy_factory.c
1429 src/core/ext/client_channel/lb_policy_registry.c
1430 src/core/ext/client_channel/parse_address.c
1431 src/core/ext/client_channel/resolver.c
1432 src/core/ext/client_channel/resolver_factory.c
1433 src/core/ext/client_channel/resolver_registry.c
1434 src/core/ext/client_channel/subchannel.c
1435 src/core/ext/client_channel/subchannel_index.c
1436 src/core/ext/client_channel/uri_parser.c
1437 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1438 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08001439 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08001440 src/core/ext/census/base_resources.c
1441 src/core/ext/census/context.c
1442 src/core/ext/census/gen/census.pb.c
1443 src/core/ext/census/gen/trace_context.pb.c
1444 src/core/ext/census/grpc_context.c
1445 src/core/ext/census/grpc_filter.c
1446 src/core/ext/census/grpc_plugin.c
1447 src/core/ext/census/initialize.c
1448 src/core/ext/census/mlog.c
1449 src/core/ext/census/operation.c
1450 src/core/ext/census/placeholders.c
1451 src/core/ext/census/resource.c
1452 src/core/ext/census/trace_context.c
1453 src/core/ext/census/tracing.c
1454 third_party/nanopb/pb_common.c
1455 third_party/nanopb/pb_decode.c
1456 third_party/nanopb/pb_encode.c
Garrett Casto931a26b2016-10-04 09:18:29 -07001457)
1458
1459target_include_directories(grpc++_cronet
1460 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1461 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1462 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1463 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1464 PRIVATE ${ZLIB_INCLUDE_DIR}
1465 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1466)
1467
1468target_link_libraries(grpc++_cronet
1469 ${_gRPC_BASELIB_LIBRARIES}
1470 ${_gRPC_SSL_LIBRARIES}
1471 gpr
1472 grpc_cronet
1473)
1474
1475foreach(_hdr
1476 include/grpc++/alarm.h
1477 include/grpc++/channel.h
1478 include/grpc++/client_context.h
1479 include/grpc++/completion_queue.h
1480 include/grpc++/create_channel.h
1481 include/grpc++/create_channel_posix.h
1482 include/grpc++/generic/async_generic_service.h
1483 include/grpc++/generic/generic_stub.h
1484 include/grpc++/grpc++.h
1485 include/grpc++/impl/call.h
1486 include/grpc++/impl/client_unary_call.h
1487 include/grpc++/impl/codegen/core_codegen.h
1488 include/grpc++/impl/grpc_library.h
1489 include/grpc++/impl/method_handler_impl.h
1490 include/grpc++/impl/rpc_method.h
1491 include/grpc++/impl/rpc_service_method.h
1492 include/grpc++/impl/serialization_traits.h
1493 include/grpc++/impl/server_builder_option.h
1494 include/grpc++/impl/server_builder_plugin.h
1495 include/grpc++/impl/server_initializer.h
1496 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07001497 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001498 include/grpc++/security/auth_context.h
1499 include/grpc++/security/auth_metadata_processor.h
1500 include/grpc++/security/credentials.h
1501 include/grpc++/security/server_credentials.h
1502 include/grpc++/server.h
1503 include/grpc++/server_builder.h
1504 include/grpc++/server_context.h
1505 include/grpc++/server_posix.h
1506 include/grpc++/support/async_stream.h
1507 include/grpc++/support/async_unary_call.h
1508 include/grpc++/support/byte_buffer.h
1509 include/grpc++/support/channel_arguments.h
1510 include/grpc++/support/config.h
1511 include/grpc++/support/slice.h
1512 include/grpc++/support/status.h
1513 include/grpc++/support/status_code_enum.h
1514 include/grpc++/support/string_ref.h
1515 include/grpc++/support/stub_options.h
1516 include/grpc++/support/sync_stream.h
1517 include/grpc++/support/time.h
1518 include/grpc++/impl/codegen/async_stream.h
1519 include/grpc++/impl/codegen/async_unary_call.h
1520 include/grpc++/impl/codegen/call.h
1521 include/grpc++/impl/codegen/call_hook.h
1522 include/grpc++/impl/codegen/channel_interface.h
1523 include/grpc++/impl/codegen/client_context.h
1524 include/grpc++/impl/codegen/client_unary_call.h
1525 include/grpc++/impl/codegen/completion_queue.h
1526 include/grpc++/impl/codegen/completion_queue_tag.h
1527 include/grpc++/impl/codegen/config.h
1528 include/grpc++/impl/codegen/core_codegen_interface.h
1529 include/grpc++/impl/codegen/create_auth_context.h
1530 include/grpc++/impl/codegen/grpc_library.h
1531 include/grpc++/impl/codegen/method_handler_impl.h
1532 include/grpc++/impl/codegen/rpc_method.h
1533 include/grpc++/impl/codegen/rpc_service_method.h
1534 include/grpc++/impl/codegen/security/auth_context.h
1535 include/grpc++/impl/codegen/serialization_traits.h
1536 include/grpc++/impl/codegen/server_context.h
1537 include/grpc++/impl/codegen/server_interface.h
1538 include/grpc++/impl/codegen/service_type.h
1539 include/grpc++/impl/codegen/status.h
1540 include/grpc++/impl/codegen/status_code_enum.h
1541 include/grpc++/impl/codegen/status_helper.h
1542 include/grpc++/impl/codegen/string_ref.h
1543 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001544 include/grpc++/impl/codegen/sync_stream.h
1545 include/grpc++/impl/codegen/time.h
1546 include/grpc/impl/codegen/byte_buffer_reader.h
1547 include/grpc/impl/codegen/compression_types.h
1548 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001549 include/grpc/impl/codegen/exec_ctx_fwd.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001550 include/grpc/impl/codegen/grpc_types.h
1551 include/grpc/impl/codegen/propagation_bits.h
1552 include/grpc/impl/codegen/status.h
1553 include/grpc/impl/codegen/atm.h
1554 include/grpc/impl/codegen/atm_gcc_atomic.h
1555 include/grpc/impl/codegen/atm_gcc_sync.h
1556 include/grpc/impl/codegen/atm_windows.h
1557 include/grpc/impl/codegen/gpr_types.h
1558 include/grpc/impl/codegen/port_platform.h
1559 include/grpc/impl/codegen/slice.h
1560 include/grpc/impl/codegen/sync.h
1561 include/grpc/impl/codegen/sync_generic.h
1562 include/grpc/impl/codegen/sync_posix.h
1563 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08001564 include/grpc/byte_buffer.h
1565 include/grpc/byte_buffer_reader.h
1566 include/grpc/compression.h
1567 include/grpc/grpc.h
1568 include/grpc/grpc_posix.h
1569 include/grpc/grpc_security_constants.h
1570 include/grpc/slice.h
1571 include/grpc/slice_buffer.h
1572 include/grpc/status.h
1573 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001574)
1575 string(REPLACE "include/" "" _path ${_hdr})
1576 get_filename_component(_path ${_path} PATH)
1577 install(FILES ${_hdr}
1578 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1579 )
1580endforeach()
1581
1582
1583if (gRPC_INSTALL)
1584 install(TARGETS grpc++_cronet EXPORT gRPCTargets
1585 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1586 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1587 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1588 )
1589endif()
1590
1591
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001592add_library(grpc++_reflection
1593 src/cpp/ext/proto_server_reflection.cc
1594 src/cpp/ext/proto_server_reflection_plugin.cc
Yuchen Zeng169c9852016-10-14 15:58:09 -07001595 src/proto/grpc/reflection/v1alpha/reflection.proto
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001596)
1597
1598target_include_directories(grpc++_reflection
1599 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1600 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1601 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1602 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001603 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001604 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1605)
1606
1607target_link_libraries(grpc++_reflection
1608 grpc++
1609)
1610
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001611foreach(_hdr
1612 include/grpc++/ext/proto_server_reflection_plugin.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001613)
1614 string(REPLACE "include/" "" _path ${_hdr})
1615 get_filename_component(_path ${_path} PATH)
1616 install(FILES ${_hdr}
1617 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1618 )
1619endforeach()
1620
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001621
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001622if (gRPC_INSTALL)
1623 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1624 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1625 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1626 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1627 )
1628endif()
1629
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001630
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001631add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001632 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001633 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001634 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001635 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001636 src/cpp/client/client_context.cc
1637 src/cpp/client/create_channel.cc
1638 src/cpp/client/create_channel_internal.cc
1639 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001640 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001641 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001642 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001643 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001644 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001645 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001646 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001647 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001648 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001649 src/cpp/server/async_generic_service.cc
1650 src/cpp/server/create_default_thread_pool.cc
1651 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001652 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001653 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001654 src/cpp/server/server_context.cc
1655 src/cpp/server/server_credentials.cc
1656 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001657 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001658 src/cpp/util/byte_buffer_cc.cc
1659 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001660 src/cpp/util/status.cc
1661 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001662 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001663 src/cpp/codegen/codegen_init.cc
1664)
1665
1666target_include_directories(grpc++_unsecure
1667 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1668 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1669 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1670 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001671 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001672 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1673)
1674
1675target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001676 ${_gRPC_BASELIB_LIBRARIES}
1677 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001678 gpr
1679 grpc_unsecure
1680)
1681
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001682foreach(_hdr
1683 include/grpc++/alarm.h
1684 include/grpc++/channel.h
1685 include/grpc++/client_context.h
1686 include/grpc++/completion_queue.h
1687 include/grpc++/create_channel.h
1688 include/grpc++/create_channel_posix.h
1689 include/grpc++/generic/async_generic_service.h
1690 include/grpc++/generic/generic_stub.h
1691 include/grpc++/grpc++.h
1692 include/grpc++/impl/call.h
1693 include/grpc++/impl/client_unary_call.h
1694 include/grpc++/impl/codegen/core_codegen.h
1695 include/grpc++/impl/grpc_library.h
1696 include/grpc++/impl/method_handler_impl.h
1697 include/grpc++/impl/rpc_method.h
1698 include/grpc++/impl/rpc_service_method.h
1699 include/grpc++/impl/serialization_traits.h
1700 include/grpc++/impl/server_builder_option.h
1701 include/grpc++/impl/server_builder_plugin.h
1702 include/grpc++/impl/server_initializer.h
1703 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001704 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001705 include/grpc++/security/auth_context.h
1706 include/grpc++/security/auth_metadata_processor.h
1707 include/grpc++/security/credentials.h
1708 include/grpc++/security/server_credentials.h
1709 include/grpc++/server.h
1710 include/grpc++/server_builder.h
1711 include/grpc++/server_context.h
1712 include/grpc++/server_posix.h
1713 include/grpc++/support/async_stream.h
1714 include/grpc++/support/async_unary_call.h
1715 include/grpc++/support/byte_buffer.h
1716 include/grpc++/support/channel_arguments.h
1717 include/grpc++/support/config.h
1718 include/grpc++/support/slice.h
1719 include/grpc++/support/status.h
1720 include/grpc++/support/status_code_enum.h
1721 include/grpc++/support/string_ref.h
1722 include/grpc++/support/stub_options.h
1723 include/grpc++/support/sync_stream.h
1724 include/grpc++/support/time.h
1725 include/grpc++/impl/codegen/async_stream.h
1726 include/grpc++/impl/codegen/async_unary_call.h
1727 include/grpc++/impl/codegen/call.h
1728 include/grpc++/impl/codegen/call_hook.h
1729 include/grpc++/impl/codegen/channel_interface.h
1730 include/grpc++/impl/codegen/client_context.h
1731 include/grpc++/impl/codegen/client_unary_call.h
1732 include/grpc++/impl/codegen/completion_queue.h
1733 include/grpc++/impl/codegen/completion_queue_tag.h
1734 include/grpc++/impl/codegen/config.h
1735 include/grpc++/impl/codegen/core_codegen_interface.h
1736 include/grpc++/impl/codegen/create_auth_context.h
1737 include/grpc++/impl/codegen/grpc_library.h
1738 include/grpc++/impl/codegen/method_handler_impl.h
1739 include/grpc++/impl/codegen/rpc_method.h
1740 include/grpc++/impl/codegen/rpc_service_method.h
1741 include/grpc++/impl/codegen/security/auth_context.h
1742 include/grpc++/impl/codegen/serialization_traits.h
1743 include/grpc++/impl/codegen/server_context.h
1744 include/grpc++/impl/codegen/server_interface.h
1745 include/grpc++/impl/codegen/service_type.h
1746 include/grpc++/impl/codegen/status.h
1747 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001748 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001749 include/grpc++/impl/codegen/string_ref.h
1750 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001751 include/grpc++/impl/codegen/sync_stream.h
1752 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001753 include/grpc/impl/codegen/byte_buffer_reader.h
1754 include/grpc/impl/codegen/compression_types.h
1755 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001756 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001757 include/grpc/impl/codegen/grpc_types.h
1758 include/grpc/impl/codegen/propagation_bits.h
1759 include/grpc/impl/codegen/status.h
1760 include/grpc/impl/codegen/atm.h
1761 include/grpc/impl/codegen/atm_gcc_atomic.h
1762 include/grpc/impl/codegen/atm_gcc_sync.h
1763 include/grpc/impl/codegen/atm_windows.h
1764 include/grpc/impl/codegen/gpr_types.h
1765 include/grpc/impl/codegen/port_platform.h
1766 include/grpc/impl/codegen/slice.h
1767 include/grpc/impl/codegen/sync.h
1768 include/grpc/impl/codegen/sync_generic.h
1769 include/grpc/impl/codegen/sync_posix.h
1770 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001771)
1772 string(REPLACE "include/" "" _path ${_hdr})
1773 get_filename_component(_path ${_path} PATH)
1774 install(FILES ${_hdr}
1775 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1776 )
1777endforeach()
1778
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001779
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001780if (gRPC_INSTALL)
1781 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1782 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1783 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1784 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1785 )
1786endif()
1787
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001788
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001789add_library(grpc_plugin_support
1790 src/compiler/cpp_generator.cc
1791 src/compiler/csharp_generator.cc
1792 src/compiler/node_generator.cc
1793 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07001794 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001795 src/compiler/python_generator.cc
1796 src/compiler/ruby_generator.cc
1797)
1798
1799target_include_directories(grpc_plugin_support
1800 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1801 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1802 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1803 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001804 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001805 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1806)
1807
1808target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001809 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001810)
1811
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001812foreach(_hdr
1813 include/grpc++/impl/codegen/config_protobuf.h
1814)
1815 string(REPLACE "include/" "" _path ${_hdr})
1816 get_filename_component(_path ${_path} PATH)
1817 install(FILES ${_hdr}
1818 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1819 )
1820endforeach()
1821
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001822
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001823if (gRPC_INSTALL)
1824 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1825 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1826 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1827 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1828 )
1829endif()
1830
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001831
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001832add_library(grpc_csharp_ext
1833 src/csharp/ext/grpc_csharp_ext.c
1834)
1835
1836target_include_directories(grpc_csharp_ext
1837 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1838 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1839 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1840 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001841 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001842 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1843)
1844
1845target_link_libraries(grpc_csharp_ext
1846 grpc
1847 gpr
1848)
1849
1850
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001851
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001852if (gRPC_INSTALL)
1853 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1854 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1855 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1856 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1857 )
1858endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001859
1860
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001861
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001862add_executable(gen_hpack_tables
1863 tools/codegen/core/gen_hpack_tables.c
1864)
1865
1866target_include_directories(gen_hpack_tables
1867 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1868 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1869 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1870 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1871 PRIVATE ${ZLIB_ROOT_DIR}
1872 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1873)
1874
1875target_link_libraries(gen_hpack_tables
1876 gpr
1877 grpc
1878)
1879
1880
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001881if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001882 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1883 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1884 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1885 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1886 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001887endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001888
1889
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001890add_executable(gen_legal_metadata_characters
1891 tools/codegen/core/gen_legal_metadata_characters.c
1892)
1893
1894target_include_directories(gen_legal_metadata_characters
1895 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1896 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1897 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1898 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1899 PRIVATE ${ZLIB_ROOT_DIR}
1900 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1901)
1902
1903
1904
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001905if (gRPC_INSTALL)
1906 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1907 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1908 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1909 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1910 )
1911endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001912
1913
Craig Tiller1c7a8422016-08-18 11:13:11 -07001914add_executable(gen_percent_encoding_tables
1915 tools/codegen/core/gen_percent_encoding_tables.c
1916)
1917
1918target_include_directories(gen_percent_encoding_tables
1919 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1920 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1921 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1922 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1923 PRIVATE ${ZLIB_ROOT_DIR}
1924 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1925)
1926
1927
1928
Craig Tiller426dcde2016-09-07 15:43:10 -07001929if (gRPC_INSTALL)
1930 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1931 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1932 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1933 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1934 )
1935endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001936
1937
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001938add_executable(grpc_create_jwt
1939 test/core/security/create_jwt.c
1940)
1941
1942target_include_directories(grpc_create_jwt
1943 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1944 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1945 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1946 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1947 PRIVATE ${ZLIB_ROOT_DIR}
1948 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1949)
1950
1951target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001952 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001953 grpc
1954 gpr
1955)
1956
1957
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001958if (gRPC_INSTALL)
1959 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1960 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1961 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1962 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1963 )
1964endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001965
1966
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001967add_executable(grpc_print_google_default_creds_token
1968 test/core/security/print_google_default_creds_token.c
1969)
1970
1971target_include_directories(grpc_print_google_default_creds_token
1972 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1973 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1974 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1975 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1976 PRIVATE ${ZLIB_ROOT_DIR}
1977 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1978)
1979
1980target_link_libraries(grpc_print_google_default_creds_token
1981 grpc
1982 gpr
1983)
1984
1985
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001986if (gRPC_INSTALL)
1987 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1988 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1989 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1990 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1991 )
1992endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001993
1994
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001995add_executable(grpc_verify_jwt
1996 test/core/security/verify_jwt.c
1997)
1998
1999target_include_directories(grpc_verify_jwt
2000 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2001 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2002 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2003 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2004 PRIVATE ${ZLIB_ROOT_DIR}
2005 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2006)
2007
2008target_link_libraries(grpc_verify_jwt
2009 grpc
2010 gpr
2011)
2012
2013
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002014if (gRPC_INSTALL)
2015 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
2016 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2017 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2018 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2019 )
2020endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002021
2022
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002023add_executable(grpc_cpp_plugin
2024 src/compiler/cpp_plugin.cc
2025)
2026
2027target_include_directories(grpc_cpp_plugin
2028 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2029 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2030 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2031 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2032 PRIVATE ${ZLIB_ROOT_DIR}
2033 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2034)
2035
2036target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002037 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002038 grpc_plugin_support
2039)
2040
2041
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002042if (gRPC_INSTALL)
2043 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
2044 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2045 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2046 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2047 )
2048endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002049
2050
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002051add_executable(grpc_csharp_plugin
2052 src/compiler/csharp_plugin.cc
2053)
2054
2055target_include_directories(grpc_csharp_plugin
2056 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2057 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2058 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2059 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2060 PRIVATE ${ZLIB_ROOT_DIR}
2061 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2062)
2063
2064target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002065 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002066 grpc_plugin_support
2067)
2068
2069
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002070if (gRPC_INSTALL)
2071 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
2072 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2073 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2074 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2075 )
2076endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002077
2078
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002079add_executable(grpc_node_plugin
2080 src/compiler/node_plugin.cc
2081)
2082
2083target_include_directories(grpc_node_plugin
2084 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2085 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2086 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2087 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2088 PRIVATE ${ZLIB_ROOT_DIR}
2089 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2090)
2091
2092target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002093 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002094 grpc_plugin_support
2095)
2096
2097
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002098if (gRPC_INSTALL)
2099 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
2100 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2101 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2102 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2103 )
2104endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002105
2106
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002107add_executable(grpc_objective_c_plugin
2108 src/compiler/objective_c_plugin.cc
2109)
2110
2111target_include_directories(grpc_objective_c_plugin
2112 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2113 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2114 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2115 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2116 PRIVATE ${ZLIB_ROOT_DIR}
2117 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2118)
2119
2120target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002121 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002122 grpc_plugin_support
2123)
2124
2125
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002126if (gRPC_INSTALL)
2127 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
2128 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2129 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2130 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2131 )
2132endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002133
2134
Stanley Cheung857a1302016-09-29 17:26:29 -07002135add_executable(grpc_php_plugin
2136 src/compiler/php_plugin.cc
2137)
2138
2139target_include_directories(grpc_php_plugin
2140 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2141 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2142 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2143 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2144 PRIVATE ${ZLIB_ROOT_DIR}
2145 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2146)
2147
2148target_link_libraries(grpc_php_plugin
2149 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
2150 grpc_plugin_support
2151)
2152
2153
2154if (gRPC_INSTALL)
2155 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
2156 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2157 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2158 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2159 )
2160endif()
2161
2162
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002163add_executable(grpc_python_plugin
2164 src/compiler/python_plugin.cc
2165)
2166
2167target_include_directories(grpc_python_plugin
2168 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2169 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2170 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2171 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2172 PRIVATE ${ZLIB_ROOT_DIR}
2173 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2174)
2175
2176target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002177 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002178 grpc_plugin_support
2179)
2180
2181
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002182if (gRPC_INSTALL)
2183 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
2184 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2185 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2186 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2187 )
2188endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002189
2190
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002191add_executable(grpc_ruby_plugin
2192 src/compiler/ruby_plugin.cc
2193)
2194
2195target_include_directories(grpc_ruby_plugin
2196 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2197 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2198 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2199 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2200 PRIVATE ${ZLIB_ROOT_DIR}
2201 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2202)
2203
2204target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002205 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002206 grpc_plugin_support
2207)
2208
2209
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002210if (gRPC_INSTALL)
2211 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2212 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2213 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2214 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2215 )
2216endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002217
2218
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002219
2220
2221
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002222
2223
2224
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002225if (gRPC_INSTALL)
2226 install(EXPORT gRPCTargets
2227 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2228 NAMESPACE gRPC::
2229 )
2230endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002231
2232foreach(_config gRPCConfig gRPCConfigVersion)
2233 configure_file(tools/cmake/${_config}.cmake.in
2234 ${_config}.cmake @ONLY)
2235 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2236 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2237 )
2238endforeach()