blob: 16e5d62de2de5b62aac53505a7e117bd399cd576 [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, Google Inc.
12# All rights reserved.
13#
14# Redistribution and use in source and binary forms, with or without
15# modification, are permitted provided that the following conditions are
16# met:
17#
18# * Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# * Redistributions in binary form must reproduce the above
21# copyright notice, this list of conditions and the following disclaimer
22# in the documentation and/or other materials provided with the
23# distribution.
24# * Neither the name of Google Inc. nor the names of its
25# contributors may be used to endorse or promote products derived from
26# this software without specific prior written permission.
27#
28# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
Nicolas "Pixel" Noble49bfb922016-07-12 09:31:41 +020045set(PACKAGE_VERSION "1.1.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030051if (NOT MSVC)
52 set(gRPC_INSTALL ON CACHE BOOL "Generate installation target")
53else()
54 set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target")
55endif()
56
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030057set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
58set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010059
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
61set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010062
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030063set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
64set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010065
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010067
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030068if (MSVC)
69 add_definitions( -D_WIN32_WINNT=0x600 )
70endif()
71
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030072if (gRPC_USE_PROTO_LITE)
73 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010074 add_definitions("-DGRPC_USE_PROTO_LITE")
75else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030076 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010077endif()
78
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030079if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
80 if(NOT ZLIB_ROOT_DIR)
81 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
82 endif()
83 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
84 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
85 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
86 if(TARGET zlibstatic)
87 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
88 endif()
89 else()
90 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
91 endif()
92elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
93 find_package(ZLIB)
94 if(TARGET ZLIB::ZLIB)
95 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
96 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +030097 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010098endif()
99
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300100if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
101 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
102 # Disable them unless they are explicitly requested from the cmake command line (when we assume
103 # gmock is downloaded to the right location inside protobuf).
104 if(NOT protobuf_BUILD_TESTS)
105 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
106 endif()
107 if(NOT PROTOBUF_ROOT_DIR)
108 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
109 endif()
110 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300111 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300112 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
113 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
114 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
115 endif()
116 if(TARGET libprotoc)
117 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
118 endif()
119 else()
120 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
121 endif()
122elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
123 find_package(protobuf CONFIG)
124 if(protobuf_FOUND)
125 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
126 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
127 endif()
128 if(TARGET protobuf::libprotoc)
129 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
130 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300131 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300132 else()
133 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300134 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300135 endif()
136endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100137
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300138if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
139 if(NOT BORINGSSL_ROOT_DIR)
140 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
141 endif()
142 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
143 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
144 if(TARGET ssl)
145 set(_gRPC_SSL_LIBRARIES ssl)
146 endif()
147 else()
148 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
149 endif()
150elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
151 find_package(OpenSSL)
152 if(TARGET OpenSSL::SSL)
153 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
154 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300155 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300156endif()
157
158if(NOT MSVC)
159 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
160 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
161endif()
162
163if(WIN32 AND MSVC)
164 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100165endif()
166
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300167include(GNUInstallDirs)
168if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
169 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
170endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100171
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200172
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100173add_library(gpr
174 src/core/lib/profiling/basic_timers.c
175 src/core/lib/profiling/stap_timers.c
176 src/core/lib/support/alloc.c
177 src/core/lib/support/avl.c
178 src/core/lib/support/backoff.c
179 src/core/lib/support/cmdline.c
180 src/core/lib/support/cpu_iphone.c
181 src/core/lib/support/cpu_linux.c
182 src/core/lib/support/cpu_posix.c
183 src/core/lib/support/cpu_windows.c
184 src/core/lib/support/env_linux.c
185 src/core/lib/support/env_posix.c
186 src/core/lib/support/env_windows.c
187 src/core/lib/support/histogram.c
188 src/core/lib/support/host_port.c
189 src/core/lib/support/log.c
190 src/core/lib/support/log_android.c
191 src/core/lib/support/log_linux.c
192 src/core/lib/support/log_posix.c
193 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700194 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100195 src/core/lib/support/murmur_hash.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100196 src/core/lib/support/stack_lockfree.c
197 src/core/lib/support/string.c
198 src/core/lib/support/string_posix.c
199 src/core/lib/support/string_util_windows.c
200 src/core/lib/support/string_windows.c
201 src/core/lib/support/subprocess_posix.c
202 src/core/lib/support/subprocess_windows.c
203 src/core/lib/support/sync.c
204 src/core/lib/support/sync_posix.c
205 src/core/lib/support/sync_windows.c
206 src/core/lib/support/thd.c
207 src/core/lib/support/thd_posix.c
208 src/core/lib/support/thd_windows.c
209 src/core/lib/support/time.c
210 src/core/lib/support/time_posix.c
211 src/core/lib/support/time_precise.c
212 src/core/lib/support/time_windows.c
213 src/core/lib/support/tls_pthread.c
214 src/core/lib/support/tmpfile_msys.c
215 src/core/lib/support/tmpfile_posix.c
216 src/core/lib/support/tmpfile_windows.c
217 src/core/lib/support/wrap_memcpy.c
218)
219
220target_include_directories(gpr
221 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
222 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
223 PRIVATE ${BORINGSSL_ROOT_DIR}/include
224 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300225 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
227)
228
229
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300230foreach(_hdr
231 include/grpc/support/alloc.h
232 include/grpc/support/atm.h
233 include/grpc/support/atm_gcc_atomic.h
234 include/grpc/support/atm_gcc_sync.h
235 include/grpc/support/atm_windows.h
236 include/grpc/support/avl.h
237 include/grpc/support/cmdline.h
238 include/grpc/support/cpu.h
239 include/grpc/support/histogram.h
240 include/grpc/support/host_port.h
241 include/grpc/support/log.h
242 include/grpc/support/log_windows.h
243 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300244 include/grpc/support/string_util.h
245 include/grpc/support/subprocess.h
246 include/grpc/support/sync.h
247 include/grpc/support/sync_generic.h
248 include/grpc/support/sync_posix.h
249 include/grpc/support/sync_windows.h
250 include/grpc/support/thd.h
251 include/grpc/support/time.h
252 include/grpc/support/tls.h
253 include/grpc/support/tls_gcc.h
254 include/grpc/support/tls_msvc.h
255 include/grpc/support/tls_pthread.h
256 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300257 include/grpc/impl/codegen/atm.h
258 include/grpc/impl/codegen/atm_gcc_atomic.h
259 include/grpc/impl/codegen/atm_gcc_sync.h
260 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800261 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700262 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300263 include/grpc/impl/codegen/port_platform.h
264 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300265 include/grpc/impl/codegen/sync.h
266 include/grpc/impl/codegen/sync_generic.h
267 include/grpc/impl/codegen/sync_posix.h
268 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300269)
270 string(REPLACE "include/" "" _path ${_hdr})
271 get_filename_component(_path ${_path} PATH)
272 install(FILES ${_hdr}
273 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
274 )
275endforeach()
276
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200277
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300278if (gRPC_INSTALL)
279 install(TARGETS gpr EXPORT gRPCTargets
280 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
281 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
282 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
283 )
284endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300285
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200286
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100287add_library(grpc
288 src/core/lib/surface/init.c
289 src/core/lib/channel/channel_args.c
290 src/core/lib/channel/channel_stack.c
291 src/core/lib/channel/channel_stack_builder.c
292 src/core/lib/channel/compress_filter.c
293 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700294 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700295 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100296 src/core/lib/channel/http_client_filter.c
297 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700298 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100299 src/core/lib/compression/compression.c
300 src/core/lib/compression/message_compress.c
301 src/core/lib/debug/trace.c
302 src/core/lib/http/format_request.c
303 src/core/lib/http/httpcli.c
304 src/core/lib/http/parser.c
305 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700306 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100307 src/core/lib/iomgr/endpoint.c
308 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700309 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100310 src/core/lib/iomgr/endpoint_pair_windows.c
311 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200312 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100313 src/core/lib/iomgr/ev_poll_posix.c
314 src/core/lib/iomgr/ev_posix.c
315 src/core/lib/iomgr/exec_ctx.c
316 src/core/lib/iomgr/executor.c
317 src/core/lib/iomgr/iocp_windows.c
318 src/core/lib/iomgr/iomgr.c
319 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700320 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100321 src/core/lib/iomgr/iomgr_windows.c
322 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200323 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100324 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700325 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100326 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700327 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100328 src/core/lib/iomgr/pollset_windows.c
329 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700330 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100331 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700332 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100333 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700334 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100335 src/core/lib/iomgr/socket_utils_common_posix.c
336 src/core/lib/iomgr/socket_utils_linux.c
337 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700338 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700339 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100340 src/core/lib/iomgr/socket_windows.c
341 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700342 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100343 src/core/lib/iomgr/tcp_client_windows.c
344 src/core/lib/iomgr/tcp_posix.c
345 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700346 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100347 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700348 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100349 src/core/lib/iomgr/tcp_windows.c
350 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700351 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100352 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700353 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100354 src/core/lib/iomgr/udp_server.c
355 src/core/lib/iomgr/unix_sockets_posix.c
356 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700357 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100358 src/core/lib/iomgr/wakeup_fd_eventfd.c
359 src/core/lib/iomgr/wakeup_fd_nospecial.c
360 src/core/lib/iomgr/wakeup_fd_pipe.c
361 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700362 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100363 src/core/lib/iomgr/workqueue_windows.c
364 src/core/lib/json/json.c
365 src/core/lib/json/json_reader.c
366 src/core/lib/json/json_string.c
367 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700368 src/core/lib/slice/percent_encoding.c
369 src/core/lib/slice/slice.c
370 src/core/lib/slice/slice_buffer.c
371 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100372 src/core/lib/surface/alarm.c
373 src/core/lib/surface/api_trace.c
374 src/core/lib/surface/byte_buffer.c
375 src/core/lib/surface/byte_buffer_reader.c
376 src/core/lib/surface/call.c
377 src/core/lib/surface/call_details.c
378 src/core/lib/surface/call_log_batch.c
379 src/core/lib/surface/channel.c
380 src/core/lib/surface/channel_init.c
381 src/core/lib/surface/channel_ping.c
382 src/core/lib/surface/channel_stack_type.c
383 src/core/lib/surface/completion_queue.c
384 src/core/lib/surface/event_string.c
385 src/core/lib/surface/lame_client.c
386 src/core/lib/surface/metadata_array.c
387 src/core/lib/surface/server.c
388 src/core/lib/surface/validate_metadata.c
389 src/core/lib/surface/version.c
390 src/core/lib/transport/byte_stream.c
391 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700392 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100393 src/core/lib/transport/metadata.c
394 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700395 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700396 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100397 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400398 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100399 src/core/lib/transport/transport.c
400 src/core/lib/transport/transport_op_string.c
401 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
402 src/core/ext/transport/chttp2/transport/bin_decoder.c
403 src/core/ext/transport/chttp2/transport/bin_encoder.c
404 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
405 src/core/ext/transport/chttp2/transport/chttp2_transport.c
406 src/core/ext/transport/chttp2/transport/frame_data.c
407 src/core/ext/transport/chttp2/transport/frame_goaway.c
408 src/core/ext/transport/chttp2/transport/frame_ping.c
409 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
410 src/core/ext/transport/chttp2/transport/frame_settings.c
411 src/core/ext/transport/chttp2/transport/frame_window_update.c
412 src/core/ext/transport/chttp2/transport/hpack_encoder.c
413 src/core/ext/transport/chttp2/transport/hpack_parser.c
414 src/core/ext/transport/chttp2/transport/hpack_table.c
415 src/core/ext/transport/chttp2/transport/huffsyms.c
416 src/core/ext/transport/chttp2/transport/incoming_metadata.c
417 src/core/ext/transport/chttp2/transport/parsing.c
418 src/core/ext/transport/chttp2/transport/status_conversion.c
419 src/core/ext/transport/chttp2/transport/stream_lists.c
420 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100421 src/core/ext/transport/chttp2/transport/varint.c
422 src/core/ext/transport/chttp2/transport/writing.c
423 src/core/ext/transport/chttp2/alpn/alpn.c
424 src/core/lib/http/httpcli_security_connector.c
425 src/core/lib/security/context/security_context.c
426 src/core/lib/security/credentials/composite/composite_credentials.c
427 src/core/lib/security/credentials/credentials.c
428 src/core/lib/security/credentials/credentials_metadata.c
429 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700430 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100431 src/core/lib/security/credentials/google_default/google_default_credentials.c
432 src/core/lib/security/credentials/iam/iam_credentials.c
433 src/core/lib/security/credentials/jwt/json_token.c
434 src/core/lib/security/credentials/jwt/jwt_credentials.c
435 src/core/lib/security/credentials/jwt/jwt_verifier.c
436 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
437 src/core/lib/security/credentials/plugin/plugin_credentials.c
438 src/core/lib/security/credentials/ssl/ssl_credentials.c
439 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100440 src/core/lib/security/transport/secure_endpoint.c
441 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800442 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100443 src/core/lib/security/transport/server_auth_filter.c
444 src/core/lib/security/transport/tsi_error.c
445 src/core/lib/security/util/b64.c
446 src/core/lib/security/util/json_util.c
447 src/core/lib/surface/init_secure.c
448 src/core/lib/tsi/fake_transport_security.c
449 src/core/lib/tsi/ssl_transport_security.c
450 src/core/lib/tsi/transport_security.c
Mark D. Roth71403822016-12-02 10:51:39 -0800451 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100452 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700453 src/core/ext/client_channel/channel_connectivity.c
454 src/core/ext/client_channel/client_channel.c
455 src/core/ext/client_channel/client_channel_factory.c
456 src/core/ext/client_channel/client_channel_plugin.c
457 src/core/ext/client_channel/connector.c
458 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700459 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700460 src/core/ext/client_channel/initial_connect_string.c
461 src/core/ext/client_channel/lb_policy.c
462 src/core/ext/client_channel/lb_policy_factory.c
463 src/core/ext/client_channel/lb_policy_registry.c
464 src/core/ext/client_channel/parse_address.c
465 src/core/ext/client_channel/resolver.c
466 src/core/ext/client_channel/resolver_factory.c
467 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700468 src/core/ext/client_channel/subchannel.c
469 src/core/ext/client_channel/subchannel_index.c
470 src/core/ext/client_channel/uri_parser.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800471 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100472 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
473 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
474 src/core/ext/transport/chttp2/client/insecure/channel_create.c
475 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700476 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100477 src/core/ext/lb_policy/grpclb/load_balancer_api.c
478 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
479 third_party/nanopb/pb_common.c
480 third_party/nanopb/pb_decode.c
481 third_party/nanopb/pb_encode.c
482 src/core/ext/lb_policy/pick_first/pick_first.c
483 src/core/ext/lb_policy/round_robin/round_robin.c
484 src/core/ext/resolver/dns/native/dns_resolver.c
485 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
486 src/core/ext/load_reporting/load_reporting.c
487 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700488 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100489 src/core/ext/census/context.c
490 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700491 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100492 src/core/ext/census/grpc_context.c
493 src/core/ext/census/grpc_filter.c
494 src/core/ext/census/grpc_plugin.c
495 src/core/ext/census/initialize.c
496 src/core/ext/census/mlog.c
497 src/core/ext/census/operation.c
498 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700499 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700500 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100501 src/core/ext/census/tracing.c
502 src/core/plugin_registry/grpc_plugin_registry.c
503)
504
505target_include_directories(grpc
506 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
507 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
508 PRIVATE ${BORINGSSL_ROOT_DIR}/include
509 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300510 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100511 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
512)
513
514target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300515 ${_gRPC_BASELIB_LIBRARIES}
516 ${_gRPC_SSL_LIBRARIES}
517 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100518 gpr
519)
520
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300521foreach(_hdr
522 include/grpc/byte_buffer.h
523 include/grpc/byte_buffer_reader.h
524 include/grpc/compression.h
525 include/grpc/grpc.h
526 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200527 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700528 include/grpc/slice.h
529 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300530 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300531 include/grpc/impl/codegen/byte_buffer_reader.h
532 include/grpc/impl/codegen/compression_types.h
533 include/grpc/impl/codegen/connectivity_state.h
534 include/grpc/impl/codegen/grpc_types.h
535 include/grpc/impl/codegen/propagation_bits.h
536 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300537 include/grpc/impl/codegen/atm.h
538 include/grpc/impl/codegen/atm_gcc_atomic.h
539 include/grpc/impl/codegen/atm_gcc_sync.h
540 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800541 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700542 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300543 include/grpc/impl/codegen/port_platform.h
544 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300545 include/grpc/impl/codegen/sync.h
546 include/grpc/impl/codegen/sync_generic.h
547 include/grpc/impl/codegen/sync_posix.h
548 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300549 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300550 include/grpc/census.h
551)
552 string(REPLACE "include/" "" _path ${_hdr})
553 get_filename_component(_path ${_path} PATH)
554 install(FILES ${_hdr}
555 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
556 )
557endforeach()
558
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200559
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300560if (gRPC_INSTALL)
561 install(TARGETS grpc EXPORT gRPCTargets
562 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
563 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
564 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
565 )
566endif()
567
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200568
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100569add_library(grpc_cronet
570 src/core/lib/surface/init.c
571 src/core/lib/channel/channel_args.c
572 src/core/lib/channel/channel_stack.c
573 src/core/lib/channel/channel_stack_builder.c
574 src/core/lib/channel/compress_filter.c
575 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700576 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700577 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100578 src/core/lib/channel/http_client_filter.c
579 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700580 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100581 src/core/lib/compression/compression.c
582 src/core/lib/compression/message_compress.c
583 src/core/lib/debug/trace.c
584 src/core/lib/http/format_request.c
585 src/core/lib/http/httpcli.c
586 src/core/lib/http/parser.c
587 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700588 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100589 src/core/lib/iomgr/endpoint.c
590 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700591 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100592 src/core/lib/iomgr/endpoint_pair_windows.c
593 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200594 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100595 src/core/lib/iomgr/ev_poll_posix.c
596 src/core/lib/iomgr/ev_posix.c
597 src/core/lib/iomgr/exec_ctx.c
598 src/core/lib/iomgr/executor.c
599 src/core/lib/iomgr/iocp_windows.c
600 src/core/lib/iomgr/iomgr.c
601 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700602 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100603 src/core/lib/iomgr/iomgr_windows.c
604 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200605 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100606 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700607 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100608 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700609 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100610 src/core/lib/iomgr/pollset_windows.c
611 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700612 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100613 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700614 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100615 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700616 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100617 src/core/lib/iomgr/socket_utils_common_posix.c
618 src/core/lib/iomgr/socket_utils_linux.c
619 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700620 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700621 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100622 src/core/lib/iomgr/socket_windows.c
623 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700624 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100625 src/core/lib/iomgr/tcp_client_windows.c
626 src/core/lib/iomgr/tcp_posix.c
627 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700628 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100629 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700630 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100631 src/core/lib/iomgr/tcp_windows.c
632 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700633 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100634 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700635 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100636 src/core/lib/iomgr/udp_server.c
637 src/core/lib/iomgr/unix_sockets_posix.c
638 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700639 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100640 src/core/lib/iomgr/wakeup_fd_eventfd.c
641 src/core/lib/iomgr/wakeup_fd_nospecial.c
642 src/core/lib/iomgr/wakeup_fd_pipe.c
643 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700644 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100645 src/core/lib/iomgr/workqueue_windows.c
646 src/core/lib/json/json.c
647 src/core/lib/json/json_reader.c
648 src/core/lib/json/json_string.c
649 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700650 src/core/lib/slice/percent_encoding.c
651 src/core/lib/slice/slice.c
652 src/core/lib/slice/slice_buffer.c
653 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100654 src/core/lib/surface/alarm.c
655 src/core/lib/surface/api_trace.c
656 src/core/lib/surface/byte_buffer.c
657 src/core/lib/surface/byte_buffer_reader.c
658 src/core/lib/surface/call.c
659 src/core/lib/surface/call_details.c
660 src/core/lib/surface/call_log_batch.c
661 src/core/lib/surface/channel.c
662 src/core/lib/surface/channel_init.c
663 src/core/lib/surface/channel_ping.c
664 src/core/lib/surface/channel_stack_type.c
665 src/core/lib/surface/completion_queue.c
666 src/core/lib/surface/event_string.c
667 src/core/lib/surface/lame_client.c
668 src/core/lib/surface/metadata_array.c
669 src/core/lib/surface/server.c
670 src/core/lib/surface/validate_metadata.c
671 src/core/lib/surface/version.c
672 src/core/lib/transport/byte_stream.c
673 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700674 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100675 src/core/lib/transport/metadata.c
676 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700677 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700678 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100679 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400680 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100681 src/core/lib/transport/transport.c
682 src/core/lib/transport/transport_op_string.c
683 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
684 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
685 src/core/ext/transport/cronet/transport/cronet_transport.c
686 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
687 src/core/ext/transport/chttp2/transport/bin_decoder.c
688 src/core/ext/transport/chttp2/transport/bin_encoder.c
689 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
690 src/core/ext/transport/chttp2/transport/chttp2_transport.c
691 src/core/ext/transport/chttp2/transport/frame_data.c
692 src/core/ext/transport/chttp2/transport/frame_goaway.c
693 src/core/ext/transport/chttp2/transport/frame_ping.c
694 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
695 src/core/ext/transport/chttp2/transport/frame_settings.c
696 src/core/ext/transport/chttp2/transport/frame_window_update.c
697 src/core/ext/transport/chttp2/transport/hpack_encoder.c
698 src/core/ext/transport/chttp2/transport/hpack_parser.c
699 src/core/ext/transport/chttp2/transport/hpack_table.c
700 src/core/ext/transport/chttp2/transport/huffsyms.c
701 src/core/ext/transport/chttp2/transport/incoming_metadata.c
702 src/core/ext/transport/chttp2/transport/parsing.c
703 src/core/ext/transport/chttp2/transport/status_conversion.c
704 src/core/ext/transport/chttp2/transport/stream_lists.c
705 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100706 src/core/ext/transport/chttp2/transport/varint.c
707 src/core/ext/transport/chttp2/transport/writing.c
708 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700709 src/core/ext/client_channel/channel_connectivity.c
710 src/core/ext/client_channel/client_channel.c
711 src/core/ext/client_channel/client_channel_factory.c
712 src/core/ext/client_channel/client_channel_plugin.c
713 src/core/ext/client_channel/connector.c
714 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700715 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700716 src/core/ext/client_channel/initial_connect_string.c
717 src/core/ext/client_channel/lb_policy.c
718 src/core/ext/client_channel/lb_policy_factory.c
719 src/core/ext/client_channel/lb_policy_registry.c
720 src/core/ext/client_channel/parse_address.c
721 src/core/ext/client_channel/resolver.c
722 src/core/ext/client_channel/resolver_factory.c
723 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700724 src/core/ext/client_channel/subchannel.c
725 src/core/ext/client_channel/subchannel_index.c
726 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100727 src/core/lib/http/httpcli_security_connector.c
728 src/core/lib/security/context/security_context.c
729 src/core/lib/security/credentials/composite/composite_credentials.c
730 src/core/lib/security/credentials/credentials.c
731 src/core/lib/security/credentials/credentials_metadata.c
732 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700733 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100734 src/core/lib/security/credentials/google_default/google_default_credentials.c
735 src/core/lib/security/credentials/iam/iam_credentials.c
736 src/core/lib/security/credentials/jwt/json_token.c
737 src/core/lib/security/credentials/jwt/jwt_credentials.c
738 src/core/lib/security/credentials/jwt/jwt_verifier.c
739 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
740 src/core/lib/security/credentials/plugin/plugin_credentials.c
741 src/core/lib/security/credentials/ssl/ssl_credentials.c
742 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100743 src/core/lib/security/transport/secure_endpoint.c
744 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800745 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100746 src/core/lib/security/transport/server_auth_filter.c
747 src/core/lib/security/transport/tsi_error.c
748 src/core/lib/security/util/b64.c
749 src/core/lib/security/util/json_util.c
750 src/core/lib/surface/init_secure.c
751 src/core/lib/tsi/fake_transport_security.c
752 src/core/lib/tsi/ssl_transport_security.c
753 src/core/lib/tsi/transport_security.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800754 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100755 src/core/plugin_registry/grpc_cronet_plugin_registry.c
756)
757
758target_include_directories(grpc_cronet
759 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
760 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
761 PRIVATE ${BORINGSSL_ROOT_DIR}/include
762 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300763 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100764 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
765)
766
767target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300768 ${_gRPC_BASELIB_LIBRARIES}
769 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100770 gpr
771)
772
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300773foreach(_hdr
774 include/grpc/byte_buffer.h
775 include/grpc/byte_buffer_reader.h
776 include/grpc/compression.h
777 include/grpc/grpc.h
778 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200779 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700780 include/grpc/slice.h
781 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300782 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300783 include/grpc/impl/codegen/byte_buffer_reader.h
784 include/grpc/impl/codegen/compression_types.h
785 include/grpc/impl/codegen/connectivity_state.h
786 include/grpc/impl/codegen/grpc_types.h
787 include/grpc/impl/codegen/propagation_bits.h
788 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300789 include/grpc/impl/codegen/atm.h
790 include/grpc/impl/codegen/atm_gcc_atomic.h
791 include/grpc/impl/codegen/atm_gcc_sync.h
792 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800793 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700794 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300795 include/grpc/impl/codegen/port_platform.h
796 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300797 include/grpc/impl/codegen/sync.h
798 include/grpc/impl/codegen/sync_generic.h
799 include/grpc/impl/codegen/sync_posix.h
800 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300801 include/grpc/grpc_cronet.h
802 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300803)
804 string(REPLACE "include/" "" _path ${_hdr})
805 get_filename_component(_path ${_path} PATH)
806 install(FILES ${_hdr}
807 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
808 )
809endforeach()
810
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200811
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300812if (gRPC_INSTALL)
813 install(TARGETS grpc_cronet EXPORT gRPCTargets
814 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
815 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
816 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
817 )
818endif()
819
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200820
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100821add_library(grpc_unsecure
822 src/core/lib/surface/init.c
823 src/core/lib/surface/init_unsecure.c
824 src/core/lib/channel/channel_args.c
825 src/core/lib/channel/channel_stack.c
826 src/core/lib/channel/channel_stack_builder.c
827 src/core/lib/channel/compress_filter.c
828 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700829 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700830 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100831 src/core/lib/channel/http_client_filter.c
832 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700833 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100834 src/core/lib/compression/compression.c
835 src/core/lib/compression/message_compress.c
836 src/core/lib/debug/trace.c
837 src/core/lib/http/format_request.c
838 src/core/lib/http/httpcli.c
839 src/core/lib/http/parser.c
840 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700841 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100842 src/core/lib/iomgr/endpoint.c
843 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700844 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100845 src/core/lib/iomgr/endpoint_pair_windows.c
846 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200847 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100848 src/core/lib/iomgr/ev_poll_posix.c
849 src/core/lib/iomgr/ev_posix.c
850 src/core/lib/iomgr/exec_ctx.c
851 src/core/lib/iomgr/executor.c
852 src/core/lib/iomgr/iocp_windows.c
853 src/core/lib/iomgr/iomgr.c
854 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700855 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100856 src/core/lib/iomgr/iomgr_windows.c
857 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200858 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100859 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700860 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100861 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700862 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100863 src/core/lib/iomgr/pollset_windows.c
864 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700865 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100866 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700867 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100868 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700869 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100870 src/core/lib/iomgr/socket_utils_common_posix.c
871 src/core/lib/iomgr/socket_utils_linux.c
872 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700873 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700874 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100875 src/core/lib/iomgr/socket_windows.c
876 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700877 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100878 src/core/lib/iomgr/tcp_client_windows.c
879 src/core/lib/iomgr/tcp_posix.c
880 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700881 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100882 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700883 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100884 src/core/lib/iomgr/tcp_windows.c
885 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700886 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100887 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700888 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100889 src/core/lib/iomgr/udp_server.c
890 src/core/lib/iomgr/unix_sockets_posix.c
891 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700892 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100893 src/core/lib/iomgr/wakeup_fd_eventfd.c
894 src/core/lib/iomgr/wakeup_fd_nospecial.c
895 src/core/lib/iomgr/wakeup_fd_pipe.c
896 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700897 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100898 src/core/lib/iomgr/workqueue_windows.c
899 src/core/lib/json/json.c
900 src/core/lib/json/json_reader.c
901 src/core/lib/json/json_string.c
902 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700903 src/core/lib/slice/percent_encoding.c
904 src/core/lib/slice/slice.c
905 src/core/lib/slice/slice_buffer.c
906 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100907 src/core/lib/surface/alarm.c
908 src/core/lib/surface/api_trace.c
909 src/core/lib/surface/byte_buffer.c
910 src/core/lib/surface/byte_buffer_reader.c
911 src/core/lib/surface/call.c
912 src/core/lib/surface/call_details.c
913 src/core/lib/surface/call_log_batch.c
914 src/core/lib/surface/channel.c
915 src/core/lib/surface/channel_init.c
916 src/core/lib/surface/channel_ping.c
917 src/core/lib/surface/channel_stack_type.c
918 src/core/lib/surface/completion_queue.c
919 src/core/lib/surface/event_string.c
920 src/core/lib/surface/lame_client.c
921 src/core/lib/surface/metadata_array.c
922 src/core/lib/surface/server.c
923 src/core/lib/surface/validate_metadata.c
924 src/core/lib/surface/version.c
925 src/core/lib/transport/byte_stream.c
926 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700927 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100928 src/core/lib/transport/metadata.c
929 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700930 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700931 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100932 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400933 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100934 src/core/lib/transport/transport.c
935 src/core/lib/transport/transport_op_string.c
936 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
937 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
938 src/core/ext/transport/chttp2/transport/bin_decoder.c
939 src/core/ext/transport/chttp2/transport/bin_encoder.c
940 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
941 src/core/ext/transport/chttp2/transport/chttp2_transport.c
942 src/core/ext/transport/chttp2/transport/frame_data.c
943 src/core/ext/transport/chttp2/transport/frame_goaway.c
944 src/core/ext/transport/chttp2/transport/frame_ping.c
945 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
946 src/core/ext/transport/chttp2/transport/frame_settings.c
947 src/core/ext/transport/chttp2/transport/frame_window_update.c
948 src/core/ext/transport/chttp2/transport/hpack_encoder.c
949 src/core/ext/transport/chttp2/transport/hpack_parser.c
950 src/core/ext/transport/chttp2/transport/hpack_table.c
951 src/core/ext/transport/chttp2/transport/huffsyms.c
952 src/core/ext/transport/chttp2/transport/incoming_metadata.c
953 src/core/ext/transport/chttp2/transport/parsing.c
954 src/core/ext/transport/chttp2/transport/status_conversion.c
955 src/core/ext/transport/chttp2/transport/stream_lists.c
956 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100957 src/core/ext/transport/chttp2/transport/varint.c
958 src/core/ext/transport/chttp2/transport/writing.c
959 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth71403822016-12-02 10:51:39 -0800960 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100961 src/core/ext/transport/chttp2/client/insecure/channel_create.c
962 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -0800963 src/core/ext/transport/chttp2/client/chttp2_connector.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700964 src/core/ext/client_channel/channel_connectivity.c
965 src/core/ext/client_channel/client_channel.c
966 src/core/ext/client_channel/client_channel_factory.c
967 src/core/ext/client_channel/client_channel_plugin.c
968 src/core/ext/client_channel/connector.c
969 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700970 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700971 src/core/ext/client_channel/initial_connect_string.c
972 src/core/ext/client_channel/lb_policy.c
973 src/core/ext/client_channel/lb_policy_factory.c
974 src/core/ext/client_channel/lb_policy_registry.c
975 src/core/ext/client_channel/parse_address.c
976 src/core/ext/client_channel/resolver.c
977 src/core/ext/client_channel/resolver_factory.c
978 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700979 src/core/ext/client_channel/subchannel.c
980 src/core/ext/client_channel/subchannel_index.c
981 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100982 src/core/ext/resolver/dns/native/dns_resolver.c
983 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
984 src/core/ext/load_reporting/load_reporting.c
985 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700986 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100987 src/core/ext/lb_policy/grpclb/load_balancer_api.c
988 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
989 third_party/nanopb/pb_common.c
990 third_party/nanopb/pb_decode.c
991 third_party/nanopb/pb_encode.c
992 src/core/ext/lb_policy/pick_first/pick_first.c
993 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700994 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100995 src/core/ext/census/context.c
996 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700997 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100998 src/core/ext/census/grpc_context.c
999 src/core/ext/census/grpc_filter.c
1000 src/core/ext/census/grpc_plugin.c
1001 src/core/ext/census/initialize.c
1002 src/core/ext/census/mlog.c
1003 src/core/ext/census/operation.c
1004 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001005 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001006 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001007 src/core/ext/census/tracing.c
1008 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
1009)
1010
1011target_include_directories(grpc_unsecure
1012 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1013 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1014 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1015 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001016 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001017 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1018)
1019
1020target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001021 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001022 gpr
1023)
1024
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001025foreach(_hdr
1026 include/grpc/byte_buffer.h
1027 include/grpc/byte_buffer_reader.h
1028 include/grpc/compression.h
1029 include/grpc/grpc.h
1030 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001031 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001032 include/grpc/slice.h
1033 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001034 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001035 include/grpc/impl/codegen/byte_buffer_reader.h
1036 include/grpc/impl/codegen/compression_types.h
1037 include/grpc/impl/codegen/connectivity_state.h
1038 include/grpc/impl/codegen/grpc_types.h
1039 include/grpc/impl/codegen/propagation_bits.h
1040 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001041 include/grpc/impl/codegen/atm.h
1042 include/grpc/impl/codegen/atm_gcc_atomic.h
1043 include/grpc/impl/codegen/atm_gcc_sync.h
1044 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001045 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001046 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001047 include/grpc/impl/codegen/port_platform.h
1048 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001049 include/grpc/impl/codegen/sync.h
1050 include/grpc/impl/codegen/sync_generic.h
1051 include/grpc/impl/codegen/sync_posix.h
1052 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001053 include/grpc/census.h
1054)
1055 string(REPLACE "include/" "" _path ${_hdr})
1056 get_filename_component(_path ${_path} PATH)
1057 install(FILES ${_hdr}
1058 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1059 )
1060endforeach()
1061
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001062
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001063if (gRPC_INSTALL)
1064 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1065 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1066 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1067 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1068 )
1069endif()
1070
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001071
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001072add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001073 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001074 src/cpp/client/secure_credentials.cc
1075 src/cpp/common/auth_property_iterator.cc
1076 src/cpp/common/secure_auth_context.cc
1077 src/cpp/common/secure_channel_arguments.cc
1078 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001079 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001080 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001081 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001082 src/cpp/client/client_context.cc
1083 src/cpp/client/create_channel.cc
1084 src/cpp/client/create_channel_internal.cc
1085 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001086 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001087 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001088 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001089 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001090 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001091 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001092 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001093 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001094 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001095 src/cpp/server/async_generic_service.cc
1096 src/cpp/server/create_default_thread_pool.cc
1097 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001098 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001099 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001100 src/cpp/server/server_context.cc
1101 src/cpp/server/server_credentials.cc
1102 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001103 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001104 src/cpp/util/byte_buffer_cc.cc
1105 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001106 src/cpp/util/status.cc
1107 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001108 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001109 src/cpp/codegen/codegen_init.cc
1110)
1111
1112target_include_directories(grpc++
1113 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1114 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1115 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1116 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001117 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001118 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1119)
1120
1121target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001122 ${_gRPC_BASELIB_LIBRARIES}
1123 ${_gRPC_SSL_LIBRARIES}
1124 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001125 grpc
1126)
1127
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001128foreach(_hdr
1129 include/grpc++/alarm.h
1130 include/grpc++/channel.h
1131 include/grpc++/client_context.h
1132 include/grpc++/completion_queue.h
1133 include/grpc++/create_channel.h
1134 include/grpc++/create_channel_posix.h
1135 include/grpc++/generic/async_generic_service.h
1136 include/grpc++/generic/generic_stub.h
1137 include/grpc++/grpc++.h
1138 include/grpc++/impl/call.h
1139 include/grpc++/impl/client_unary_call.h
1140 include/grpc++/impl/codegen/core_codegen.h
1141 include/grpc++/impl/grpc_library.h
1142 include/grpc++/impl/method_handler_impl.h
1143 include/grpc++/impl/rpc_method.h
1144 include/grpc++/impl/rpc_service_method.h
1145 include/grpc++/impl/serialization_traits.h
1146 include/grpc++/impl/server_builder_option.h
1147 include/grpc++/impl/server_builder_plugin.h
1148 include/grpc++/impl/server_initializer.h
1149 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001150 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001151 include/grpc++/security/auth_context.h
1152 include/grpc++/security/auth_metadata_processor.h
1153 include/grpc++/security/credentials.h
1154 include/grpc++/security/server_credentials.h
1155 include/grpc++/server.h
1156 include/grpc++/server_builder.h
1157 include/grpc++/server_context.h
1158 include/grpc++/server_posix.h
1159 include/grpc++/support/async_stream.h
1160 include/grpc++/support/async_unary_call.h
1161 include/grpc++/support/byte_buffer.h
1162 include/grpc++/support/channel_arguments.h
1163 include/grpc++/support/config.h
1164 include/grpc++/support/slice.h
1165 include/grpc++/support/status.h
1166 include/grpc++/support/status_code_enum.h
1167 include/grpc++/support/string_ref.h
1168 include/grpc++/support/stub_options.h
1169 include/grpc++/support/sync_stream.h
1170 include/grpc++/support/time.h
1171 include/grpc++/impl/codegen/async_stream.h
1172 include/grpc++/impl/codegen/async_unary_call.h
1173 include/grpc++/impl/codegen/call.h
1174 include/grpc++/impl/codegen/call_hook.h
1175 include/grpc++/impl/codegen/channel_interface.h
1176 include/grpc++/impl/codegen/client_context.h
1177 include/grpc++/impl/codegen/client_unary_call.h
1178 include/grpc++/impl/codegen/completion_queue.h
1179 include/grpc++/impl/codegen/completion_queue_tag.h
1180 include/grpc++/impl/codegen/config.h
1181 include/grpc++/impl/codegen/core_codegen_interface.h
1182 include/grpc++/impl/codegen/create_auth_context.h
1183 include/grpc++/impl/codegen/grpc_library.h
1184 include/grpc++/impl/codegen/method_handler_impl.h
1185 include/grpc++/impl/codegen/rpc_method.h
1186 include/grpc++/impl/codegen/rpc_service_method.h
1187 include/grpc++/impl/codegen/security/auth_context.h
1188 include/grpc++/impl/codegen/serialization_traits.h
1189 include/grpc++/impl/codegen/server_context.h
1190 include/grpc++/impl/codegen/server_interface.h
1191 include/grpc++/impl/codegen/service_type.h
1192 include/grpc++/impl/codegen/status.h
1193 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001194 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001195 include/grpc++/impl/codegen/string_ref.h
1196 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001197 include/grpc++/impl/codegen/sync_stream.h
1198 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001199 include/grpc/impl/codegen/byte_buffer_reader.h
1200 include/grpc/impl/codegen/compression_types.h
1201 include/grpc/impl/codegen/connectivity_state.h
1202 include/grpc/impl/codegen/grpc_types.h
1203 include/grpc/impl/codegen/propagation_bits.h
1204 include/grpc/impl/codegen/status.h
1205 include/grpc/impl/codegen/atm.h
1206 include/grpc/impl/codegen/atm_gcc_atomic.h
1207 include/grpc/impl/codegen/atm_gcc_sync.h
1208 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001209 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001210 include/grpc/impl/codegen/gpr_types.h
1211 include/grpc/impl/codegen/port_platform.h
1212 include/grpc/impl/codegen/slice.h
1213 include/grpc/impl/codegen/sync.h
1214 include/grpc/impl/codegen/sync_generic.h
1215 include/grpc/impl/codegen/sync_posix.h
1216 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001217)
1218 string(REPLACE "include/" "" _path ${_hdr})
1219 get_filename_component(_path ${_path} PATH)
1220 install(FILES ${_hdr}
1221 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1222 )
1223endforeach()
1224
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001225
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001226if (gRPC_INSTALL)
1227 install(TARGETS grpc++ EXPORT gRPCTargets
1228 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1229 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1230 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1231 )
1232endif()
1233
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001234
Garrett Casto931a26b2016-10-04 09:18:29 -07001235add_library(grpc++_cronet
1236 src/cpp/client/cronet_credentials.cc
1237 src/cpp/client/insecure_credentials.cc
1238 src/cpp/common/insecure_create_auth_context.cc
1239 src/cpp/server/insecure_server_credentials.cc
1240 src/cpp/client/channel_cc.cc
1241 src/cpp/client/client_context.cc
1242 src/cpp/client/create_channel.cc
1243 src/cpp/client/create_channel_internal.cc
1244 src/cpp/client/create_channel_posix.cc
1245 src/cpp/client/credentials_cc.cc
1246 src/cpp/client/generic_stub.cc
1247 src/cpp/common/channel_arguments.cc
1248 src/cpp/common/channel_filter.cc
1249 src/cpp/common/completion_queue_cc.cc
1250 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07001251 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001252 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001253 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001254 src/cpp/server/async_generic_service.cc
1255 src/cpp/server/create_default_thread_pool.cc
1256 src/cpp/server/dynamic_thread_pool.cc
1257 src/cpp/server/server_builder.cc
1258 src/cpp/server/server_cc.cc
1259 src/cpp/server/server_context.cc
1260 src/cpp/server/server_credentials.cc
1261 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07001262 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001263 src/cpp/util/byte_buffer_cc.cc
1264 src/cpp/util/slice_cc.cc
1265 src/cpp/util/status.cc
1266 src/cpp/util/string_ref.cc
1267 src/cpp/util/time_cc.cc
1268 src/cpp/codegen/codegen_init.cc
ncteisen3770ac92016-11-28 11:02:41 -08001269 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1270 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08001271 src/core/ext/transport/chttp2/client/chttp2_connector.c
ncteisen3770ac92016-11-28 11:02:41 -08001272 src/core/ext/transport/chttp2/transport/bin_decoder.c
1273 src/core/ext/transport/chttp2/transport/bin_encoder.c
1274 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1275 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1276 src/core/ext/transport/chttp2/transport/frame_data.c
1277 src/core/ext/transport/chttp2/transport/frame_goaway.c
1278 src/core/ext/transport/chttp2/transport/frame_ping.c
1279 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1280 src/core/ext/transport/chttp2/transport/frame_settings.c
1281 src/core/ext/transport/chttp2/transport/frame_window_update.c
1282 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1283 src/core/ext/transport/chttp2/transport/hpack_parser.c
1284 src/core/ext/transport/chttp2/transport/hpack_table.c
1285 src/core/ext/transport/chttp2/transport/huffsyms.c
1286 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1287 src/core/ext/transport/chttp2/transport/parsing.c
1288 src/core/ext/transport/chttp2/transport/status_conversion.c
1289 src/core/ext/transport/chttp2/transport/stream_lists.c
1290 src/core/ext/transport/chttp2/transport/stream_map.c
1291 src/core/ext/transport/chttp2/transport/varint.c
1292 src/core/ext/transport/chttp2/transport/writing.c
1293 src/core/lib/channel/channel_args.c
1294 src/core/lib/channel/channel_stack.c
1295 src/core/lib/channel/channel_stack_builder.c
1296 src/core/lib/channel/compress_filter.c
1297 src/core/lib/channel/connected_channel.c
1298 src/core/lib/channel/deadline_filter.c
1299 src/core/lib/channel/handshaker.c
1300 src/core/lib/channel/http_client_filter.c
1301 src/core/lib/channel/http_server_filter.c
1302 src/core/lib/channel/message_size_filter.c
1303 src/core/lib/compression/compression.c
1304 src/core/lib/compression/message_compress.c
1305 src/core/lib/debug/trace.c
1306 src/core/lib/http/format_request.c
1307 src/core/lib/http/httpcli.c
1308 src/core/lib/http/parser.c
1309 src/core/lib/iomgr/closure.c
1310 src/core/lib/iomgr/combiner.c
1311 src/core/lib/iomgr/endpoint.c
1312 src/core/lib/iomgr/endpoint_pair_posix.c
1313 src/core/lib/iomgr/endpoint_pair_uv.c
1314 src/core/lib/iomgr/endpoint_pair_windows.c
1315 src/core/lib/iomgr/error.c
1316 src/core/lib/iomgr/ev_epoll_linux.c
1317 src/core/lib/iomgr/ev_poll_posix.c
1318 src/core/lib/iomgr/ev_posix.c
1319 src/core/lib/iomgr/exec_ctx.c
1320 src/core/lib/iomgr/executor.c
1321 src/core/lib/iomgr/iocp_windows.c
1322 src/core/lib/iomgr/iomgr.c
1323 src/core/lib/iomgr/iomgr_posix.c
1324 src/core/lib/iomgr/iomgr_uv.c
1325 src/core/lib/iomgr/iomgr_windows.c
1326 src/core/lib/iomgr/load_file.c
1327 src/core/lib/iomgr/network_status_tracker.c
1328 src/core/lib/iomgr/polling_entity.c
1329 src/core/lib/iomgr/pollset_set_uv.c
1330 src/core/lib/iomgr/pollset_set_windows.c
1331 src/core/lib/iomgr/pollset_uv.c
1332 src/core/lib/iomgr/pollset_windows.c
1333 src/core/lib/iomgr/resolve_address_posix.c
1334 src/core/lib/iomgr/resolve_address_uv.c
1335 src/core/lib/iomgr/resolve_address_windows.c
1336 src/core/lib/iomgr/resource_quota.c
1337 src/core/lib/iomgr/sockaddr_utils.c
1338 src/core/lib/iomgr/socket_mutator.c
1339 src/core/lib/iomgr/socket_utils_common_posix.c
1340 src/core/lib/iomgr/socket_utils_linux.c
1341 src/core/lib/iomgr/socket_utils_posix.c
1342 src/core/lib/iomgr/socket_utils_uv.c
1343 src/core/lib/iomgr/socket_utils_windows.c
1344 src/core/lib/iomgr/socket_windows.c
1345 src/core/lib/iomgr/tcp_client_posix.c
1346 src/core/lib/iomgr/tcp_client_uv.c
1347 src/core/lib/iomgr/tcp_client_windows.c
1348 src/core/lib/iomgr/tcp_posix.c
1349 src/core/lib/iomgr/tcp_server_posix.c
1350 src/core/lib/iomgr/tcp_server_uv.c
1351 src/core/lib/iomgr/tcp_server_windows.c
1352 src/core/lib/iomgr/tcp_uv.c
1353 src/core/lib/iomgr/tcp_windows.c
1354 src/core/lib/iomgr/time_averaged_stats.c
1355 src/core/lib/iomgr/timer_generic.c
1356 src/core/lib/iomgr/timer_heap.c
1357 src/core/lib/iomgr/timer_uv.c
1358 src/core/lib/iomgr/udp_server.c
1359 src/core/lib/iomgr/unix_sockets_posix.c
1360 src/core/lib/iomgr/unix_sockets_posix_noop.c
1361 src/core/lib/iomgr/wakeup_fd_cv.c
1362 src/core/lib/iomgr/wakeup_fd_eventfd.c
1363 src/core/lib/iomgr/wakeup_fd_nospecial.c
1364 src/core/lib/iomgr/wakeup_fd_pipe.c
1365 src/core/lib/iomgr/wakeup_fd_posix.c
1366 src/core/lib/iomgr/workqueue_uv.c
1367 src/core/lib/iomgr/workqueue_windows.c
1368 src/core/lib/json/json.c
1369 src/core/lib/json/json_reader.c
1370 src/core/lib/json/json_string.c
1371 src/core/lib/json/json_writer.c
1372 src/core/lib/slice/percent_encoding.c
1373 src/core/lib/slice/slice.c
1374 src/core/lib/slice/slice_buffer.c
1375 src/core/lib/slice/slice_string_helpers.c
1376 src/core/lib/surface/alarm.c
1377 src/core/lib/surface/api_trace.c
1378 src/core/lib/surface/byte_buffer.c
1379 src/core/lib/surface/byte_buffer_reader.c
1380 src/core/lib/surface/call.c
1381 src/core/lib/surface/call_details.c
1382 src/core/lib/surface/call_log_batch.c
1383 src/core/lib/surface/channel.c
1384 src/core/lib/surface/channel_init.c
1385 src/core/lib/surface/channel_ping.c
1386 src/core/lib/surface/channel_stack_type.c
1387 src/core/lib/surface/completion_queue.c
1388 src/core/lib/surface/event_string.c
1389 src/core/lib/surface/lame_client.c
1390 src/core/lib/surface/metadata_array.c
1391 src/core/lib/surface/server.c
1392 src/core/lib/surface/validate_metadata.c
1393 src/core/lib/surface/version.c
1394 src/core/lib/transport/byte_stream.c
1395 src/core/lib/transport/connectivity_state.c
1396 src/core/lib/transport/mdstr_hash_table.c
1397 src/core/lib/transport/metadata.c
1398 src/core/lib/transport/metadata_batch.c
1399 src/core/lib/transport/pid_controller.c
1400 src/core/lib/transport/service_config.c
1401 src/core/lib/transport/static_metadata.c
1402 src/core/lib/transport/timeout_encoding.c
1403 src/core/lib/transport/transport.c
1404 src/core/lib/transport/transport_op_string.c
1405 src/core/ext/transport/chttp2/alpn/alpn.c
1406 src/core/ext/client_channel/channel_connectivity.c
1407 src/core/ext/client_channel/client_channel.c
1408 src/core/ext/client_channel/client_channel_factory.c
1409 src/core/ext/client_channel/client_channel_plugin.c
1410 src/core/ext/client_channel/connector.c
1411 src/core/ext/client_channel/default_initial_connect_string.c
1412 src/core/ext/client_channel/http_connect_handshaker.c
1413 src/core/ext/client_channel/initial_connect_string.c
1414 src/core/ext/client_channel/lb_policy.c
1415 src/core/ext/client_channel/lb_policy_factory.c
1416 src/core/ext/client_channel/lb_policy_registry.c
1417 src/core/ext/client_channel/parse_address.c
1418 src/core/ext/client_channel/resolver.c
1419 src/core/ext/client_channel/resolver_factory.c
1420 src/core/ext/client_channel/resolver_registry.c
1421 src/core/ext/client_channel/subchannel.c
1422 src/core/ext/client_channel/subchannel_index.c
1423 src/core/ext/client_channel/uri_parser.c
1424 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1425 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08001426 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08001427 src/core/ext/census/base_resources.c
1428 src/core/ext/census/context.c
1429 src/core/ext/census/gen/census.pb.c
1430 src/core/ext/census/gen/trace_context.pb.c
1431 src/core/ext/census/grpc_context.c
1432 src/core/ext/census/grpc_filter.c
1433 src/core/ext/census/grpc_plugin.c
1434 src/core/ext/census/initialize.c
1435 src/core/ext/census/mlog.c
1436 src/core/ext/census/operation.c
1437 src/core/ext/census/placeholders.c
1438 src/core/ext/census/resource.c
1439 src/core/ext/census/trace_context.c
1440 src/core/ext/census/tracing.c
1441 third_party/nanopb/pb_common.c
1442 third_party/nanopb/pb_decode.c
1443 third_party/nanopb/pb_encode.c
Garrett Casto931a26b2016-10-04 09:18:29 -07001444)
1445
1446target_include_directories(grpc++_cronet
1447 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1448 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1449 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1450 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1451 PRIVATE ${ZLIB_INCLUDE_DIR}
1452 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1453)
1454
1455target_link_libraries(grpc++_cronet
1456 ${_gRPC_BASELIB_LIBRARIES}
1457 ${_gRPC_SSL_LIBRARIES}
1458 gpr
1459 grpc_cronet
1460)
1461
1462foreach(_hdr
1463 include/grpc++/alarm.h
1464 include/grpc++/channel.h
1465 include/grpc++/client_context.h
1466 include/grpc++/completion_queue.h
1467 include/grpc++/create_channel.h
1468 include/grpc++/create_channel_posix.h
1469 include/grpc++/generic/async_generic_service.h
1470 include/grpc++/generic/generic_stub.h
1471 include/grpc++/grpc++.h
1472 include/grpc++/impl/call.h
1473 include/grpc++/impl/client_unary_call.h
1474 include/grpc++/impl/codegen/core_codegen.h
1475 include/grpc++/impl/grpc_library.h
1476 include/grpc++/impl/method_handler_impl.h
1477 include/grpc++/impl/rpc_method.h
1478 include/grpc++/impl/rpc_service_method.h
1479 include/grpc++/impl/serialization_traits.h
1480 include/grpc++/impl/server_builder_option.h
1481 include/grpc++/impl/server_builder_plugin.h
1482 include/grpc++/impl/server_initializer.h
1483 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07001484 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001485 include/grpc++/security/auth_context.h
1486 include/grpc++/security/auth_metadata_processor.h
1487 include/grpc++/security/credentials.h
1488 include/grpc++/security/server_credentials.h
1489 include/grpc++/server.h
1490 include/grpc++/server_builder.h
1491 include/grpc++/server_context.h
1492 include/grpc++/server_posix.h
1493 include/grpc++/support/async_stream.h
1494 include/grpc++/support/async_unary_call.h
1495 include/grpc++/support/byte_buffer.h
1496 include/grpc++/support/channel_arguments.h
1497 include/grpc++/support/config.h
1498 include/grpc++/support/slice.h
1499 include/grpc++/support/status.h
1500 include/grpc++/support/status_code_enum.h
1501 include/grpc++/support/string_ref.h
1502 include/grpc++/support/stub_options.h
1503 include/grpc++/support/sync_stream.h
1504 include/grpc++/support/time.h
1505 include/grpc++/impl/codegen/async_stream.h
1506 include/grpc++/impl/codegen/async_unary_call.h
1507 include/grpc++/impl/codegen/call.h
1508 include/grpc++/impl/codegen/call_hook.h
1509 include/grpc++/impl/codegen/channel_interface.h
1510 include/grpc++/impl/codegen/client_context.h
1511 include/grpc++/impl/codegen/client_unary_call.h
1512 include/grpc++/impl/codegen/completion_queue.h
1513 include/grpc++/impl/codegen/completion_queue_tag.h
1514 include/grpc++/impl/codegen/config.h
1515 include/grpc++/impl/codegen/core_codegen_interface.h
1516 include/grpc++/impl/codegen/create_auth_context.h
1517 include/grpc++/impl/codegen/grpc_library.h
1518 include/grpc++/impl/codegen/method_handler_impl.h
1519 include/grpc++/impl/codegen/rpc_method.h
1520 include/grpc++/impl/codegen/rpc_service_method.h
1521 include/grpc++/impl/codegen/security/auth_context.h
1522 include/grpc++/impl/codegen/serialization_traits.h
1523 include/grpc++/impl/codegen/server_context.h
1524 include/grpc++/impl/codegen/server_interface.h
1525 include/grpc++/impl/codegen/service_type.h
1526 include/grpc++/impl/codegen/status.h
1527 include/grpc++/impl/codegen/status_code_enum.h
1528 include/grpc++/impl/codegen/status_helper.h
1529 include/grpc++/impl/codegen/string_ref.h
1530 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001531 include/grpc++/impl/codegen/sync_stream.h
1532 include/grpc++/impl/codegen/time.h
1533 include/grpc/impl/codegen/byte_buffer_reader.h
1534 include/grpc/impl/codegen/compression_types.h
1535 include/grpc/impl/codegen/connectivity_state.h
1536 include/grpc/impl/codegen/grpc_types.h
1537 include/grpc/impl/codegen/propagation_bits.h
1538 include/grpc/impl/codegen/status.h
1539 include/grpc/impl/codegen/atm.h
1540 include/grpc/impl/codegen/atm_gcc_atomic.h
1541 include/grpc/impl/codegen/atm_gcc_sync.h
1542 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001543 include/grpc/impl/codegen/gpr_slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001544 include/grpc/impl/codegen/gpr_types.h
1545 include/grpc/impl/codegen/port_platform.h
1546 include/grpc/impl/codegen/slice.h
1547 include/grpc/impl/codegen/sync.h
1548 include/grpc/impl/codegen/sync_generic.h
1549 include/grpc/impl/codegen/sync_posix.h
1550 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08001551 include/grpc/byte_buffer.h
1552 include/grpc/byte_buffer_reader.h
1553 include/grpc/compression.h
1554 include/grpc/grpc.h
1555 include/grpc/grpc_posix.h
1556 include/grpc/grpc_security_constants.h
1557 include/grpc/slice.h
1558 include/grpc/slice_buffer.h
1559 include/grpc/status.h
1560 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001561)
1562 string(REPLACE "include/" "" _path ${_hdr})
1563 get_filename_component(_path ${_path} PATH)
1564 install(FILES ${_hdr}
1565 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1566 )
1567endforeach()
1568
1569
1570if (gRPC_INSTALL)
1571 install(TARGETS grpc++_cronet EXPORT gRPCTargets
1572 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1573 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1574 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1575 )
1576endif()
1577
1578
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001579add_library(grpc++_reflection
1580 src/cpp/ext/proto_server_reflection.cc
1581 src/cpp/ext/proto_server_reflection_plugin.cc
Yuchen Zeng169c9852016-10-14 15:58:09 -07001582 src/proto/grpc/reflection/v1alpha/reflection.proto
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001583)
1584
1585target_include_directories(grpc++_reflection
1586 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1587 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1588 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1589 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001590 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001591 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1592)
1593
1594target_link_libraries(grpc++_reflection
1595 grpc++
1596)
1597
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001598foreach(_hdr
1599 include/grpc++/ext/proto_server_reflection_plugin.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001600)
1601 string(REPLACE "include/" "" _path ${_hdr})
1602 get_filename_component(_path ${_path} PATH)
1603 install(FILES ${_hdr}
1604 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1605 )
1606endforeach()
1607
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001608
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001609if (gRPC_INSTALL)
1610 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1611 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1612 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1613 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1614 )
1615endif()
1616
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001617
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001618add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001619 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001620 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001621 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001622 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001623 src/cpp/client/client_context.cc
1624 src/cpp/client/create_channel.cc
1625 src/cpp/client/create_channel_internal.cc
1626 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001627 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001628 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001629 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001630 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001631 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001632 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001633 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001634 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001635 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001636 src/cpp/server/async_generic_service.cc
1637 src/cpp/server/create_default_thread_pool.cc
1638 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001639 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001640 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001641 src/cpp/server/server_context.cc
1642 src/cpp/server/server_credentials.cc
1643 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001644 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001645 src/cpp/util/byte_buffer_cc.cc
1646 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001647 src/cpp/util/status.cc
1648 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001649 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001650 src/cpp/codegen/codegen_init.cc
1651)
1652
1653target_include_directories(grpc++_unsecure
1654 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1655 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1656 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1657 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001658 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001659 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1660)
1661
1662target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001663 ${_gRPC_BASELIB_LIBRARIES}
1664 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001665 gpr
1666 grpc_unsecure
1667)
1668
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001669foreach(_hdr
1670 include/grpc++/alarm.h
1671 include/grpc++/channel.h
1672 include/grpc++/client_context.h
1673 include/grpc++/completion_queue.h
1674 include/grpc++/create_channel.h
1675 include/grpc++/create_channel_posix.h
1676 include/grpc++/generic/async_generic_service.h
1677 include/grpc++/generic/generic_stub.h
1678 include/grpc++/grpc++.h
1679 include/grpc++/impl/call.h
1680 include/grpc++/impl/client_unary_call.h
1681 include/grpc++/impl/codegen/core_codegen.h
1682 include/grpc++/impl/grpc_library.h
1683 include/grpc++/impl/method_handler_impl.h
1684 include/grpc++/impl/rpc_method.h
1685 include/grpc++/impl/rpc_service_method.h
1686 include/grpc++/impl/serialization_traits.h
1687 include/grpc++/impl/server_builder_option.h
1688 include/grpc++/impl/server_builder_plugin.h
1689 include/grpc++/impl/server_initializer.h
1690 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001691 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001692 include/grpc++/security/auth_context.h
1693 include/grpc++/security/auth_metadata_processor.h
1694 include/grpc++/security/credentials.h
1695 include/grpc++/security/server_credentials.h
1696 include/grpc++/server.h
1697 include/grpc++/server_builder.h
1698 include/grpc++/server_context.h
1699 include/grpc++/server_posix.h
1700 include/grpc++/support/async_stream.h
1701 include/grpc++/support/async_unary_call.h
1702 include/grpc++/support/byte_buffer.h
1703 include/grpc++/support/channel_arguments.h
1704 include/grpc++/support/config.h
1705 include/grpc++/support/slice.h
1706 include/grpc++/support/status.h
1707 include/grpc++/support/status_code_enum.h
1708 include/grpc++/support/string_ref.h
1709 include/grpc++/support/stub_options.h
1710 include/grpc++/support/sync_stream.h
1711 include/grpc++/support/time.h
1712 include/grpc++/impl/codegen/async_stream.h
1713 include/grpc++/impl/codegen/async_unary_call.h
1714 include/grpc++/impl/codegen/call.h
1715 include/grpc++/impl/codegen/call_hook.h
1716 include/grpc++/impl/codegen/channel_interface.h
1717 include/grpc++/impl/codegen/client_context.h
1718 include/grpc++/impl/codegen/client_unary_call.h
1719 include/grpc++/impl/codegen/completion_queue.h
1720 include/grpc++/impl/codegen/completion_queue_tag.h
1721 include/grpc++/impl/codegen/config.h
1722 include/grpc++/impl/codegen/core_codegen_interface.h
1723 include/grpc++/impl/codegen/create_auth_context.h
1724 include/grpc++/impl/codegen/grpc_library.h
1725 include/grpc++/impl/codegen/method_handler_impl.h
1726 include/grpc++/impl/codegen/rpc_method.h
1727 include/grpc++/impl/codegen/rpc_service_method.h
1728 include/grpc++/impl/codegen/security/auth_context.h
1729 include/grpc++/impl/codegen/serialization_traits.h
1730 include/grpc++/impl/codegen/server_context.h
1731 include/grpc++/impl/codegen/server_interface.h
1732 include/grpc++/impl/codegen/service_type.h
1733 include/grpc++/impl/codegen/status.h
1734 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001735 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001736 include/grpc++/impl/codegen/string_ref.h
1737 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001738 include/grpc++/impl/codegen/sync_stream.h
1739 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001740 include/grpc/impl/codegen/byte_buffer_reader.h
1741 include/grpc/impl/codegen/compression_types.h
1742 include/grpc/impl/codegen/connectivity_state.h
1743 include/grpc/impl/codegen/grpc_types.h
1744 include/grpc/impl/codegen/propagation_bits.h
1745 include/grpc/impl/codegen/status.h
1746 include/grpc/impl/codegen/atm.h
1747 include/grpc/impl/codegen/atm_gcc_atomic.h
1748 include/grpc/impl/codegen/atm_gcc_sync.h
1749 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001750 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001751 include/grpc/impl/codegen/gpr_types.h
1752 include/grpc/impl/codegen/port_platform.h
1753 include/grpc/impl/codegen/slice.h
1754 include/grpc/impl/codegen/sync.h
1755 include/grpc/impl/codegen/sync_generic.h
1756 include/grpc/impl/codegen/sync_posix.h
1757 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001758)
1759 string(REPLACE "include/" "" _path ${_hdr})
1760 get_filename_component(_path ${_path} PATH)
1761 install(FILES ${_hdr}
1762 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1763 )
1764endforeach()
1765
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001766
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001767if (gRPC_INSTALL)
1768 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1769 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1770 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1771 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1772 )
1773endif()
1774
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001775
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001776add_library(grpc_plugin_support
1777 src/compiler/cpp_generator.cc
1778 src/compiler/csharp_generator.cc
1779 src/compiler/node_generator.cc
1780 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07001781 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001782 src/compiler/python_generator.cc
1783 src/compiler/ruby_generator.cc
1784)
1785
1786target_include_directories(grpc_plugin_support
1787 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1788 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1789 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1790 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001791 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001792 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1793)
1794
1795target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001796 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001797)
1798
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001799foreach(_hdr
1800 include/grpc++/impl/codegen/config_protobuf.h
1801)
1802 string(REPLACE "include/" "" _path ${_hdr})
1803 get_filename_component(_path ${_path} PATH)
1804 install(FILES ${_hdr}
1805 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1806 )
1807endforeach()
1808
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001809
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001810if (gRPC_INSTALL)
1811 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1812 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1813 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1814 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1815 )
1816endif()
1817
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001818
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001819add_library(grpc_csharp_ext
1820 src/csharp/ext/grpc_csharp_ext.c
1821)
1822
1823target_include_directories(grpc_csharp_ext
1824 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1825 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1826 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1827 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001828 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001829 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1830)
1831
1832target_link_libraries(grpc_csharp_ext
1833 grpc
1834 gpr
1835)
1836
1837
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001838
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001839if (gRPC_INSTALL)
1840 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1841 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1842 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1843 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1844 )
1845endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001846
1847
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001848
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001849add_executable(gen_hpack_tables
1850 tools/codegen/core/gen_hpack_tables.c
1851)
1852
1853target_include_directories(gen_hpack_tables
1854 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1855 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1856 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1857 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1858 PRIVATE ${ZLIB_ROOT_DIR}
1859 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1860)
1861
1862target_link_libraries(gen_hpack_tables
1863 gpr
1864 grpc
1865)
1866
1867
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001868if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001869 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1870 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1871 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1872 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1873 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001874endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001875
1876
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001877add_executable(gen_legal_metadata_characters
1878 tools/codegen/core/gen_legal_metadata_characters.c
1879)
1880
1881target_include_directories(gen_legal_metadata_characters
1882 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1883 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1884 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1885 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1886 PRIVATE ${ZLIB_ROOT_DIR}
1887 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1888)
1889
1890
1891
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001892if (gRPC_INSTALL)
1893 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1894 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1895 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1896 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1897 )
1898endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001899
1900
Craig Tiller1c7a8422016-08-18 11:13:11 -07001901add_executable(gen_percent_encoding_tables
1902 tools/codegen/core/gen_percent_encoding_tables.c
1903)
1904
1905target_include_directories(gen_percent_encoding_tables
1906 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1907 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1908 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1909 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1910 PRIVATE ${ZLIB_ROOT_DIR}
1911 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1912)
1913
1914
1915
Craig Tiller426dcde2016-09-07 15:43:10 -07001916if (gRPC_INSTALL)
1917 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1918 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1919 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1920 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1921 )
1922endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001923
1924
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001925add_executable(grpc_create_jwt
1926 test/core/security/create_jwt.c
1927)
1928
1929target_include_directories(grpc_create_jwt
1930 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1931 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1932 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1933 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1934 PRIVATE ${ZLIB_ROOT_DIR}
1935 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1936)
1937
1938target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001939 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001940 grpc
1941 gpr
1942)
1943
1944
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001945if (gRPC_INSTALL)
1946 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1947 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1948 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1949 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1950 )
1951endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001952
1953
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001954add_executable(grpc_print_google_default_creds_token
1955 test/core/security/print_google_default_creds_token.c
1956)
1957
1958target_include_directories(grpc_print_google_default_creds_token
1959 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1960 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1961 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1962 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1963 PRIVATE ${ZLIB_ROOT_DIR}
1964 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1965)
1966
1967target_link_libraries(grpc_print_google_default_creds_token
1968 grpc
1969 gpr
1970)
1971
1972
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001973if (gRPC_INSTALL)
1974 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1975 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1976 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1977 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1978 )
1979endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001980
1981
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001982add_executable(grpc_verify_jwt
1983 test/core/security/verify_jwt.c
1984)
1985
1986target_include_directories(grpc_verify_jwt
1987 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1988 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1989 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1990 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1991 PRIVATE ${ZLIB_ROOT_DIR}
1992 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1993)
1994
1995target_link_libraries(grpc_verify_jwt
1996 grpc
1997 gpr
1998)
1999
2000
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002001if (gRPC_INSTALL)
2002 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
2003 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2004 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2005 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2006 )
2007endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002008
2009
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002010add_executable(grpc_cpp_plugin
2011 src/compiler/cpp_plugin.cc
2012)
2013
2014target_include_directories(grpc_cpp_plugin
2015 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2016 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2017 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2018 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2019 PRIVATE ${ZLIB_ROOT_DIR}
2020 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2021)
2022
2023target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002024 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002025 grpc_plugin_support
2026)
2027
2028
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002029if (gRPC_INSTALL)
2030 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
2031 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2032 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2033 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2034 )
2035endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002036
2037
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002038add_executable(grpc_csharp_plugin
2039 src/compiler/csharp_plugin.cc
2040)
2041
2042target_include_directories(grpc_csharp_plugin
2043 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2045 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2046 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2047 PRIVATE ${ZLIB_ROOT_DIR}
2048 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2049)
2050
2051target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002052 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002053 grpc_plugin_support
2054)
2055
2056
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002057if (gRPC_INSTALL)
2058 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
2059 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2060 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2061 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2062 )
2063endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002064
2065
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002066add_executable(grpc_node_plugin
2067 src/compiler/node_plugin.cc
2068)
2069
2070target_include_directories(grpc_node_plugin
2071 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2072 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2073 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2074 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2075 PRIVATE ${ZLIB_ROOT_DIR}
2076 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2077)
2078
2079target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002080 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002081 grpc_plugin_support
2082)
2083
2084
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002085if (gRPC_INSTALL)
2086 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
2087 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2088 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2089 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2090 )
2091endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002092
2093
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002094add_executable(grpc_objective_c_plugin
2095 src/compiler/objective_c_plugin.cc
2096)
2097
2098target_include_directories(grpc_objective_c_plugin
2099 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2100 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2101 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2102 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2103 PRIVATE ${ZLIB_ROOT_DIR}
2104 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2105)
2106
2107target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002108 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002109 grpc_plugin_support
2110)
2111
2112
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002113if (gRPC_INSTALL)
2114 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
2115 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2116 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2117 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2118 )
2119endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002120
2121
Stanley Cheung857a1302016-09-29 17:26:29 -07002122add_executable(grpc_php_plugin
2123 src/compiler/php_plugin.cc
2124)
2125
2126target_include_directories(grpc_php_plugin
2127 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2128 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2129 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2130 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2131 PRIVATE ${ZLIB_ROOT_DIR}
2132 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2133)
2134
2135target_link_libraries(grpc_php_plugin
2136 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
2137 grpc_plugin_support
2138)
2139
2140
2141if (gRPC_INSTALL)
2142 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
2143 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2144 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2145 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2146 )
2147endif()
2148
2149
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002150add_executable(grpc_python_plugin
2151 src/compiler/python_plugin.cc
2152)
2153
2154target_include_directories(grpc_python_plugin
2155 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2156 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2157 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2158 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2159 PRIVATE ${ZLIB_ROOT_DIR}
2160 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2161)
2162
2163target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002164 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002165 grpc_plugin_support
2166)
2167
2168
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002169if (gRPC_INSTALL)
2170 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
2171 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2172 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2173 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2174 )
2175endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002176
2177
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002178add_executable(grpc_ruby_plugin
2179 src/compiler/ruby_plugin.cc
2180)
2181
2182target_include_directories(grpc_ruby_plugin
2183 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2184 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2185 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2186 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2187 PRIVATE ${ZLIB_ROOT_DIR}
2188 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2189)
2190
2191target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002192 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002193 grpc_plugin_support
2194)
2195
2196
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002197if (gRPC_INSTALL)
2198 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2199 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2200 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2201 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2202 )
2203endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002204
2205
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002206
2207
2208
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002209
2210
2211
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002212if (gRPC_INSTALL)
2213 install(EXPORT gRPCTargets
2214 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2215 NAMESPACE gRPC::
2216 )
2217endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002218
2219foreach(_config gRPCConfig gRPCConfigVersion)
2220 configure_file(tools/cmake/${_config}.cmake.in
2221 ${_config}.cmake @ONLY)
2222 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2223 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2224 )
2225endforeach()