blob: ff0927504aa54786a5a3233ab43324e233bd21db [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
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700261 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300262 include/grpc/impl/codegen/port_platform.h
263 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300264 include/grpc/impl/codegen/sync.h
265 include/grpc/impl/codegen/sync_generic.h
266 include/grpc/impl/codegen/sync_posix.h
267 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300268)
269 string(REPLACE "include/" "" _path ${_hdr})
270 get_filename_component(_path ${_path} PATH)
271 install(FILES ${_hdr}
272 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
273 )
274endforeach()
275
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200276
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300277if (gRPC_INSTALL)
278 install(TARGETS gpr EXPORT gRPCTargets
279 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
280 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
281 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
282 )
283endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300284
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200285
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100286add_library(grpc
287 src/core/lib/surface/init.c
288 src/core/lib/channel/channel_args.c
289 src/core/lib/channel/channel_stack.c
290 src/core/lib/channel/channel_stack_builder.c
291 src/core/lib/channel/compress_filter.c
292 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700293 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700294 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100295 src/core/lib/channel/http_client_filter.c
296 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700297 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100298 src/core/lib/compression/compression.c
299 src/core/lib/compression/message_compress.c
300 src/core/lib/debug/trace.c
301 src/core/lib/http/format_request.c
302 src/core/lib/http/httpcli.c
303 src/core/lib/http/parser.c
304 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700305 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100306 src/core/lib/iomgr/endpoint.c
307 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700308 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100309 src/core/lib/iomgr/endpoint_pair_windows.c
310 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200311 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100312 src/core/lib/iomgr/ev_poll_posix.c
313 src/core/lib/iomgr/ev_posix.c
314 src/core/lib/iomgr/exec_ctx.c
315 src/core/lib/iomgr/executor.c
316 src/core/lib/iomgr/iocp_windows.c
317 src/core/lib/iomgr/iomgr.c
318 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700319 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100320 src/core/lib/iomgr/iomgr_windows.c
321 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200322 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100323 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700324 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100325 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700326 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100327 src/core/lib/iomgr/pollset_windows.c
328 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700329 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100330 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700331 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100332 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700333 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100334 src/core/lib/iomgr/socket_utils_common_posix.c
335 src/core/lib/iomgr/socket_utils_linux.c
336 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700337 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700338 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100339 src/core/lib/iomgr/socket_windows.c
340 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700341 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100342 src/core/lib/iomgr/tcp_client_windows.c
343 src/core/lib/iomgr/tcp_posix.c
344 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700345 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100346 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700347 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100348 src/core/lib/iomgr/tcp_windows.c
349 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700350 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100351 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700352 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100353 src/core/lib/iomgr/udp_server.c
354 src/core/lib/iomgr/unix_sockets_posix.c
355 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700356 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100357 src/core/lib/iomgr/wakeup_fd_eventfd.c
358 src/core/lib/iomgr/wakeup_fd_nospecial.c
359 src/core/lib/iomgr/wakeup_fd_pipe.c
360 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700361 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100362 src/core/lib/iomgr/workqueue_windows.c
363 src/core/lib/json/json.c
364 src/core/lib/json/json_reader.c
365 src/core/lib/json/json_string.c
366 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700367 src/core/lib/slice/percent_encoding.c
368 src/core/lib/slice/slice.c
369 src/core/lib/slice/slice_buffer.c
370 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100371 src/core/lib/surface/alarm.c
372 src/core/lib/surface/api_trace.c
373 src/core/lib/surface/byte_buffer.c
374 src/core/lib/surface/byte_buffer_reader.c
375 src/core/lib/surface/call.c
376 src/core/lib/surface/call_details.c
377 src/core/lib/surface/call_log_batch.c
378 src/core/lib/surface/channel.c
379 src/core/lib/surface/channel_init.c
380 src/core/lib/surface/channel_ping.c
381 src/core/lib/surface/channel_stack_type.c
382 src/core/lib/surface/completion_queue.c
383 src/core/lib/surface/event_string.c
384 src/core/lib/surface/lame_client.c
385 src/core/lib/surface/metadata_array.c
386 src/core/lib/surface/server.c
387 src/core/lib/surface/validate_metadata.c
388 src/core/lib/surface/version.c
389 src/core/lib/transport/byte_stream.c
390 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700391 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100392 src/core/lib/transport/metadata.c
393 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700394 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700395 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100396 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400397 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100398 src/core/lib/transport/transport.c
399 src/core/lib/transport/transport_op_string.c
400 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
401 src/core/ext/transport/chttp2/transport/bin_decoder.c
402 src/core/ext/transport/chttp2/transport/bin_encoder.c
403 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
404 src/core/ext/transport/chttp2/transport/chttp2_transport.c
405 src/core/ext/transport/chttp2/transport/frame_data.c
406 src/core/ext/transport/chttp2/transport/frame_goaway.c
407 src/core/ext/transport/chttp2/transport/frame_ping.c
408 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
409 src/core/ext/transport/chttp2/transport/frame_settings.c
410 src/core/ext/transport/chttp2/transport/frame_window_update.c
411 src/core/ext/transport/chttp2/transport/hpack_encoder.c
412 src/core/ext/transport/chttp2/transport/hpack_parser.c
413 src/core/ext/transport/chttp2/transport/hpack_table.c
414 src/core/ext/transport/chttp2/transport/huffsyms.c
415 src/core/ext/transport/chttp2/transport/incoming_metadata.c
416 src/core/ext/transport/chttp2/transport/parsing.c
417 src/core/ext/transport/chttp2/transport/status_conversion.c
418 src/core/ext/transport/chttp2/transport/stream_lists.c
419 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100420 src/core/ext/transport/chttp2/transport/varint.c
421 src/core/ext/transport/chttp2/transport/writing.c
422 src/core/ext/transport/chttp2/alpn/alpn.c
423 src/core/lib/http/httpcli_security_connector.c
424 src/core/lib/security/context/security_context.c
425 src/core/lib/security/credentials/composite/composite_credentials.c
426 src/core/lib/security/credentials/credentials.c
427 src/core/lib/security/credentials/credentials_metadata.c
428 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700429 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100430 src/core/lib/security/credentials/google_default/google_default_credentials.c
431 src/core/lib/security/credentials/iam/iam_credentials.c
432 src/core/lib/security/credentials/jwt/json_token.c
433 src/core/lib/security/credentials/jwt/jwt_credentials.c
434 src/core/lib/security/credentials/jwt/jwt_verifier.c
435 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
436 src/core/lib/security/credentials/plugin/plugin_credentials.c
437 src/core/lib/security/credentials/ssl/ssl_credentials.c
438 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100439 src/core/lib/security/transport/secure_endpoint.c
440 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800441 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100442 src/core/lib/security/transport/server_auth_filter.c
443 src/core/lib/security/transport/tsi_error.c
444 src/core/lib/security/util/b64.c
445 src/core/lib/security/util/json_util.c
446 src/core/lib/surface/init_secure.c
447 src/core/lib/tsi/fake_transport_security.c
448 src/core/lib/tsi/ssl_transport_security.c
449 src/core/lib/tsi/transport_security.c
Mark D. Roth71403822016-12-02 10:51:39 -0800450 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100451 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700452 src/core/ext/client_channel/channel_connectivity.c
453 src/core/ext/client_channel/client_channel.c
454 src/core/ext/client_channel/client_channel_factory.c
455 src/core/ext/client_channel/client_channel_plugin.c
456 src/core/ext/client_channel/connector.c
457 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700458 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700459 src/core/ext/client_channel/initial_connect_string.c
460 src/core/ext/client_channel/lb_policy.c
461 src/core/ext/client_channel/lb_policy_factory.c
462 src/core/ext/client_channel/lb_policy_registry.c
463 src/core/ext/client_channel/parse_address.c
464 src/core/ext/client_channel/resolver.c
465 src/core/ext/client_channel/resolver_factory.c
466 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700467 src/core/ext/client_channel/subchannel.c
468 src/core/ext/client_channel/subchannel_index.c
469 src/core/ext/client_channel/uri_parser.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800470 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100471 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
472 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
473 src/core/ext/transport/chttp2/client/insecure/channel_create.c
474 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700475 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100476 src/core/ext/lb_policy/grpclb/load_balancer_api.c
477 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
478 third_party/nanopb/pb_common.c
479 third_party/nanopb/pb_decode.c
480 third_party/nanopb/pb_encode.c
481 src/core/ext/lb_policy/pick_first/pick_first.c
482 src/core/ext/lb_policy/round_robin/round_robin.c
483 src/core/ext/resolver/dns/native/dns_resolver.c
484 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
485 src/core/ext/load_reporting/load_reporting.c
486 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700487 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100488 src/core/ext/census/context.c
489 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700490 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100491 src/core/ext/census/grpc_context.c
492 src/core/ext/census/grpc_filter.c
493 src/core/ext/census/grpc_plugin.c
494 src/core/ext/census/initialize.c
495 src/core/ext/census/mlog.c
496 src/core/ext/census/operation.c
497 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700498 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700499 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100500 src/core/ext/census/tracing.c
501 src/core/plugin_registry/grpc_plugin_registry.c
502)
503
504target_include_directories(grpc
505 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
506 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
507 PRIVATE ${BORINGSSL_ROOT_DIR}/include
508 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300509 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100510 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
511)
512
513target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300514 ${_gRPC_BASELIB_LIBRARIES}
515 ${_gRPC_SSL_LIBRARIES}
516 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100517 gpr
518)
519
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300520foreach(_hdr
521 include/grpc/byte_buffer.h
522 include/grpc/byte_buffer_reader.h
523 include/grpc/compression.h
524 include/grpc/grpc.h
525 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200526 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700527 include/grpc/slice.h
528 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300529 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300530 include/grpc/impl/codegen/byte_buffer_reader.h
531 include/grpc/impl/codegen/compression_types.h
532 include/grpc/impl/codegen/connectivity_state.h
533 include/grpc/impl/codegen/grpc_types.h
534 include/grpc/impl/codegen/propagation_bits.h
535 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300536 include/grpc/impl/codegen/atm.h
537 include/grpc/impl/codegen/atm_gcc_atomic.h
538 include/grpc/impl/codegen/atm_gcc_sync.h
539 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700540 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300541 include/grpc/impl/codegen/port_platform.h
542 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300543 include/grpc/impl/codegen/sync.h
544 include/grpc/impl/codegen/sync_generic.h
545 include/grpc/impl/codegen/sync_posix.h
546 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300547 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300548 include/grpc/census.h
549)
550 string(REPLACE "include/" "" _path ${_hdr})
551 get_filename_component(_path ${_path} PATH)
552 install(FILES ${_hdr}
553 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
554 )
555endforeach()
556
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200557
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300558if (gRPC_INSTALL)
559 install(TARGETS grpc EXPORT gRPCTargets
560 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
561 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
562 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
563 )
564endif()
565
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200566
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100567add_library(grpc_cronet
568 src/core/lib/surface/init.c
569 src/core/lib/channel/channel_args.c
570 src/core/lib/channel/channel_stack.c
571 src/core/lib/channel/channel_stack_builder.c
572 src/core/lib/channel/compress_filter.c
573 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700574 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700575 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100576 src/core/lib/channel/http_client_filter.c
577 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700578 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100579 src/core/lib/compression/compression.c
580 src/core/lib/compression/message_compress.c
581 src/core/lib/debug/trace.c
582 src/core/lib/http/format_request.c
583 src/core/lib/http/httpcli.c
584 src/core/lib/http/parser.c
585 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700586 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100587 src/core/lib/iomgr/endpoint.c
588 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700589 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100590 src/core/lib/iomgr/endpoint_pair_windows.c
591 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200592 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100593 src/core/lib/iomgr/ev_poll_posix.c
594 src/core/lib/iomgr/ev_posix.c
595 src/core/lib/iomgr/exec_ctx.c
596 src/core/lib/iomgr/executor.c
597 src/core/lib/iomgr/iocp_windows.c
598 src/core/lib/iomgr/iomgr.c
599 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700600 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100601 src/core/lib/iomgr/iomgr_windows.c
602 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200603 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100604 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700605 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100606 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700607 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100608 src/core/lib/iomgr/pollset_windows.c
609 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700610 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100611 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700612 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100613 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700614 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100615 src/core/lib/iomgr/socket_utils_common_posix.c
616 src/core/lib/iomgr/socket_utils_linux.c
617 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700618 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700619 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100620 src/core/lib/iomgr/socket_windows.c
621 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700622 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100623 src/core/lib/iomgr/tcp_client_windows.c
624 src/core/lib/iomgr/tcp_posix.c
625 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700626 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100627 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700628 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100629 src/core/lib/iomgr/tcp_windows.c
630 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700631 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100632 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700633 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100634 src/core/lib/iomgr/udp_server.c
635 src/core/lib/iomgr/unix_sockets_posix.c
636 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700637 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100638 src/core/lib/iomgr/wakeup_fd_eventfd.c
639 src/core/lib/iomgr/wakeup_fd_nospecial.c
640 src/core/lib/iomgr/wakeup_fd_pipe.c
641 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700642 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100643 src/core/lib/iomgr/workqueue_windows.c
644 src/core/lib/json/json.c
645 src/core/lib/json/json_reader.c
646 src/core/lib/json/json_string.c
647 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700648 src/core/lib/slice/percent_encoding.c
649 src/core/lib/slice/slice.c
650 src/core/lib/slice/slice_buffer.c
651 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100652 src/core/lib/surface/alarm.c
653 src/core/lib/surface/api_trace.c
654 src/core/lib/surface/byte_buffer.c
655 src/core/lib/surface/byte_buffer_reader.c
656 src/core/lib/surface/call.c
657 src/core/lib/surface/call_details.c
658 src/core/lib/surface/call_log_batch.c
659 src/core/lib/surface/channel.c
660 src/core/lib/surface/channel_init.c
661 src/core/lib/surface/channel_ping.c
662 src/core/lib/surface/channel_stack_type.c
663 src/core/lib/surface/completion_queue.c
664 src/core/lib/surface/event_string.c
665 src/core/lib/surface/lame_client.c
666 src/core/lib/surface/metadata_array.c
667 src/core/lib/surface/server.c
668 src/core/lib/surface/validate_metadata.c
669 src/core/lib/surface/version.c
670 src/core/lib/transport/byte_stream.c
671 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700672 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100673 src/core/lib/transport/metadata.c
674 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700675 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700676 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100677 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400678 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100679 src/core/lib/transport/transport.c
680 src/core/lib/transport/transport_op_string.c
681 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
682 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
683 src/core/ext/transport/cronet/transport/cronet_transport.c
684 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
685 src/core/ext/transport/chttp2/transport/bin_decoder.c
686 src/core/ext/transport/chttp2/transport/bin_encoder.c
687 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
688 src/core/ext/transport/chttp2/transport/chttp2_transport.c
689 src/core/ext/transport/chttp2/transport/frame_data.c
690 src/core/ext/transport/chttp2/transport/frame_goaway.c
691 src/core/ext/transport/chttp2/transport/frame_ping.c
692 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
693 src/core/ext/transport/chttp2/transport/frame_settings.c
694 src/core/ext/transport/chttp2/transport/frame_window_update.c
695 src/core/ext/transport/chttp2/transport/hpack_encoder.c
696 src/core/ext/transport/chttp2/transport/hpack_parser.c
697 src/core/ext/transport/chttp2/transport/hpack_table.c
698 src/core/ext/transport/chttp2/transport/huffsyms.c
699 src/core/ext/transport/chttp2/transport/incoming_metadata.c
700 src/core/ext/transport/chttp2/transport/parsing.c
701 src/core/ext/transport/chttp2/transport/status_conversion.c
702 src/core/ext/transport/chttp2/transport/stream_lists.c
703 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100704 src/core/ext/transport/chttp2/transport/varint.c
705 src/core/ext/transport/chttp2/transport/writing.c
706 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700707 src/core/ext/client_channel/channel_connectivity.c
708 src/core/ext/client_channel/client_channel.c
709 src/core/ext/client_channel/client_channel_factory.c
710 src/core/ext/client_channel/client_channel_plugin.c
711 src/core/ext/client_channel/connector.c
712 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700713 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700714 src/core/ext/client_channel/initial_connect_string.c
715 src/core/ext/client_channel/lb_policy.c
716 src/core/ext/client_channel/lb_policy_factory.c
717 src/core/ext/client_channel/lb_policy_registry.c
718 src/core/ext/client_channel/parse_address.c
719 src/core/ext/client_channel/resolver.c
720 src/core/ext/client_channel/resolver_factory.c
721 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700722 src/core/ext/client_channel/subchannel.c
723 src/core/ext/client_channel/subchannel_index.c
724 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100725 src/core/lib/http/httpcli_security_connector.c
726 src/core/lib/security/context/security_context.c
727 src/core/lib/security/credentials/composite/composite_credentials.c
728 src/core/lib/security/credentials/credentials.c
729 src/core/lib/security/credentials/credentials_metadata.c
730 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700731 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100732 src/core/lib/security/credentials/google_default/google_default_credentials.c
733 src/core/lib/security/credentials/iam/iam_credentials.c
734 src/core/lib/security/credentials/jwt/json_token.c
735 src/core/lib/security/credentials/jwt/jwt_credentials.c
736 src/core/lib/security/credentials/jwt/jwt_verifier.c
737 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
738 src/core/lib/security/credentials/plugin/plugin_credentials.c
739 src/core/lib/security/credentials/ssl/ssl_credentials.c
740 src/core/lib/security/transport/client_auth_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100741 src/core/lib/security/transport/secure_endpoint.c
742 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800743 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100744 src/core/lib/security/transport/server_auth_filter.c
745 src/core/lib/security/transport/tsi_error.c
746 src/core/lib/security/util/b64.c
747 src/core/lib/security/util/json_util.c
748 src/core/lib/surface/init_secure.c
749 src/core/lib/tsi/fake_transport_security.c
750 src/core/lib/tsi/ssl_transport_security.c
751 src/core/lib/tsi/transport_security.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800752 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100753 src/core/plugin_registry/grpc_cronet_plugin_registry.c
754)
755
756target_include_directories(grpc_cronet
757 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
758 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
759 PRIVATE ${BORINGSSL_ROOT_DIR}/include
760 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300761 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100762 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
763)
764
765target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300766 ${_gRPC_BASELIB_LIBRARIES}
767 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100768 gpr
769)
770
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300771foreach(_hdr
772 include/grpc/byte_buffer.h
773 include/grpc/byte_buffer_reader.h
774 include/grpc/compression.h
775 include/grpc/grpc.h
776 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200777 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -0700778 include/grpc/slice.h
779 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300780 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300781 include/grpc/impl/codegen/byte_buffer_reader.h
782 include/grpc/impl/codegen/compression_types.h
783 include/grpc/impl/codegen/connectivity_state.h
784 include/grpc/impl/codegen/grpc_types.h
785 include/grpc/impl/codegen/propagation_bits.h
786 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300787 include/grpc/impl/codegen/atm.h
788 include/grpc/impl/codegen/atm_gcc_atomic.h
789 include/grpc/impl/codegen/atm_gcc_sync.h
790 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700791 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300792 include/grpc/impl/codegen/port_platform.h
793 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300794 include/grpc/impl/codegen/sync.h
795 include/grpc/impl/codegen/sync_generic.h
796 include/grpc/impl/codegen/sync_posix.h
797 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300798 include/grpc/grpc_cronet.h
799 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300800)
801 string(REPLACE "include/" "" _path ${_hdr})
802 get_filename_component(_path ${_path} PATH)
803 install(FILES ${_hdr}
804 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
805 )
806endforeach()
807
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200808
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300809if (gRPC_INSTALL)
810 install(TARGETS grpc_cronet EXPORT gRPCTargets
811 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
812 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
813 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
814 )
815endif()
816
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200817
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100818add_library(grpc_unsecure
819 src/core/lib/surface/init.c
820 src/core/lib/surface/init_unsecure.c
821 src/core/lib/channel/channel_args.c
822 src/core/lib/channel/channel_stack.c
823 src/core/lib/channel/channel_stack_builder.c
824 src/core/lib/channel/compress_filter.c
825 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700826 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700827 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100828 src/core/lib/channel/http_client_filter.c
829 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700830 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100831 src/core/lib/compression/compression.c
832 src/core/lib/compression/message_compress.c
833 src/core/lib/debug/trace.c
834 src/core/lib/http/format_request.c
835 src/core/lib/http/httpcli.c
836 src/core/lib/http/parser.c
837 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700838 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100839 src/core/lib/iomgr/endpoint.c
840 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700841 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100842 src/core/lib/iomgr/endpoint_pair_windows.c
843 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200844 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100845 src/core/lib/iomgr/ev_poll_posix.c
846 src/core/lib/iomgr/ev_posix.c
847 src/core/lib/iomgr/exec_ctx.c
848 src/core/lib/iomgr/executor.c
849 src/core/lib/iomgr/iocp_windows.c
850 src/core/lib/iomgr/iomgr.c
851 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700852 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100853 src/core/lib/iomgr/iomgr_windows.c
854 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200855 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100856 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700857 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100858 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700859 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100860 src/core/lib/iomgr/pollset_windows.c
861 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700862 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100863 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700864 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100865 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700866 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100867 src/core/lib/iomgr/socket_utils_common_posix.c
868 src/core/lib/iomgr/socket_utils_linux.c
869 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700870 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700871 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100872 src/core/lib/iomgr/socket_windows.c
873 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700874 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100875 src/core/lib/iomgr/tcp_client_windows.c
876 src/core/lib/iomgr/tcp_posix.c
877 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700878 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100879 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700880 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100881 src/core/lib/iomgr/tcp_windows.c
882 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700883 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100884 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700885 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100886 src/core/lib/iomgr/udp_server.c
887 src/core/lib/iomgr/unix_sockets_posix.c
888 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700889 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100890 src/core/lib/iomgr/wakeup_fd_eventfd.c
891 src/core/lib/iomgr/wakeup_fd_nospecial.c
892 src/core/lib/iomgr/wakeup_fd_pipe.c
893 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700894 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100895 src/core/lib/iomgr/workqueue_windows.c
896 src/core/lib/json/json.c
897 src/core/lib/json/json_reader.c
898 src/core/lib/json/json_string.c
899 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700900 src/core/lib/slice/percent_encoding.c
901 src/core/lib/slice/slice.c
902 src/core/lib/slice/slice_buffer.c
903 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100904 src/core/lib/surface/alarm.c
905 src/core/lib/surface/api_trace.c
906 src/core/lib/surface/byte_buffer.c
907 src/core/lib/surface/byte_buffer_reader.c
908 src/core/lib/surface/call.c
909 src/core/lib/surface/call_details.c
910 src/core/lib/surface/call_log_batch.c
911 src/core/lib/surface/channel.c
912 src/core/lib/surface/channel_init.c
913 src/core/lib/surface/channel_ping.c
914 src/core/lib/surface/channel_stack_type.c
915 src/core/lib/surface/completion_queue.c
916 src/core/lib/surface/event_string.c
917 src/core/lib/surface/lame_client.c
918 src/core/lib/surface/metadata_array.c
919 src/core/lib/surface/server.c
920 src/core/lib/surface/validate_metadata.c
921 src/core/lib/surface/version.c
922 src/core/lib/transport/byte_stream.c
923 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700924 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100925 src/core/lib/transport/metadata.c
926 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700927 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700928 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100929 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400930 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100931 src/core/lib/transport/transport.c
932 src/core/lib/transport/transport_op_string.c
933 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
934 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
935 src/core/ext/transport/chttp2/transport/bin_decoder.c
936 src/core/ext/transport/chttp2/transport/bin_encoder.c
937 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
938 src/core/ext/transport/chttp2/transport/chttp2_transport.c
939 src/core/ext/transport/chttp2/transport/frame_data.c
940 src/core/ext/transport/chttp2/transport/frame_goaway.c
941 src/core/ext/transport/chttp2/transport/frame_ping.c
942 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
943 src/core/ext/transport/chttp2/transport/frame_settings.c
944 src/core/ext/transport/chttp2/transport/frame_window_update.c
945 src/core/ext/transport/chttp2/transport/hpack_encoder.c
946 src/core/ext/transport/chttp2/transport/hpack_parser.c
947 src/core/ext/transport/chttp2/transport/hpack_table.c
948 src/core/ext/transport/chttp2/transport/huffsyms.c
949 src/core/ext/transport/chttp2/transport/incoming_metadata.c
950 src/core/ext/transport/chttp2/transport/parsing.c
951 src/core/ext/transport/chttp2/transport/status_conversion.c
952 src/core/ext/transport/chttp2/transport/stream_lists.c
953 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100954 src/core/ext/transport/chttp2/transport/varint.c
955 src/core/ext/transport/chttp2/transport/writing.c
956 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth71403822016-12-02 10:51:39 -0800957 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100958 src/core/ext/transport/chttp2/client/insecure/channel_create.c
959 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -0800960 src/core/ext/transport/chttp2/client/chttp2_connector.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700961 src/core/ext/client_channel/channel_connectivity.c
962 src/core/ext/client_channel/client_channel.c
963 src/core/ext/client_channel/client_channel_factory.c
964 src/core/ext/client_channel/client_channel_plugin.c
965 src/core/ext/client_channel/connector.c
966 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700967 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700968 src/core/ext/client_channel/initial_connect_string.c
969 src/core/ext/client_channel/lb_policy.c
970 src/core/ext/client_channel/lb_policy_factory.c
971 src/core/ext/client_channel/lb_policy_registry.c
972 src/core/ext/client_channel/parse_address.c
973 src/core/ext/client_channel/resolver.c
974 src/core/ext/client_channel/resolver_factory.c
975 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700976 src/core/ext/client_channel/subchannel.c
977 src/core/ext/client_channel/subchannel_index.c
978 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100979 src/core/ext/resolver/dns/native/dns_resolver.c
980 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
981 src/core/ext/load_reporting/load_reporting.c
982 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700983 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100984 src/core/ext/lb_policy/grpclb/load_balancer_api.c
985 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
986 third_party/nanopb/pb_common.c
987 third_party/nanopb/pb_decode.c
988 third_party/nanopb/pb_encode.c
989 src/core/ext/lb_policy/pick_first/pick_first.c
990 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700991 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100992 src/core/ext/census/context.c
993 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700994 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100995 src/core/ext/census/grpc_context.c
996 src/core/ext/census/grpc_filter.c
997 src/core/ext/census/grpc_plugin.c
998 src/core/ext/census/initialize.c
999 src/core/ext/census/mlog.c
1000 src/core/ext/census/operation.c
1001 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001002 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001003 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001004 src/core/ext/census/tracing.c
1005 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
1006)
1007
1008target_include_directories(grpc_unsecure
1009 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1010 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1011 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1012 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001013 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001014 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1015)
1016
1017target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001018 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001019 gpr
1020)
1021
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001022foreach(_hdr
1023 include/grpc/byte_buffer.h
1024 include/grpc/byte_buffer_reader.h
1025 include/grpc/compression.h
1026 include/grpc/grpc.h
1027 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001028 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001029 include/grpc/slice.h
1030 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001031 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001032 include/grpc/impl/codegen/byte_buffer_reader.h
1033 include/grpc/impl/codegen/compression_types.h
1034 include/grpc/impl/codegen/connectivity_state.h
1035 include/grpc/impl/codegen/grpc_types.h
1036 include/grpc/impl/codegen/propagation_bits.h
1037 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001038 include/grpc/impl/codegen/atm.h
1039 include/grpc/impl/codegen/atm_gcc_atomic.h
1040 include/grpc/impl/codegen/atm_gcc_sync.h
1041 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001042 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001043 include/grpc/impl/codegen/port_platform.h
1044 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001045 include/grpc/impl/codegen/sync.h
1046 include/grpc/impl/codegen/sync_generic.h
1047 include/grpc/impl/codegen/sync_posix.h
1048 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001049 include/grpc/census.h
1050)
1051 string(REPLACE "include/" "" _path ${_hdr})
1052 get_filename_component(_path ${_path} PATH)
1053 install(FILES ${_hdr}
1054 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1055 )
1056endforeach()
1057
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001058
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001059if (gRPC_INSTALL)
1060 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1061 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1062 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1063 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1064 )
1065endif()
1066
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001067
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001068add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001069 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001070 src/cpp/client/secure_credentials.cc
1071 src/cpp/common/auth_property_iterator.cc
1072 src/cpp/common/secure_auth_context.cc
1073 src/cpp/common/secure_channel_arguments.cc
1074 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001075 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001076 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001077 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001078 src/cpp/client/client_context.cc
1079 src/cpp/client/create_channel.cc
1080 src/cpp/client/create_channel_internal.cc
1081 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001082 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001083 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001084 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001085 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001086 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001087 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001088 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001089 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001090 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001091 src/cpp/server/async_generic_service.cc
1092 src/cpp/server/create_default_thread_pool.cc
1093 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001094 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001095 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001096 src/cpp/server/server_context.cc
1097 src/cpp/server/server_credentials.cc
1098 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001099 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001100 src/cpp/util/byte_buffer_cc.cc
1101 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001102 src/cpp/util/status.cc
1103 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001104 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001105 src/cpp/codegen/codegen_init.cc
1106)
1107
1108target_include_directories(grpc++
1109 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1110 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1111 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1112 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001113 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001114 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1115)
1116
1117target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001118 ${_gRPC_BASELIB_LIBRARIES}
1119 ${_gRPC_SSL_LIBRARIES}
1120 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001121 grpc
1122)
1123
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001124foreach(_hdr
1125 include/grpc++/alarm.h
1126 include/grpc++/channel.h
1127 include/grpc++/client_context.h
1128 include/grpc++/completion_queue.h
1129 include/grpc++/create_channel.h
1130 include/grpc++/create_channel_posix.h
1131 include/grpc++/generic/async_generic_service.h
1132 include/grpc++/generic/generic_stub.h
1133 include/grpc++/grpc++.h
1134 include/grpc++/impl/call.h
1135 include/grpc++/impl/client_unary_call.h
1136 include/grpc++/impl/codegen/core_codegen.h
1137 include/grpc++/impl/grpc_library.h
1138 include/grpc++/impl/method_handler_impl.h
1139 include/grpc++/impl/rpc_method.h
1140 include/grpc++/impl/rpc_service_method.h
1141 include/grpc++/impl/serialization_traits.h
1142 include/grpc++/impl/server_builder_option.h
1143 include/grpc++/impl/server_builder_plugin.h
1144 include/grpc++/impl/server_initializer.h
1145 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001146 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001147 include/grpc++/security/auth_context.h
1148 include/grpc++/security/auth_metadata_processor.h
1149 include/grpc++/security/credentials.h
1150 include/grpc++/security/server_credentials.h
1151 include/grpc++/server.h
1152 include/grpc++/server_builder.h
1153 include/grpc++/server_context.h
1154 include/grpc++/server_posix.h
1155 include/grpc++/support/async_stream.h
1156 include/grpc++/support/async_unary_call.h
1157 include/grpc++/support/byte_buffer.h
1158 include/grpc++/support/channel_arguments.h
1159 include/grpc++/support/config.h
1160 include/grpc++/support/slice.h
1161 include/grpc++/support/status.h
1162 include/grpc++/support/status_code_enum.h
1163 include/grpc++/support/string_ref.h
1164 include/grpc++/support/stub_options.h
1165 include/grpc++/support/sync_stream.h
1166 include/grpc++/support/time.h
1167 include/grpc++/impl/codegen/async_stream.h
1168 include/grpc++/impl/codegen/async_unary_call.h
1169 include/grpc++/impl/codegen/call.h
1170 include/grpc++/impl/codegen/call_hook.h
1171 include/grpc++/impl/codegen/channel_interface.h
1172 include/grpc++/impl/codegen/client_context.h
1173 include/grpc++/impl/codegen/client_unary_call.h
1174 include/grpc++/impl/codegen/completion_queue.h
1175 include/grpc++/impl/codegen/completion_queue_tag.h
1176 include/grpc++/impl/codegen/config.h
1177 include/grpc++/impl/codegen/core_codegen_interface.h
1178 include/grpc++/impl/codegen/create_auth_context.h
1179 include/grpc++/impl/codegen/grpc_library.h
1180 include/grpc++/impl/codegen/method_handler_impl.h
1181 include/grpc++/impl/codegen/rpc_method.h
1182 include/grpc++/impl/codegen/rpc_service_method.h
1183 include/grpc++/impl/codegen/security/auth_context.h
1184 include/grpc++/impl/codegen/serialization_traits.h
1185 include/grpc++/impl/codegen/server_context.h
1186 include/grpc++/impl/codegen/server_interface.h
1187 include/grpc++/impl/codegen/service_type.h
1188 include/grpc++/impl/codegen/status.h
1189 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001190 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001191 include/grpc++/impl/codegen/string_ref.h
1192 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001193 include/grpc++/impl/codegen/sync_stream.h
1194 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001195 include/grpc/impl/codegen/byte_buffer_reader.h
1196 include/grpc/impl/codegen/compression_types.h
1197 include/grpc/impl/codegen/connectivity_state.h
1198 include/grpc/impl/codegen/grpc_types.h
1199 include/grpc/impl/codegen/propagation_bits.h
1200 include/grpc/impl/codegen/status.h
1201 include/grpc/impl/codegen/atm.h
1202 include/grpc/impl/codegen/atm_gcc_atomic.h
1203 include/grpc/impl/codegen/atm_gcc_sync.h
1204 include/grpc/impl/codegen/atm_windows.h
1205 include/grpc/impl/codegen/gpr_types.h
1206 include/grpc/impl/codegen/port_platform.h
1207 include/grpc/impl/codegen/slice.h
1208 include/grpc/impl/codegen/sync.h
1209 include/grpc/impl/codegen/sync_generic.h
1210 include/grpc/impl/codegen/sync_posix.h
1211 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001212)
1213 string(REPLACE "include/" "" _path ${_hdr})
1214 get_filename_component(_path ${_path} PATH)
1215 install(FILES ${_hdr}
1216 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1217 )
1218endforeach()
1219
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001220
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001221if (gRPC_INSTALL)
1222 install(TARGETS grpc++ EXPORT gRPCTargets
1223 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1224 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1225 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1226 )
1227endif()
1228
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001229
Garrett Casto931a26b2016-10-04 09:18:29 -07001230add_library(grpc++_cronet
1231 src/cpp/client/cronet_credentials.cc
1232 src/cpp/client/insecure_credentials.cc
1233 src/cpp/common/insecure_create_auth_context.cc
1234 src/cpp/server/insecure_server_credentials.cc
1235 src/cpp/client/channel_cc.cc
1236 src/cpp/client/client_context.cc
1237 src/cpp/client/create_channel.cc
1238 src/cpp/client/create_channel_internal.cc
1239 src/cpp/client/create_channel_posix.cc
1240 src/cpp/client/credentials_cc.cc
1241 src/cpp/client/generic_stub.cc
1242 src/cpp/common/channel_arguments.cc
1243 src/cpp/common/channel_filter.cc
1244 src/cpp/common/completion_queue_cc.cc
1245 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07001246 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001247 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001248 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001249 src/cpp/server/async_generic_service.cc
1250 src/cpp/server/create_default_thread_pool.cc
1251 src/cpp/server/dynamic_thread_pool.cc
1252 src/cpp/server/server_builder.cc
1253 src/cpp/server/server_cc.cc
1254 src/cpp/server/server_context.cc
1255 src/cpp/server/server_credentials.cc
1256 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07001257 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001258 src/cpp/util/byte_buffer_cc.cc
1259 src/cpp/util/slice_cc.cc
1260 src/cpp/util/status.cc
1261 src/cpp/util/string_ref.cc
1262 src/cpp/util/time_cc.cc
1263 src/cpp/codegen/codegen_init.cc
ncteisen3770ac92016-11-28 11:02:41 -08001264 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1265 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08001266 src/core/ext/transport/chttp2/client/chttp2_connector.c
ncteisen3770ac92016-11-28 11:02:41 -08001267 src/core/ext/transport/chttp2/transport/bin_decoder.c
1268 src/core/ext/transport/chttp2/transport/bin_encoder.c
1269 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1270 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1271 src/core/ext/transport/chttp2/transport/frame_data.c
1272 src/core/ext/transport/chttp2/transport/frame_goaway.c
1273 src/core/ext/transport/chttp2/transport/frame_ping.c
1274 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1275 src/core/ext/transport/chttp2/transport/frame_settings.c
1276 src/core/ext/transport/chttp2/transport/frame_window_update.c
1277 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1278 src/core/ext/transport/chttp2/transport/hpack_parser.c
1279 src/core/ext/transport/chttp2/transport/hpack_table.c
1280 src/core/ext/transport/chttp2/transport/huffsyms.c
1281 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1282 src/core/ext/transport/chttp2/transport/parsing.c
1283 src/core/ext/transport/chttp2/transport/status_conversion.c
1284 src/core/ext/transport/chttp2/transport/stream_lists.c
1285 src/core/ext/transport/chttp2/transport/stream_map.c
1286 src/core/ext/transport/chttp2/transport/varint.c
1287 src/core/ext/transport/chttp2/transport/writing.c
1288 src/core/lib/channel/channel_args.c
1289 src/core/lib/channel/channel_stack.c
1290 src/core/lib/channel/channel_stack_builder.c
1291 src/core/lib/channel/compress_filter.c
1292 src/core/lib/channel/connected_channel.c
1293 src/core/lib/channel/deadline_filter.c
1294 src/core/lib/channel/handshaker.c
1295 src/core/lib/channel/http_client_filter.c
1296 src/core/lib/channel/http_server_filter.c
1297 src/core/lib/channel/message_size_filter.c
1298 src/core/lib/compression/compression.c
1299 src/core/lib/compression/message_compress.c
1300 src/core/lib/debug/trace.c
1301 src/core/lib/http/format_request.c
1302 src/core/lib/http/httpcli.c
1303 src/core/lib/http/parser.c
1304 src/core/lib/iomgr/closure.c
1305 src/core/lib/iomgr/combiner.c
1306 src/core/lib/iomgr/endpoint.c
1307 src/core/lib/iomgr/endpoint_pair_posix.c
1308 src/core/lib/iomgr/endpoint_pair_uv.c
1309 src/core/lib/iomgr/endpoint_pair_windows.c
1310 src/core/lib/iomgr/error.c
1311 src/core/lib/iomgr/ev_epoll_linux.c
1312 src/core/lib/iomgr/ev_poll_posix.c
1313 src/core/lib/iomgr/ev_posix.c
1314 src/core/lib/iomgr/exec_ctx.c
1315 src/core/lib/iomgr/executor.c
1316 src/core/lib/iomgr/iocp_windows.c
1317 src/core/lib/iomgr/iomgr.c
1318 src/core/lib/iomgr/iomgr_posix.c
1319 src/core/lib/iomgr/iomgr_uv.c
1320 src/core/lib/iomgr/iomgr_windows.c
1321 src/core/lib/iomgr/load_file.c
1322 src/core/lib/iomgr/network_status_tracker.c
1323 src/core/lib/iomgr/polling_entity.c
1324 src/core/lib/iomgr/pollset_set_uv.c
1325 src/core/lib/iomgr/pollset_set_windows.c
1326 src/core/lib/iomgr/pollset_uv.c
1327 src/core/lib/iomgr/pollset_windows.c
1328 src/core/lib/iomgr/resolve_address_posix.c
1329 src/core/lib/iomgr/resolve_address_uv.c
1330 src/core/lib/iomgr/resolve_address_windows.c
1331 src/core/lib/iomgr/resource_quota.c
1332 src/core/lib/iomgr/sockaddr_utils.c
1333 src/core/lib/iomgr/socket_mutator.c
1334 src/core/lib/iomgr/socket_utils_common_posix.c
1335 src/core/lib/iomgr/socket_utils_linux.c
1336 src/core/lib/iomgr/socket_utils_posix.c
1337 src/core/lib/iomgr/socket_utils_uv.c
1338 src/core/lib/iomgr/socket_utils_windows.c
1339 src/core/lib/iomgr/socket_windows.c
1340 src/core/lib/iomgr/tcp_client_posix.c
1341 src/core/lib/iomgr/tcp_client_uv.c
1342 src/core/lib/iomgr/tcp_client_windows.c
1343 src/core/lib/iomgr/tcp_posix.c
1344 src/core/lib/iomgr/tcp_server_posix.c
1345 src/core/lib/iomgr/tcp_server_uv.c
1346 src/core/lib/iomgr/tcp_server_windows.c
1347 src/core/lib/iomgr/tcp_uv.c
1348 src/core/lib/iomgr/tcp_windows.c
1349 src/core/lib/iomgr/time_averaged_stats.c
1350 src/core/lib/iomgr/timer_generic.c
1351 src/core/lib/iomgr/timer_heap.c
1352 src/core/lib/iomgr/timer_uv.c
1353 src/core/lib/iomgr/udp_server.c
1354 src/core/lib/iomgr/unix_sockets_posix.c
1355 src/core/lib/iomgr/unix_sockets_posix_noop.c
1356 src/core/lib/iomgr/wakeup_fd_cv.c
1357 src/core/lib/iomgr/wakeup_fd_eventfd.c
1358 src/core/lib/iomgr/wakeup_fd_nospecial.c
1359 src/core/lib/iomgr/wakeup_fd_pipe.c
1360 src/core/lib/iomgr/wakeup_fd_posix.c
1361 src/core/lib/iomgr/workqueue_uv.c
1362 src/core/lib/iomgr/workqueue_windows.c
1363 src/core/lib/json/json.c
1364 src/core/lib/json/json_reader.c
1365 src/core/lib/json/json_string.c
1366 src/core/lib/json/json_writer.c
1367 src/core/lib/slice/percent_encoding.c
1368 src/core/lib/slice/slice.c
1369 src/core/lib/slice/slice_buffer.c
1370 src/core/lib/slice/slice_string_helpers.c
1371 src/core/lib/surface/alarm.c
1372 src/core/lib/surface/api_trace.c
1373 src/core/lib/surface/byte_buffer.c
1374 src/core/lib/surface/byte_buffer_reader.c
1375 src/core/lib/surface/call.c
1376 src/core/lib/surface/call_details.c
1377 src/core/lib/surface/call_log_batch.c
1378 src/core/lib/surface/channel.c
1379 src/core/lib/surface/channel_init.c
1380 src/core/lib/surface/channel_ping.c
1381 src/core/lib/surface/channel_stack_type.c
1382 src/core/lib/surface/completion_queue.c
1383 src/core/lib/surface/event_string.c
1384 src/core/lib/surface/lame_client.c
1385 src/core/lib/surface/metadata_array.c
1386 src/core/lib/surface/server.c
1387 src/core/lib/surface/validate_metadata.c
1388 src/core/lib/surface/version.c
1389 src/core/lib/transport/byte_stream.c
1390 src/core/lib/transport/connectivity_state.c
1391 src/core/lib/transport/mdstr_hash_table.c
1392 src/core/lib/transport/metadata.c
1393 src/core/lib/transport/metadata_batch.c
1394 src/core/lib/transport/pid_controller.c
1395 src/core/lib/transport/service_config.c
1396 src/core/lib/transport/static_metadata.c
1397 src/core/lib/transport/timeout_encoding.c
1398 src/core/lib/transport/transport.c
1399 src/core/lib/transport/transport_op_string.c
1400 src/core/ext/transport/chttp2/alpn/alpn.c
1401 src/core/ext/client_channel/channel_connectivity.c
1402 src/core/ext/client_channel/client_channel.c
1403 src/core/ext/client_channel/client_channel_factory.c
1404 src/core/ext/client_channel/client_channel_plugin.c
1405 src/core/ext/client_channel/connector.c
1406 src/core/ext/client_channel/default_initial_connect_string.c
1407 src/core/ext/client_channel/http_connect_handshaker.c
1408 src/core/ext/client_channel/initial_connect_string.c
1409 src/core/ext/client_channel/lb_policy.c
1410 src/core/ext/client_channel/lb_policy_factory.c
1411 src/core/ext/client_channel/lb_policy_registry.c
1412 src/core/ext/client_channel/parse_address.c
1413 src/core/ext/client_channel/resolver.c
1414 src/core/ext/client_channel/resolver_factory.c
1415 src/core/ext/client_channel/resolver_registry.c
1416 src/core/ext/client_channel/subchannel.c
1417 src/core/ext/client_channel/subchannel_index.c
1418 src/core/ext/client_channel/uri_parser.c
1419 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1420 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08001421 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08001422 src/core/ext/census/base_resources.c
1423 src/core/ext/census/context.c
1424 src/core/ext/census/gen/census.pb.c
1425 src/core/ext/census/gen/trace_context.pb.c
1426 src/core/ext/census/grpc_context.c
1427 src/core/ext/census/grpc_filter.c
1428 src/core/ext/census/grpc_plugin.c
1429 src/core/ext/census/initialize.c
1430 src/core/ext/census/mlog.c
1431 src/core/ext/census/operation.c
1432 src/core/ext/census/placeholders.c
1433 src/core/ext/census/resource.c
1434 src/core/ext/census/trace_context.c
1435 src/core/ext/census/tracing.c
1436 third_party/nanopb/pb_common.c
1437 third_party/nanopb/pb_decode.c
1438 third_party/nanopb/pb_encode.c
Garrett Casto931a26b2016-10-04 09:18:29 -07001439)
1440
1441target_include_directories(grpc++_cronet
1442 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1443 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1444 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1445 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1446 PRIVATE ${ZLIB_INCLUDE_DIR}
1447 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1448)
1449
1450target_link_libraries(grpc++_cronet
1451 ${_gRPC_BASELIB_LIBRARIES}
1452 ${_gRPC_SSL_LIBRARIES}
1453 gpr
1454 grpc_cronet
1455)
1456
1457foreach(_hdr
1458 include/grpc++/alarm.h
1459 include/grpc++/channel.h
1460 include/grpc++/client_context.h
1461 include/grpc++/completion_queue.h
1462 include/grpc++/create_channel.h
1463 include/grpc++/create_channel_posix.h
1464 include/grpc++/generic/async_generic_service.h
1465 include/grpc++/generic/generic_stub.h
1466 include/grpc++/grpc++.h
1467 include/grpc++/impl/call.h
1468 include/grpc++/impl/client_unary_call.h
1469 include/grpc++/impl/codegen/core_codegen.h
1470 include/grpc++/impl/grpc_library.h
1471 include/grpc++/impl/method_handler_impl.h
1472 include/grpc++/impl/rpc_method.h
1473 include/grpc++/impl/rpc_service_method.h
1474 include/grpc++/impl/serialization_traits.h
1475 include/grpc++/impl/server_builder_option.h
1476 include/grpc++/impl/server_builder_plugin.h
1477 include/grpc++/impl/server_initializer.h
1478 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07001479 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001480 include/grpc++/security/auth_context.h
1481 include/grpc++/security/auth_metadata_processor.h
1482 include/grpc++/security/credentials.h
1483 include/grpc++/security/server_credentials.h
1484 include/grpc++/server.h
1485 include/grpc++/server_builder.h
1486 include/grpc++/server_context.h
1487 include/grpc++/server_posix.h
1488 include/grpc++/support/async_stream.h
1489 include/grpc++/support/async_unary_call.h
1490 include/grpc++/support/byte_buffer.h
1491 include/grpc++/support/channel_arguments.h
1492 include/grpc++/support/config.h
1493 include/grpc++/support/slice.h
1494 include/grpc++/support/status.h
1495 include/grpc++/support/status_code_enum.h
1496 include/grpc++/support/string_ref.h
1497 include/grpc++/support/stub_options.h
1498 include/grpc++/support/sync_stream.h
1499 include/grpc++/support/time.h
1500 include/grpc++/impl/codegen/async_stream.h
1501 include/grpc++/impl/codegen/async_unary_call.h
1502 include/grpc++/impl/codegen/call.h
1503 include/grpc++/impl/codegen/call_hook.h
1504 include/grpc++/impl/codegen/channel_interface.h
1505 include/grpc++/impl/codegen/client_context.h
1506 include/grpc++/impl/codegen/client_unary_call.h
1507 include/grpc++/impl/codegen/completion_queue.h
1508 include/grpc++/impl/codegen/completion_queue_tag.h
1509 include/grpc++/impl/codegen/config.h
1510 include/grpc++/impl/codegen/core_codegen_interface.h
1511 include/grpc++/impl/codegen/create_auth_context.h
1512 include/grpc++/impl/codegen/grpc_library.h
1513 include/grpc++/impl/codegen/method_handler_impl.h
1514 include/grpc++/impl/codegen/rpc_method.h
1515 include/grpc++/impl/codegen/rpc_service_method.h
1516 include/grpc++/impl/codegen/security/auth_context.h
1517 include/grpc++/impl/codegen/serialization_traits.h
1518 include/grpc++/impl/codegen/server_context.h
1519 include/grpc++/impl/codegen/server_interface.h
1520 include/grpc++/impl/codegen/service_type.h
1521 include/grpc++/impl/codegen/status.h
1522 include/grpc++/impl/codegen/status_code_enum.h
1523 include/grpc++/impl/codegen/status_helper.h
1524 include/grpc++/impl/codegen/string_ref.h
1525 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001526 include/grpc++/impl/codegen/sync_stream.h
1527 include/grpc++/impl/codegen/time.h
1528 include/grpc/impl/codegen/byte_buffer_reader.h
1529 include/grpc/impl/codegen/compression_types.h
1530 include/grpc/impl/codegen/connectivity_state.h
1531 include/grpc/impl/codegen/grpc_types.h
1532 include/grpc/impl/codegen/propagation_bits.h
1533 include/grpc/impl/codegen/status.h
1534 include/grpc/impl/codegen/atm.h
1535 include/grpc/impl/codegen/atm_gcc_atomic.h
1536 include/grpc/impl/codegen/atm_gcc_sync.h
1537 include/grpc/impl/codegen/atm_windows.h
1538 include/grpc/impl/codegen/gpr_types.h
1539 include/grpc/impl/codegen/port_platform.h
1540 include/grpc/impl/codegen/slice.h
1541 include/grpc/impl/codegen/sync.h
1542 include/grpc/impl/codegen/sync_generic.h
1543 include/grpc/impl/codegen/sync_posix.h
1544 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08001545 include/grpc/byte_buffer.h
1546 include/grpc/byte_buffer_reader.h
1547 include/grpc/compression.h
1548 include/grpc/grpc.h
1549 include/grpc/grpc_posix.h
1550 include/grpc/grpc_security_constants.h
1551 include/grpc/slice.h
1552 include/grpc/slice_buffer.h
1553 include/grpc/status.h
1554 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001555)
1556 string(REPLACE "include/" "" _path ${_hdr})
1557 get_filename_component(_path ${_path} PATH)
1558 install(FILES ${_hdr}
1559 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1560 )
1561endforeach()
1562
1563
1564if (gRPC_INSTALL)
1565 install(TARGETS grpc++_cronet EXPORT gRPCTargets
1566 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1567 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1568 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1569 )
1570endif()
1571
1572
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001573add_library(grpc++_reflection
1574 src/cpp/ext/proto_server_reflection.cc
1575 src/cpp/ext/proto_server_reflection_plugin.cc
Yuchen Zeng169c9852016-10-14 15:58:09 -07001576 src/proto/grpc/reflection/v1alpha/reflection.proto
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001577)
1578
1579target_include_directories(grpc++_reflection
1580 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1581 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1582 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1583 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001584 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001585 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1586)
1587
1588target_link_libraries(grpc++_reflection
1589 grpc++
1590)
1591
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001592foreach(_hdr
1593 include/grpc++/ext/proto_server_reflection_plugin.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001594)
1595 string(REPLACE "include/" "" _path ${_hdr})
1596 get_filename_component(_path ${_path} PATH)
1597 install(FILES ${_hdr}
1598 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1599 )
1600endforeach()
1601
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001602
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001603if (gRPC_INSTALL)
1604 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1605 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1606 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1607 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1608 )
1609endif()
1610
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001611
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001612add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001613 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001614 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001615 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001616 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001617 src/cpp/client/client_context.cc
1618 src/cpp/client/create_channel.cc
1619 src/cpp/client/create_channel_internal.cc
1620 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001621 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001622 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001623 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001624 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001625 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001626 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001627 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001628 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001629 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001630 src/cpp/server/async_generic_service.cc
1631 src/cpp/server/create_default_thread_pool.cc
1632 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001633 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001634 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001635 src/cpp/server/server_context.cc
1636 src/cpp/server/server_credentials.cc
1637 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001638 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001639 src/cpp/util/byte_buffer_cc.cc
1640 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001641 src/cpp/util/status.cc
1642 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001643 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001644 src/cpp/codegen/codegen_init.cc
1645)
1646
1647target_include_directories(grpc++_unsecure
1648 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1649 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1650 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1651 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001652 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001653 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1654)
1655
1656target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001657 ${_gRPC_BASELIB_LIBRARIES}
1658 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001659 gpr
1660 grpc_unsecure
1661)
1662
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001663foreach(_hdr
1664 include/grpc++/alarm.h
1665 include/grpc++/channel.h
1666 include/grpc++/client_context.h
1667 include/grpc++/completion_queue.h
1668 include/grpc++/create_channel.h
1669 include/grpc++/create_channel_posix.h
1670 include/grpc++/generic/async_generic_service.h
1671 include/grpc++/generic/generic_stub.h
1672 include/grpc++/grpc++.h
1673 include/grpc++/impl/call.h
1674 include/grpc++/impl/client_unary_call.h
1675 include/grpc++/impl/codegen/core_codegen.h
1676 include/grpc++/impl/grpc_library.h
1677 include/grpc++/impl/method_handler_impl.h
1678 include/grpc++/impl/rpc_method.h
1679 include/grpc++/impl/rpc_service_method.h
1680 include/grpc++/impl/serialization_traits.h
1681 include/grpc++/impl/server_builder_option.h
1682 include/grpc++/impl/server_builder_plugin.h
1683 include/grpc++/impl/server_initializer.h
1684 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001685 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001686 include/grpc++/security/auth_context.h
1687 include/grpc++/security/auth_metadata_processor.h
1688 include/grpc++/security/credentials.h
1689 include/grpc++/security/server_credentials.h
1690 include/grpc++/server.h
1691 include/grpc++/server_builder.h
1692 include/grpc++/server_context.h
1693 include/grpc++/server_posix.h
1694 include/grpc++/support/async_stream.h
1695 include/grpc++/support/async_unary_call.h
1696 include/grpc++/support/byte_buffer.h
1697 include/grpc++/support/channel_arguments.h
1698 include/grpc++/support/config.h
1699 include/grpc++/support/slice.h
1700 include/grpc++/support/status.h
1701 include/grpc++/support/status_code_enum.h
1702 include/grpc++/support/string_ref.h
1703 include/grpc++/support/stub_options.h
1704 include/grpc++/support/sync_stream.h
1705 include/grpc++/support/time.h
1706 include/grpc++/impl/codegen/async_stream.h
1707 include/grpc++/impl/codegen/async_unary_call.h
1708 include/grpc++/impl/codegen/call.h
1709 include/grpc++/impl/codegen/call_hook.h
1710 include/grpc++/impl/codegen/channel_interface.h
1711 include/grpc++/impl/codegen/client_context.h
1712 include/grpc++/impl/codegen/client_unary_call.h
1713 include/grpc++/impl/codegen/completion_queue.h
1714 include/grpc++/impl/codegen/completion_queue_tag.h
1715 include/grpc++/impl/codegen/config.h
1716 include/grpc++/impl/codegen/core_codegen_interface.h
1717 include/grpc++/impl/codegen/create_auth_context.h
1718 include/grpc++/impl/codegen/grpc_library.h
1719 include/grpc++/impl/codegen/method_handler_impl.h
1720 include/grpc++/impl/codegen/rpc_method.h
1721 include/grpc++/impl/codegen/rpc_service_method.h
1722 include/grpc++/impl/codegen/security/auth_context.h
1723 include/grpc++/impl/codegen/serialization_traits.h
1724 include/grpc++/impl/codegen/server_context.h
1725 include/grpc++/impl/codegen/server_interface.h
1726 include/grpc++/impl/codegen/service_type.h
1727 include/grpc++/impl/codegen/status.h
1728 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001729 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001730 include/grpc++/impl/codegen/string_ref.h
1731 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001732 include/grpc++/impl/codegen/sync_stream.h
1733 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001734 include/grpc/impl/codegen/byte_buffer_reader.h
1735 include/grpc/impl/codegen/compression_types.h
1736 include/grpc/impl/codegen/connectivity_state.h
1737 include/grpc/impl/codegen/grpc_types.h
1738 include/grpc/impl/codegen/propagation_bits.h
1739 include/grpc/impl/codegen/status.h
1740 include/grpc/impl/codegen/atm.h
1741 include/grpc/impl/codegen/atm_gcc_atomic.h
1742 include/grpc/impl/codegen/atm_gcc_sync.h
1743 include/grpc/impl/codegen/atm_windows.h
1744 include/grpc/impl/codegen/gpr_types.h
1745 include/grpc/impl/codegen/port_platform.h
1746 include/grpc/impl/codegen/slice.h
1747 include/grpc/impl/codegen/sync.h
1748 include/grpc/impl/codegen/sync_generic.h
1749 include/grpc/impl/codegen/sync_posix.h
1750 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001751)
1752 string(REPLACE "include/" "" _path ${_hdr})
1753 get_filename_component(_path ${_path} PATH)
1754 install(FILES ${_hdr}
1755 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1756 )
1757endforeach()
1758
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001759
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001760if (gRPC_INSTALL)
1761 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1762 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1763 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1764 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1765 )
1766endif()
1767
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001768
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001769add_library(grpc_plugin_support
1770 src/compiler/cpp_generator.cc
1771 src/compiler/csharp_generator.cc
1772 src/compiler/node_generator.cc
1773 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07001774 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001775 src/compiler/python_generator.cc
1776 src/compiler/ruby_generator.cc
1777)
1778
1779target_include_directories(grpc_plugin_support
1780 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1781 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1782 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1783 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001784 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001785 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1786)
1787
1788target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001789 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001790)
1791
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001792foreach(_hdr
1793 include/grpc++/impl/codegen/config_protobuf.h
1794)
1795 string(REPLACE "include/" "" _path ${_hdr})
1796 get_filename_component(_path ${_path} PATH)
1797 install(FILES ${_hdr}
1798 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1799 )
1800endforeach()
1801
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001802
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001803if (gRPC_INSTALL)
1804 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1805 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1806 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1807 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1808 )
1809endif()
1810
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001811
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001812add_library(grpc_csharp_ext
1813 src/csharp/ext/grpc_csharp_ext.c
1814)
1815
1816target_include_directories(grpc_csharp_ext
1817 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1818 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1819 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1820 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001821 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001822 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1823)
1824
1825target_link_libraries(grpc_csharp_ext
1826 grpc
1827 gpr
1828)
1829
1830
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001831
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001832if (gRPC_INSTALL)
1833 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1834 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1835 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1836 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1837 )
1838endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001839
1840
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001841
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001842add_executable(gen_hpack_tables
1843 tools/codegen/core/gen_hpack_tables.c
1844)
1845
1846target_include_directories(gen_hpack_tables
1847 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1848 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1849 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1850 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1851 PRIVATE ${ZLIB_ROOT_DIR}
1852 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1853)
1854
1855target_link_libraries(gen_hpack_tables
1856 gpr
1857 grpc
1858)
1859
1860
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001861if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001862 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1863 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1864 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1865 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1866 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001867endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001868
1869
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001870add_executable(gen_legal_metadata_characters
1871 tools/codegen/core/gen_legal_metadata_characters.c
1872)
1873
1874target_include_directories(gen_legal_metadata_characters
1875 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1876 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1877 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1878 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1879 PRIVATE ${ZLIB_ROOT_DIR}
1880 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1881)
1882
1883
1884
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001885if (gRPC_INSTALL)
1886 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1887 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1888 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1889 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1890 )
1891endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001892
1893
Craig Tiller1c7a8422016-08-18 11:13:11 -07001894add_executable(gen_percent_encoding_tables
1895 tools/codegen/core/gen_percent_encoding_tables.c
1896)
1897
1898target_include_directories(gen_percent_encoding_tables
1899 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1900 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1901 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1902 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1903 PRIVATE ${ZLIB_ROOT_DIR}
1904 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1905)
1906
1907
1908
Craig Tiller426dcde2016-09-07 15:43:10 -07001909if (gRPC_INSTALL)
1910 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1911 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1912 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1913 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1914 )
1915endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001916
1917
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001918add_executable(grpc_create_jwt
1919 test/core/security/create_jwt.c
1920)
1921
1922target_include_directories(grpc_create_jwt
1923 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1924 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1925 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1926 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1927 PRIVATE ${ZLIB_ROOT_DIR}
1928 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1929)
1930
1931target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001932 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001933 grpc
1934 gpr
1935)
1936
1937
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001938if (gRPC_INSTALL)
1939 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1940 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1941 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1942 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1943 )
1944endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001945
1946
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001947add_executable(grpc_print_google_default_creds_token
1948 test/core/security/print_google_default_creds_token.c
1949)
1950
1951target_include_directories(grpc_print_google_default_creds_token
1952 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1953 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1954 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1955 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1956 PRIVATE ${ZLIB_ROOT_DIR}
1957 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1958)
1959
1960target_link_libraries(grpc_print_google_default_creds_token
1961 grpc
1962 gpr
1963)
1964
1965
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001966if (gRPC_INSTALL)
1967 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1968 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1969 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1970 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1971 )
1972endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001973
1974
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001975add_executable(grpc_verify_jwt
1976 test/core/security/verify_jwt.c
1977)
1978
1979target_include_directories(grpc_verify_jwt
1980 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1981 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1982 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1983 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1984 PRIVATE ${ZLIB_ROOT_DIR}
1985 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1986)
1987
1988target_link_libraries(grpc_verify_jwt
1989 grpc
1990 gpr
1991)
1992
1993
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001994if (gRPC_INSTALL)
1995 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1996 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1997 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1998 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1999 )
2000endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002001
2002
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002003add_executable(grpc_cpp_plugin
2004 src/compiler/cpp_plugin.cc
2005)
2006
2007target_include_directories(grpc_cpp_plugin
2008 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2009 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2010 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2011 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2012 PRIVATE ${ZLIB_ROOT_DIR}
2013 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2014)
2015
2016target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002017 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002018 grpc_plugin_support
2019)
2020
2021
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002022if (gRPC_INSTALL)
2023 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
2024 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2025 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2026 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2027 )
2028endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002029
2030
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002031add_executable(grpc_csharp_plugin
2032 src/compiler/csharp_plugin.cc
2033)
2034
2035target_include_directories(grpc_csharp_plugin
2036 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2037 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2038 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2039 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2040 PRIVATE ${ZLIB_ROOT_DIR}
2041 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2042)
2043
2044target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002045 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002046 grpc_plugin_support
2047)
2048
2049
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002050if (gRPC_INSTALL)
2051 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
2052 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2053 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2054 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2055 )
2056endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002057
2058
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002059add_executable(grpc_node_plugin
2060 src/compiler/node_plugin.cc
2061)
2062
2063target_include_directories(grpc_node_plugin
2064 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2065 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2066 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2067 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2068 PRIVATE ${ZLIB_ROOT_DIR}
2069 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2070)
2071
2072target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002073 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002074 grpc_plugin_support
2075)
2076
2077
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002078if (gRPC_INSTALL)
2079 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
2080 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2081 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2082 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2083 )
2084endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002085
2086
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002087add_executable(grpc_objective_c_plugin
2088 src/compiler/objective_c_plugin.cc
2089)
2090
2091target_include_directories(grpc_objective_c_plugin
2092 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2093 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2094 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2095 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2096 PRIVATE ${ZLIB_ROOT_DIR}
2097 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2098)
2099
2100target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002101 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002102 grpc_plugin_support
2103)
2104
2105
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002106if (gRPC_INSTALL)
2107 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
2108 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2109 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2110 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2111 )
2112endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002113
2114
Stanley Cheung857a1302016-09-29 17:26:29 -07002115add_executable(grpc_php_plugin
2116 src/compiler/php_plugin.cc
2117)
2118
2119target_include_directories(grpc_php_plugin
2120 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2121 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2122 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2123 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2124 PRIVATE ${ZLIB_ROOT_DIR}
2125 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2126)
2127
2128target_link_libraries(grpc_php_plugin
2129 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
2130 grpc_plugin_support
2131)
2132
2133
2134if (gRPC_INSTALL)
2135 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
2136 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2137 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2138 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2139 )
2140endif()
2141
2142
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002143add_executable(grpc_python_plugin
2144 src/compiler/python_plugin.cc
2145)
2146
2147target_include_directories(grpc_python_plugin
2148 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2149 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2150 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2151 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2152 PRIVATE ${ZLIB_ROOT_DIR}
2153 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2154)
2155
2156target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002157 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002158 grpc_plugin_support
2159)
2160
2161
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002162if (gRPC_INSTALL)
2163 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
2164 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2165 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2166 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2167 )
2168endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002169
2170
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002171add_executable(grpc_ruby_plugin
2172 src/compiler/ruby_plugin.cc
2173)
2174
2175target_include_directories(grpc_ruby_plugin
2176 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2177 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2178 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2179 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2180 PRIVATE ${ZLIB_ROOT_DIR}
2181 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2182)
2183
2184target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002185 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002186 grpc_plugin_support
2187)
2188
2189
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002190if (gRPC_INSTALL)
2191 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2192 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2193 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2194 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2195 )
2196endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002197
2198
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002199
2200
2201
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002202
2203
2204
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002205if (gRPC_INSTALL)
2206 install(EXPORT gRPCTargets
2207 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2208 NAMESPACE gRPC::
2209 )
2210endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002211
2212foreach(_config gRPCConfig gRPCConfigVersion)
2213 configure_file(tools/cmake/${_config}.cmake.in
2214 ${_config}.cmake @ONLY)
2215 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2216 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2217 )
2218endforeach()