blob: e04e64a0fdadc7fdfa7d4619116699d670028aaf [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, Google Inc.
12# All rights reserved.
13#
14# Redistribution and use in source and binary forms, with or without
15# modification, are permitted provided that the following conditions are
16# met:
17#
18# * Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# * Redistributions in binary form must reproduce the above
21# copyright notice, this list of conditions and the following disclaimer
22# in the documentation and/or other materials provided with the
23# distribution.
24# * Neither the name of Google Inc. nor the names of its
25# contributors may be used to endorse or promote products derived from
26# this software without specific prior written permission.
27#
28# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
Nicolas "Pixel" Noble49bfb922016-07-12 09:31:41 +020045set(PACKAGE_VERSION "1.1.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030051if (NOT MSVC)
52 set(gRPC_INSTALL ON CACHE BOOL "Generate installation target")
53else()
54 set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target")
55endif()
56
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030057set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
58set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010059
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
61set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010062
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030063set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
64set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010065
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010067
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030068if (MSVC)
69 add_definitions( -D_WIN32_WINNT=0x600 )
70endif()
71
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030072if (gRPC_USE_PROTO_LITE)
73 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010074 add_definitions("-DGRPC_USE_PROTO_LITE")
75else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030076 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010077endif()
78
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030079if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
80 if(NOT ZLIB_ROOT_DIR)
81 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
82 endif()
83 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
84 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
85 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
86 if(TARGET zlibstatic)
87 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
88 endif()
89 else()
90 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
91 endif()
92elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
93 find_package(ZLIB)
94 if(TARGET ZLIB::ZLIB)
95 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
96 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +030097 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010098endif()
99
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300100if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
101 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
102 # Disable them unless they are explicitly requested from the cmake command line (when we assume
103 # gmock is downloaded to the right location inside protobuf).
104 if(NOT protobuf_BUILD_TESTS)
105 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
106 endif()
107 if(NOT PROTOBUF_ROOT_DIR)
108 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
109 endif()
110 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300111 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300112 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
113 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
114 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
115 endif()
116 if(TARGET libprotoc)
117 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
118 endif()
119 else()
120 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
121 endif()
122elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
123 find_package(protobuf CONFIG)
124 if(protobuf_FOUND)
125 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
126 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
127 endif()
128 if(TARGET protobuf::libprotoc)
129 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
130 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300131 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300132 else()
133 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300134 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300135 endif()
136endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100137
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300138if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
139 if(NOT BORINGSSL_ROOT_DIR)
140 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
141 endif()
142 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
143 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
144 if(TARGET ssl)
145 set(_gRPC_SSL_LIBRARIES ssl)
146 endif()
147 else()
148 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
149 endif()
150elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
151 find_package(OpenSSL)
152 if(TARGET OpenSSL::SSL)
153 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
154 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300155 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300156endif()
157
158if(NOT MSVC)
159 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
160 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
161endif()
162
163if(WIN32 AND MSVC)
164 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100165endif()
166
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300167include(GNUInstallDirs)
168if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
169 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
170endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100171
172
173add_library(gpr
174 src/core/lib/profiling/basic_timers.c
175 src/core/lib/profiling/stap_timers.c
176 src/core/lib/support/alloc.c
177 src/core/lib/support/avl.c
178 src/core/lib/support/backoff.c
179 src/core/lib/support/cmdline.c
180 src/core/lib/support/cpu_iphone.c
181 src/core/lib/support/cpu_linux.c
182 src/core/lib/support/cpu_posix.c
183 src/core/lib/support/cpu_windows.c
184 src/core/lib/support/env_linux.c
185 src/core/lib/support/env_posix.c
186 src/core/lib/support/env_windows.c
187 src/core/lib/support/histogram.c
188 src/core/lib/support/host_port.c
189 src/core/lib/support/log.c
190 src/core/lib/support/log_android.c
191 src/core/lib/support/log_linux.c
192 src/core/lib/support/log_posix.c
193 src/core/lib/support/log_windows.c
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
Craig Tiller17ed6b12016-08-18 09:33:33 -0700196 src/core/lib/support/percent_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100197 src/core/lib/support/slice.c
198 src/core/lib/support/slice_buffer.c
199 src/core/lib/support/stack_lockfree.c
200 src/core/lib/support/string.c
201 src/core/lib/support/string_posix.c
202 src/core/lib/support/string_util_windows.c
203 src/core/lib/support/string_windows.c
204 src/core/lib/support/subprocess_posix.c
205 src/core/lib/support/subprocess_windows.c
206 src/core/lib/support/sync.c
207 src/core/lib/support/sync_posix.c
208 src/core/lib/support/sync_windows.c
209 src/core/lib/support/thd.c
210 src/core/lib/support/thd_posix.c
211 src/core/lib/support/thd_windows.c
212 src/core/lib/support/time.c
213 src/core/lib/support/time_posix.c
214 src/core/lib/support/time_precise.c
215 src/core/lib/support/time_windows.c
216 src/core/lib/support/tls_pthread.c
217 src/core/lib/support/tmpfile_msys.c
218 src/core/lib/support/tmpfile_posix.c
219 src/core/lib/support/tmpfile_windows.c
220 src/core/lib/support/wrap_memcpy.c
221)
222
223target_include_directories(gpr
224 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
225 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
226 PRIVATE ${BORINGSSL_ROOT_DIR}/include
227 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300228 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100229 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
230)
231
232
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300233foreach(_hdr
234 include/grpc/support/alloc.h
235 include/grpc/support/atm.h
236 include/grpc/support/atm_gcc_atomic.h
237 include/grpc/support/atm_gcc_sync.h
238 include/grpc/support/atm_windows.h
239 include/grpc/support/avl.h
240 include/grpc/support/cmdline.h
241 include/grpc/support/cpu.h
242 include/grpc/support/histogram.h
243 include/grpc/support/host_port.h
244 include/grpc/support/log.h
245 include/grpc/support/log_windows.h
246 include/grpc/support/port_platform.h
247 include/grpc/support/slice.h
248 include/grpc/support/slice_buffer.h
249 include/grpc/support/string_util.h
250 include/grpc/support/subprocess.h
251 include/grpc/support/sync.h
252 include/grpc/support/sync_generic.h
253 include/grpc/support/sync_posix.h
254 include/grpc/support/sync_windows.h
255 include/grpc/support/thd.h
256 include/grpc/support/time.h
257 include/grpc/support/tls.h
258 include/grpc/support/tls_gcc.h
259 include/grpc/support/tls_msvc.h
260 include/grpc/support/tls_pthread.h
261 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300262 include/grpc/impl/codegen/atm.h
263 include/grpc/impl/codegen/atm_gcc_atomic.h
264 include/grpc/impl/codegen/atm_gcc_sync.h
265 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700266 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300267 include/grpc/impl/codegen/port_platform.h
268 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300269 include/grpc/impl/codegen/sync.h
270 include/grpc/impl/codegen/sync_generic.h
271 include/grpc/impl/codegen/sync_posix.h
272 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300273)
274 string(REPLACE "include/" "" _path ${_hdr})
275 get_filename_component(_path ${_path} PATH)
276 install(FILES ${_hdr}
277 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
278 )
279endforeach()
280
281
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300282if (gRPC_INSTALL)
283 install(TARGETS gpr EXPORT gRPCTargets
284 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
285 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
286 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
287 )
288endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300289
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100290
291add_library(grpc
292 src/core/lib/surface/init.c
293 src/core/lib/channel/channel_args.c
294 src/core/lib/channel/channel_stack.c
295 src/core/lib/channel/channel_stack_builder.c
296 src/core/lib/channel/compress_filter.c
297 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700298 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700299 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100300 src/core/lib/channel/http_client_filter.c
301 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700302 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100303 src/core/lib/compression/compression.c
304 src/core/lib/compression/message_compress.c
305 src/core/lib/debug/trace.c
306 src/core/lib/http/format_request.c
307 src/core/lib/http/httpcli.c
308 src/core/lib/http/parser.c
309 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700310 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100311 src/core/lib/iomgr/endpoint.c
312 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700313 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100314 src/core/lib/iomgr/endpoint_pair_windows.c
315 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200316 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100317 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
318 src/core/lib/iomgr/ev_poll_posix.c
319 src/core/lib/iomgr/ev_posix.c
320 src/core/lib/iomgr/exec_ctx.c
321 src/core/lib/iomgr/executor.c
322 src/core/lib/iomgr/iocp_windows.c
323 src/core/lib/iomgr/iomgr.c
324 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700325 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100326 src/core/lib/iomgr/iomgr_windows.c
327 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200328 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100329 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700330 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100331 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700332 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100333 src/core/lib/iomgr/pollset_windows.c
334 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700335 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100336 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700337 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100338 src/core/lib/iomgr/sockaddr_utils.c
339 src/core/lib/iomgr/socket_utils_common_posix.c
340 src/core/lib/iomgr/socket_utils_linux.c
341 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700342 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700343 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100344 src/core/lib/iomgr/socket_windows.c
345 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700346 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100347 src/core/lib/iomgr/tcp_client_windows.c
348 src/core/lib/iomgr/tcp_posix.c
349 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700350 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100351 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700352 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100353 src/core/lib/iomgr/tcp_windows.c
354 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700355 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100356 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700357 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100358 src/core/lib/iomgr/udp_server.c
359 src/core/lib/iomgr/unix_sockets_posix.c
360 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700361 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100362 src/core/lib/iomgr/wakeup_fd_eventfd.c
363 src/core/lib/iomgr/wakeup_fd_nospecial.c
364 src/core/lib/iomgr/wakeup_fd_pipe.c
365 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700366 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100367 src/core/lib/iomgr/workqueue_windows.c
368 src/core/lib/json/json.c
369 src/core/lib/json/json_reader.c
370 src/core/lib/json/json_string.c
371 src/core/lib/json/json_writer.c
372 src/core/lib/surface/alarm.c
373 src/core/lib/surface/api_trace.c
374 src/core/lib/surface/byte_buffer.c
375 src/core/lib/surface/byte_buffer_reader.c
376 src/core/lib/surface/call.c
377 src/core/lib/surface/call_details.c
378 src/core/lib/surface/call_log_batch.c
379 src/core/lib/surface/channel.c
380 src/core/lib/surface/channel_init.c
381 src/core/lib/surface/channel_ping.c
382 src/core/lib/surface/channel_stack_type.c
383 src/core/lib/surface/completion_queue.c
384 src/core/lib/surface/event_string.c
385 src/core/lib/surface/lame_client.c
386 src/core/lib/surface/metadata_array.c
387 src/core/lib/surface/server.c
388 src/core/lib/surface/validate_metadata.c
389 src/core/lib/surface/version.c
390 src/core/lib/transport/byte_stream.c
391 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700392 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100393 src/core/lib/transport/metadata.c
394 src/core/lib/transport/metadata_batch.c
Mark D. Rothbfe56802016-10-26 12:45:20 -0700395 src/core/lib/transport/method_config.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700396 src/core/lib/transport/pid_controller.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100397 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400398 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100399 src/core/lib/transport/transport.c
400 src/core/lib/transport/transport_op_string.c
401 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
402 src/core/ext/transport/chttp2/transport/bin_decoder.c
403 src/core/ext/transport/chttp2/transport/bin_encoder.c
404 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
405 src/core/ext/transport/chttp2/transport/chttp2_transport.c
406 src/core/ext/transport/chttp2/transport/frame_data.c
407 src/core/ext/transport/chttp2/transport/frame_goaway.c
408 src/core/ext/transport/chttp2/transport/frame_ping.c
409 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
410 src/core/ext/transport/chttp2/transport/frame_settings.c
411 src/core/ext/transport/chttp2/transport/frame_window_update.c
412 src/core/ext/transport/chttp2/transport/hpack_encoder.c
413 src/core/ext/transport/chttp2/transport/hpack_parser.c
414 src/core/ext/transport/chttp2/transport/hpack_table.c
415 src/core/ext/transport/chttp2/transport/huffsyms.c
416 src/core/ext/transport/chttp2/transport/incoming_metadata.c
417 src/core/ext/transport/chttp2/transport/parsing.c
418 src/core/ext/transport/chttp2/transport/status_conversion.c
419 src/core/ext/transport/chttp2/transport/stream_lists.c
420 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100421 src/core/ext/transport/chttp2/transport/varint.c
422 src/core/ext/transport/chttp2/transport/writing.c
423 src/core/ext/transport/chttp2/alpn/alpn.c
424 src/core/lib/http/httpcli_security_connector.c
425 src/core/lib/security/context/security_context.c
426 src/core/lib/security/credentials/composite/composite_credentials.c
427 src/core/lib/security/credentials/credentials.c
428 src/core/lib/security/credentials/credentials_metadata.c
429 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700430 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100431 src/core/lib/security/credentials/google_default/google_default_credentials.c
432 src/core/lib/security/credentials/iam/iam_credentials.c
433 src/core/lib/security/credentials/jwt/json_token.c
434 src/core/lib/security/credentials/jwt/jwt_credentials.c
435 src/core/lib/security/credentials/jwt/jwt_verifier.c
436 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
437 src/core/lib/security/credentials/plugin/plugin_credentials.c
438 src/core/lib/security/credentials/ssl/ssl_credentials.c
439 src/core/lib/security/transport/client_auth_filter.c
440 src/core/lib/security/transport/handshake.c
441 src/core/lib/security/transport/secure_endpoint.c
442 src/core/lib/security/transport/security_connector.c
443 src/core/lib/security/transport/server_auth_filter.c
444 src/core/lib/security/transport/tsi_error.c
445 src/core/lib/security/util/b64.c
446 src/core/lib/security/util/json_util.c
447 src/core/lib/surface/init_secure.c
448 src/core/lib/tsi/fake_transport_security.c
449 src/core/lib/tsi/ssl_transport_security.c
450 src/core/lib/tsi/transport_security.c
451 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
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100470 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
471 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
472 src/core/ext/transport/chttp2/client/insecure/channel_create.c
473 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700474 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100475 src/core/ext/lb_policy/grpclb/load_balancer_api.c
476 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
477 third_party/nanopb/pb_common.c
478 third_party/nanopb/pb_decode.c
479 third_party/nanopb/pb_encode.c
480 src/core/ext/lb_policy/pick_first/pick_first.c
481 src/core/ext/lb_policy/round_robin/round_robin.c
482 src/core/ext/resolver/dns/native/dns_resolver.c
483 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
484 src/core/ext/load_reporting/load_reporting.c
485 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700486 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100487 src/core/ext/census/context.c
488 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700489 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100490 src/core/ext/census/grpc_context.c
491 src/core/ext/census/grpc_filter.c
492 src/core/ext/census/grpc_plugin.c
493 src/core/ext/census/initialize.c
494 src/core/ext/census/mlog.c
495 src/core/ext/census/operation.c
496 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700497 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700498 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100499 src/core/ext/census/tracing.c
500 src/core/plugin_registry/grpc_plugin_registry.c
501)
502
503target_include_directories(grpc
504 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
505 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
506 PRIVATE ${BORINGSSL_ROOT_DIR}/include
507 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300508 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100509 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
510)
511
512target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300513 ${_gRPC_BASELIB_LIBRARIES}
514 ${_gRPC_SSL_LIBRARIES}
515 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100516 gpr
517)
518
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300519foreach(_hdr
520 include/grpc/byte_buffer.h
521 include/grpc/byte_buffer_reader.h
522 include/grpc/compression.h
523 include/grpc/grpc.h
524 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200525 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300526 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300527 include/grpc/impl/codegen/byte_buffer_reader.h
528 include/grpc/impl/codegen/compression_types.h
529 include/grpc/impl/codegen/connectivity_state.h
530 include/grpc/impl/codegen/grpc_types.h
531 include/grpc/impl/codegen/propagation_bits.h
532 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300533 include/grpc/impl/codegen/atm.h
534 include/grpc/impl/codegen/atm_gcc_atomic.h
535 include/grpc/impl/codegen/atm_gcc_sync.h
536 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700537 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300538 include/grpc/impl/codegen/port_platform.h
539 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300540 include/grpc/impl/codegen/sync.h
541 include/grpc/impl/codegen/sync_generic.h
542 include/grpc/impl/codegen/sync_posix.h
543 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300544 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300545 include/grpc/census.h
546)
547 string(REPLACE "include/" "" _path ${_hdr})
548 get_filename_component(_path ${_path} PATH)
549 install(FILES ${_hdr}
550 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
551 )
552endforeach()
553
554
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300555if (gRPC_INSTALL)
556 install(TARGETS grpc EXPORT gRPCTargets
557 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
558 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
559 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
560 )
561endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300562
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100563
564add_library(grpc_cronet
565 src/core/lib/surface/init.c
566 src/core/lib/channel/channel_args.c
567 src/core/lib/channel/channel_stack.c
568 src/core/lib/channel/channel_stack_builder.c
569 src/core/lib/channel/compress_filter.c
570 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700571 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700572 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100573 src/core/lib/channel/http_client_filter.c
574 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700575 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100576 src/core/lib/compression/compression.c
577 src/core/lib/compression/message_compress.c
578 src/core/lib/debug/trace.c
579 src/core/lib/http/format_request.c
580 src/core/lib/http/httpcli.c
581 src/core/lib/http/parser.c
582 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700583 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100584 src/core/lib/iomgr/endpoint.c
585 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700586 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100587 src/core/lib/iomgr/endpoint_pair_windows.c
588 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200589 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100590 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
591 src/core/lib/iomgr/ev_poll_posix.c
592 src/core/lib/iomgr/ev_posix.c
593 src/core/lib/iomgr/exec_ctx.c
594 src/core/lib/iomgr/executor.c
595 src/core/lib/iomgr/iocp_windows.c
596 src/core/lib/iomgr/iomgr.c
597 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700598 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100599 src/core/lib/iomgr/iomgr_windows.c
600 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200601 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100602 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700603 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100604 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700605 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100606 src/core/lib/iomgr/pollset_windows.c
607 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700608 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100609 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700610 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100611 src/core/lib/iomgr/sockaddr_utils.c
612 src/core/lib/iomgr/socket_utils_common_posix.c
613 src/core/lib/iomgr/socket_utils_linux.c
614 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700615 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700616 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100617 src/core/lib/iomgr/socket_windows.c
618 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700619 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100620 src/core/lib/iomgr/tcp_client_windows.c
621 src/core/lib/iomgr/tcp_posix.c
622 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700623 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100624 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700625 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100626 src/core/lib/iomgr/tcp_windows.c
627 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700628 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100629 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700630 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100631 src/core/lib/iomgr/udp_server.c
632 src/core/lib/iomgr/unix_sockets_posix.c
633 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700634 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100635 src/core/lib/iomgr/wakeup_fd_eventfd.c
636 src/core/lib/iomgr/wakeup_fd_nospecial.c
637 src/core/lib/iomgr/wakeup_fd_pipe.c
638 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700639 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100640 src/core/lib/iomgr/workqueue_windows.c
641 src/core/lib/json/json.c
642 src/core/lib/json/json_reader.c
643 src/core/lib/json/json_string.c
644 src/core/lib/json/json_writer.c
645 src/core/lib/surface/alarm.c
646 src/core/lib/surface/api_trace.c
647 src/core/lib/surface/byte_buffer.c
648 src/core/lib/surface/byte_buffer_reader.c
649 src/core/lib/surface/call.c
650 src/core/lib/surface/call_details.c
651 src/core/lib/surface/call_log_batch.c
652 src/core/lib/surface/channel.c
653 src/core/lib/surface/channel_init.c
654 src/core/lib/surface/channel_ping.c
655 src/core/lib/surface/channel_stack_type.c
656 src/core/lib/surface/completion_queue.c
657 src/core/lib/surface/event_string.c
658 src/core/lib/surface/lame_client.c
659 src/core/lib/surface/metadata_array.c
660 src/core/lib/surface/server.c
661 src/core/lib/surface/validate_metadata.c
662 src/core/lib/surface/version.c
663 src/core/lib/transport/byte_stream.c
664 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700665 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100666 src/core/lib/transport/metadata.c
667 src/core/lib/transport/metadata_batch.c
Mark D. Rothbfe56802016-10-26 12:45:20 -0700668 src/core/lib/transport/method_config.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700669 src/core/lib/transport/pid_controller.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100670 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400671 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100672 src/core/lib/transport/transport.c
673 src/core/lib/transport/transport_op_string.c
674 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
675 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
676 src/core/ext/transport/cronet/transport/cronet_transport.c
677 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
678 src/core/ext/transport/chttp2/transport/bin_decoder.c
679 src/core/ext/transport/chttp2/transport/bin_encoder.c
680 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
681 src/core/ext/transport/chttp2/transport/chttp2_transport.c
682 src/core/ext/transport/chttp2/transport/frame_data.c
683 src/core/ext/transport/chttp2/transport/frame_goaway.c
684 src/core/ext/transport/chttp2/transport/frame_ping.c
685 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
686 src/core/ext/transport/chttp2/transport/frame_settings.c
687 src/core/ext/transport/chttp2/transport/frame_window_update.c
688 src/core/ext/transport/chttp2/transport/hpack_encoder.c
689 src/core/ext/transport/chttp2/transport/hpack_parser.c
690 src/core/ext/transport/chttp2/transport/hpack_table.c
691 src/core/ext/transport/chttp2/transport/huffsyms.c
692 src/core/ext/transport/chttp2/transport/incoming_metadata.c
693 src/core/ext/transport/chttp2/transport/parsing.c
694 src/core/ext/transport/chttp2/transport/status_conversion.c
695 src/core/ext/transport/chttp2/transport/stream_lists.c
696 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100697 src/core/ext/transport/chttp2/transport/varint.c
698 src/core/ext/transport/chttp2/transport/writing.c
699 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700700 src/core/ext/client_channel/channel_connectivity.c
701 src/core/ext/client_channel/client_channel.c
702 src/core/ext/client_channel/client_channel_factory.c
703 src/core/ext/client_channel/client_channel_plugin.c
704 src/core/ext/client_channel/connector.c
705 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700706 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700707 src/core/ext/client_channel/initial_connect_string.c
708 src/core/ext/client_channel/lb_policy.c
709 src/core/ext/client_channel/lb_policy_factory.c
710 src/core/ext/client_channel/lb_policy_registry.c
711 src/core/ext/client_channel/parse_address.c
712 src/core/ext/client_channel/resolver.c
713 src/core/ext/client_channel/resolver_factory.c
714 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700715 src/core/ext/client_channel/subchannel.c
716 src/core/ext/client_channel/subchannel_index.c
717 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100718 src/core/lib/http/httpcli_security_connector.c
719 src/core/lib/security/context/security_context.c
720 src/core/lib/security/credentials/composite/composite_credentials.c
721 src/core/lib/security/credentials/credentials.c
722 src/core/lib/security/credentials/credentials_metadata.c
723 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700724 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100725 src/core/lib/security/credentials/google_default/google_default_credentials.c
726 src/core/lib/security/credentials/iam/iam_credentials.c
727 src/core/lib/security/credentials/jwt/json_token.c
728 src/core/lib/security/credentials/jwt/jwt_credentials.c
729 src/core/lib/security/credentials/jwt/jwt_verifier.c
730 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
731 src/core/lib/security/credentials/plugin/plugin_credentials.c
732 src/core/lib/security/credentials/ssl/ssl_credentials.c
733 src/core/lib/security/transport/client_auth_filter.c
734 src/core/lib/security/transport/handshake.c
735 src/core/lib/security/transport/secure_endpoint.c
736 src/core/lib/security/transport/security_connector.c
737 src/core/lib/security/transport/server_auth_filter.c
738 src/core/lib/security/transport/tsi_error.c
739 src/core/lib/security/util/b64.c
740 src/core/lib/security/util/json_util.c
741 src/core/lib/surface/init_secure.c
742 src/core/lib/tsi/fake_transport_security.c
743 src/core/lib/tsi/ssl_transport_security.c
744 src/core/lib/tsi/transport_security.c
745 src/core/plugin_registry/grpc_cronet_plugin_registry.c
746)
747
748target_include_directories(grpc_cronet
749 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
750 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
751 PRIVATE ${BORINGSSL_ROOT_DIR}/include
752 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300753 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100754 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
755)
756
757target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300758 ${_gRPC_BASELIB_LIBRARIES}
759 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100760 gpr
761)
762
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300763foreach(_hdr
764 include/grpc/byte_buffer.h
765 include/grpc/byte_buffer_reader.h
766 include/grpc/compression.h
767 include/grpc/grpc.h
768 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200769 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300770 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300771 include/grpc/impl/codegen/byte_buffer_reader.h
772 include/grpc/impl/codegen/compression_types.h
773 include/grpc/impl/codegen/connectivity_state.h
774 include/grpc/impl/codegen/grpc_types.h
775 include/grpc/impl/codegen/propagation_bits.h
776 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300777 include/grpc/impl/codegen/atm.h
778 include/grpc/impl/codegen/atm_gcc_atomic.h
779 include/grpc/impl/codegen/atm_gcc_sync.h
780 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700781 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300782 include/grpc/impl/codegen/port_platform.h
783 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300784 include/grpc/impl/codegen/sync.h
785 include/grpc/impl/codegen/sync_generic.h
786 include/grpc/impl/codegen/sync_posix.h
787 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300788 include/grpc/grpc_cronet.h
789 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300790)
791 string(REPLACE "include/" "" _path ${_hdr})
792 get_filename_component(_path ${_path} PATH)
793 install(FILES ${_hdr}
794 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
795 )
796endforeach()
797
798
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300799if (gRPC_INSTALL)
800 install(TARGETS grpc_cronet EXPORT gRPCTargets
801 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
802 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
803 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
804 )
805endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300806
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100807
808add_library(grpc_unsecure
809 src/core/lib/surface/init.c
810 src/core/lib/surface/init_unsecure.c
811 src/core/lib/channel/channel_args.c
812 src/core/lib/channel/channel_stack.c
813 src/core/lib/channel/channel_stack_builder.c
814 src/core/lib/channel/compress_filter.c
815 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700816 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700817 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100818 src/core/lib/channel/http_client_filter.c
819 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700820 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100821 src/core/lib/compression/compression.c
822 src/core/lib/compression/message_compress.c
823 src/core/lib/debug/trace.c
824 src/core/lib/http/format_request.c
825 src/core/lib/http/httpcli.c
826 src/core/lib/http/parser.c
827 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700828 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100829 src/core/lib/iomgr/endpoint.c
830 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700831 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100832 src/core/lib/iomgr/endpoint_pair_windows.c
833 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200834 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100835 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
836 src/core/lib/iomgr/ev_poll_posix.c
837 src/core/lib/iomgr/ev_posix.c
838 src/core/lib/iomgr/exec_ctx.c
839 src/core/lib/iomgr/executor.c
840 src/core/lib/iomgr/iocp_windows.c
841 src/core/lib/iomgr/iomgr.c
842 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700843 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100844 src/core/lib/iomgr/iomgr_windows.c
845 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200846 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100847 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700848 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100849 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700850 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100851 src/core/lib/iomgr/pollset_windows.c
852 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700853 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100854 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700855 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100856 src/core/lib/iomgr/sockaddr_utils.c
857 src/core/lib/iomgr/socket_utils_common_posix.c
858 src/core/lib/iomgr/socket_utils_linux.c
859 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700860 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700861 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100862 src/core/lib/iomgr/socket_windows.c
863 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700864 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100865 src/core/lib/iomgr/tcp_client_windows.c
866 src/core/lib/iomgr/tcp_posix.c
867 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700868 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100869 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700870 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100871 src/core/lib/iomgr/tcp_windows.c
872 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700873 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100874 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700875 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100876 src/core/lib/iomgr/udp_server.c
877 src/core/lib/iomgr/unix_sockets_posix.c
878 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700879 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100880 src/core/lib/iomgr/wakeup_fd_eventfd.c
881 src/core/lib/iomgr/wakeup_fd_nospecial.c
882 src/core/lib/iomgr/wakeup_fd_pipe.c
883 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700884 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100885 src/core/lib/iomgr/workqueue_windows.c
886 src/core/lib/json/json.c
887 src/core/lib/json/json_reader.c
888 src/core/lib/json/json_string.c
889 src/core/lib/json/json_writer.c
890 src/core/lib/surface/alarm.c
891 src/core/lib/surface/api_trace.c
892 src/core/lib/surface/byte_buffer.c
893 src/core/lib/surface/byte_buffer_reader.c
894 src/core/lib/surface/call.c
895 src/core/lib/surface/call_details.c
896 src/core/lib/surface/call_log_batch.c
897 src/core/lib/surface/channel.c
898 src/core/lib/surface/channel_init.c
899 src/core/lib/surface/channel_ping.c
900 src/core/lib/surface/channel_stack_type.c
901 src/core/lib/surface/completion_queue.c
902 src/core/lib/surface/event_string.c
903 src/core/lib/surface/lame_client.c
904 src/core/lib/surface/metadata_array.c
905 src/core/lib/surface/server.c
906 src/core/lib/surface/validate_metadata.c
907 src/core/lib/surface/version.c
908 src/core/lib/transport/byte_stream.c
909 src/core/lib/transport/connectivity_state.c
Mark D. Roth6a721b52016-10-14 12:43:34 -0700910 src/core/lib/transport/mdstr_hash_table.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100911 src/core/lib/transport/metadata.c
912 src/core/lib/transport/metadata_batch.c
Mark D. Rothbfe56802016-10-26 12:45:20 -0700913 src/core/lib/transport/method_config.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700914 src/core/lib/transport/pid_controller.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100915 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400916 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100917 src/core/lib/transport/transport.c
918 src/core/lib/transport/transport_op_string.c
919 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
920 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
921 src/core/ext/transport/chttp2/transport/bin_decoder.c
922 src/core/ext/transport/chttp2/transport/bin_encoder.c
923 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
924 src/core/ext/transport/chttp2/transport/chttp2_transport.c
925 src/core/ext/transport/chttp2/transport/frame_data.c
926 src/core/ext/transport/chttp2/transport/frame_goaway.c
927 src/core/ext/transport/chttp2/transport/frame_ping.c
928 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
929 src/core/ext/transport/chttp2/transport/frame_settings.c
930 src/core/ext/transport/chttp2/transport/frame_window_update.c
931 src/core/ext/transport/chttp2/transport/hpack_encoder.c
932 src/core/ext/transport/chttp2/transport/hpack_parser.c
933 src/core/ext/transport/chttp2/transport/hpack_table.c
934 src/core/ext/transport/chttp2/transport/huffsyms.c
935 src/core/ext/transport/chttp2/transport/incoming_metadata.c
936 src/core/ext/transport/chttp2/transport/parsing.c
937 src/core/ext/transport/chttp2/transport/status_conversion.c
938 src/core/ext/transport/chttp2/transport/stream_lists.c
939 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100940 src/core/ext/transport/chttp2/transport/varint.c
941 src/core/ext/transport/chttp2/transport/writing.c
942 src/core/ext/transport/chttp2/alpn/alpn.c
943 src/core/ext/transport/chttp2/client/insecure/channel_create.c
944 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700945 src/core/ext/client_channel/channel_connectivity.c
946 src/core/ext/client_channel/client_channel.c
947 src/core/ext/client_channel/client_channel_factory.c
948 src/core/ext/client_channel/client_channel_plugin.c
949 src/core/ext/client_channel/connector.c
950 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700951 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700952 src/core/ext/client_channel/initial_connect_string.c
953 src/core/ext/client_channel/lb_policy.c
954 src/core/ext/client_channel/lb_policy_factory.c
955 src/core/ext/client_channel/lb_policy_registry.c
956 src/core/ext/client_channel/parse_address.c
957 src/core/ext/client_channel/resolver.c
958 src/core/ext/client_channel/resolver_factory.c
959 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700960 src/core/ext/client_channel/subchannel.c
961 src/core/ext/client_channel/subchannel_index.c
962 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100963 src/core/ext/resolver/dns/native/dns_resolver.c
964 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
965 src/core/ext/load_reporting/load_reporting.c
966 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700967 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100968 src/core/ext/lb_policy/grpclb/load_balancer_api.c
969 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
970 third_party/nanopb/pb_common.c
971 third_party/nanopb/pb_decode.c
972 third_party/nanopb/pb_encode.c
973 src/core/ext/lb_policy/pick_first/pick_first.c
974 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700975 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100976 src/core/ext/census/context.c
977 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700978 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100979 src/core/ext/census/grpc_context.c
980 src/core/ext/census/grpc_filter.c
981 src/core/ext/census/grpc_plugin.c
982 src/core/ext/census/initialize.c
983 src/core/ext/census/mlog.c
984 src/core/ext/census/operation.c
985 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700986 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700987 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100988 src/core/ext/census/tracing.c
989 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
990)
991
992target_include_directories(grpc_unsecure
993 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
994 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
995 PRIVATE ${BORINGSSL_ROOT_DIR}/include
996 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300997 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100998 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
999)
1000
1001target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001002 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001003 gpr
1004)
1005
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001006foreach(_hdr
1007 include/grpc/byte_buffer.h
1008 include/grpc/byte_buffer_reader.h
1009 include/grpc/compression.h
1010 include/grpc/grpc.h
1011 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001012 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001013 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001014 include/grpc/impl/codegen/byte_buffer_reader.h
1015 include/grpc/impl/codegen/compression_types.h
1016 include/grpc/impl/codegen/connectivity_state.h
1017 include/grpc/impl/codegen/grpc_types.h
1018 include/grpc/impl/codegen/propagation_bits.h
1019 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001020 include/grpc/impl/codegen/atm.h
1021 include/grpc/impl/codegen/atm_gcc_atomic.h
1022 include/grpc/impl/codegen/atm_gcc_sync.h
1023 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001024 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001025 include/grpc/impl/codegen/port_platform.h
1026 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001027 include/grpc/impl/codegen/sync.h
1028 include/grpc/impl/codegen/sync_generic.h
1029 include/grpc/impl/codegen/sync_posix.h
1030 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001031 include/grpc/census.h
1032)
1033 string(REPLACE "include/" "" _path ${_hdr})
1034 get_filename_component(_path ${_path} PATH)
1035 install(FILES ${_hdr}
1036 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1037 )
1038endforeach()
1039
1040
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001041if (gRPC_INSTALL)
1042 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1043 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1044 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1045 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1046 )
1047endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001048
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001049
1050add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001051 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001052 src/cpp/client/secure_credentials.cc
1053 src/cpp/common/auth_property_iterator.cc
1054 src/cpp/common/secure_auth_context.cc
1055 src/cpp/common/secure_channel_arguments.cc
1056 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001057 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001058 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001059 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001060 src/cpp/client/client_context.cc
1061 src/cpp/client/create_channel.cc
1062 src/cpp/client/create_channel_internal.cc
1063 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001064 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001065 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001066 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001067 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001068 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001069 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001070 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001071 src/cpp/common/rpc_method.cc
1072 src/cpp/server/async_generic_service.cc
1073 src/cpp/server/create_default_thread_pool.cc
1074 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001075 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001076 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001077 src/cpp/server/server_context.cc
1078 src/cpp/server/server_credentials.cc
1079 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001080 src/cpp/util/byte_buffer_cc.cc
1081 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001082 src/cpp/util/status.cc
1083 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001084 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001085 src/cpp/codegen/codegen_init.cc
1086)
1087
1088target_include_directories(grpc++
1089 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1090 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1091 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1092 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001093 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001094 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1095)
1096
1097target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001098 ${_gRPC_BASELIB_LIBRARIES}
1099 ${_gRPC_SSL_LIBRARIES}
1100 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001101 grpc
1102)
1103
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001104foreach(_hdr
1105 include/grpc++/alarm.h
1106 include/grpc++/channel.h
1107 include/grpc++/client_context.h
1108 include/grpc++/completion_queue.h
1109 include/grpc++/create_channel.h
1110 include/grpc++/create_channel_posix.h
1111 include/grpc++/generic/async_generic_service.h
1112 include/grpc++/generic/generic_stub.h
1113 include/grpc++/grpc++.h
1114 include/grpc++/impl/call.h
1115 include/grpc++/impl/client_unary_call.h
1116 include/grpc++/impl/codegen/core_codegen.h
1117 include/grpc++/impl/grpc_library.h
1118 include/grpc++/impl/method_handler_impl.h
1119 include/grpc++/impl/rpc_method.h
1120 include/grpc++/impl/rpc_service_method.h
1121 include/grpc++/impl/serialization_traits.h
1122 include/grpc++/impl/server_builder_option.h
1123 include/grpc++/impl/server_builder_plugin.h
1124 include/grpc++/impl/server_initializer.h
1125 include/grpc++/impl/service_type.h
1126 include/grpc++/impl/sync.h
1127 include/grpc++/impl/sync_cxx11.h
1128 include/grpc++/impl/sync_no_cxx11.h
1129 include/grpc++/impl/thd.h
1130 include/grpc++/impl/thd_cxx11.h
1131 include/grpc++/impl/thd_no_cxx11.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001132 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001133 include/grpc++/security/auth_context.h
1134 include/grpc++/security/auth_metadata_processor.h
1135 include/grpc++/security/credentials.h
1136 include/grpc++/security/server_credentials.h
1137 include/grpc++/server.h
1138 include/grpc++/server_builder.h
1139 include/grpc++/server_context.h
1140 include/grpc++/server_posix.h
1141 include/grpc++/support/async_stream.h
1142 include/grpc++/support/async_unary_call.h
1143 include/grpc++/support/byte_buffer.h
1144 include/grpc++/support/channel_arguments.h
1145 include/grpc++/support/config.h
1146 include/grpc++/support/slice.h
1147 include/grpc++/support/status.h
1148 include/grpc++/support/status_code_enum.h
1149 include/grpc++/support/string_ref.h
1150 include/grpc++/support/stub_options.h
1151 include/grpc++/support/sync_stream.h
1152 include/grpc++/support/time.h
1153 include/grpc++/impl/codegen/async_stream.h
1154 include/grpc++/impl/codegen/async_unary_call.h
1155 include/grpc++/impl/codegen/call.h
1156 include/grpc++/impl/codegen/call_hook.h
1157 include/grpc++/impl/codegen/channel_interface.h
1158 include/grpc++/impl/codegen/client_context.h
1159 include/grpc++/impl/codegen/client_unary_call.h
1160 include/grpc++/impl/codegen/completion_queue.h
1161 include/grpc++/impl/codegen/completion_queue_tag.h
1162 include/grpc++/impl/codegen/config.h
1163 include/grpc++/impl/codegen/core_codegen_interface.h
1164 include/grpc++/impl/codegen/create_auth_context.h
1165 include/grpc++/impl/codegen/grpc_library.h
1166 include/grpc++/impl/codegen/method_handler_impl.h
1167 include/grpc++/impl/codegen/rpc_method.h
1168 include/grpc++/impl/codegen/rpc_service_method.h
1169 include/grpc++/impl/codegen/security/auth_context.h
1170 include/grpc++/impl/codegen/serialization_traits.h
1171 include/grpc++/impl/codegen/server_context.h
1172 include/grpc++/impl/codegen/server_interface.h
1173 include/grpc++/impl/codegen/service_type.h
1174 include/grpc++/impl/codegen/status.h
1175 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001176 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001177 include/grpc++/impl/codegen/string_ref.h
1178 include/grpc++/impl/codegen/stub_options.h
1179 include/grpc++/impl/codegen/sync.h
1180 include/grpc++/impl/codegen/sync_cxx11.h
1181 include/grpc++/impl/codegen/sync_no_cxx11.h
1182 include/grpc++/impl/codegen/sync_stream.h
1183 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001184 include/grpc/impl/codegen/byte_buffer_reader.h
1185 include/grpc/impl/codegen/compression_types.h
1186 include/grpc/impl/codegen/connectivity_state.h
1187 include/grpc/impl/codegen/grpc_types.h
1188 include/grpc/impl/codegen/propagation_bits.h
1189 include/grpc/impl/codegen/status.h
1190 include/grpc/impl/codegen/atm.h
1191 include/grpc/impl/codegen/atm_gcc_atomic.h
1192 include/grpc/impl/codegen/atm_gcc_sync.h
1193 include/grpc/impl/codegen/atm_windows.h
1194 include/grpc/impl/codegen/gpr_types.h
1195 include/grpc/impl/codegen/port_platform.h
1196 include/grpc/impl/codegen/slice.h
1197 include/grpc/impl/codegen/sync.h
1198 include/grpc/impl/codegen/sync_generic.h
1199 include/grpc/impl/codegen/sync_posix.h
1200 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001201)
1202 string(REPLACE "include/" "" _path ${_hdr})
1203 get_filename_component(_path ${_path} PATH)
1204 install(FILES ${_hdr}
1205 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1206 )
1207endforeach()
1208
1209
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001210if (gRPC_INSTALL)
1211 install(TARGETS grpc++ EXPORT gRPCTargets
1212 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1213 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1214 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1215 )
1216endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001217
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001218
Garrett Casto931a26b2016-10-04 09:18:29 -07001219add_library(grpc++_cronet
1220 src/cpp/client/cronet_credentials.cc
1221 src/cpp/client/insecure_credentials.cc
1222 src/cpp/common/insecure_create_auth_context.cc
1223 src/cpp/server/insecure_server_credentials.cc
1224 src/cpp/client/channel_cc.cc
1225 src/cpp/client/client_context.cc
1226 src/cpp/client/create_channel.cc
1227 src/cpp/client/create_channel_internal.cc
1228 src/cpp/client/create_channel_posix.cc
1229 src/cpp/client/credentials_cc.cc
1230 src/cpp/client/generic_stub.cc
1231 src/cpp/common/channel_arguments.cc
1232 src/cpp/common/channel_filter.cc
1233 src/cpp/common/completion_queue_cc.cc
1234 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07001235 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001236 src/cpp/common/rpc_method.cc
1237 src/cpp/server/async_generic_service.cc
1238 src/cpp/server/create_default_thread_pool.cc
1239 src/cpp/server/dynamic_thread_pool.cc
1240 src/cpp/server/server_builder.cc
1241 src/cpp/server/server_cc.cc
1242 src/cpp/server/server_context.cc
1243 src/cpp/server/server_credentials.cc
1244 src/cpp/server/server_posix.cc
1245 src/cpp/util/byte_buffer_cc.cc
1246 src/cpp/util/slice_cc.cc
1247 src/cpp/util/status.cc
1248 src/cpp/util/string_ref.cc
1249 src/cpp/util/time_cc.cc
1250 src/cpp/codegen/codegen_init.cc
1251)
1252
1253target_include_directories(grpc++_cronet
1254 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1255 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1256 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1257 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1258 PRIVATE ${ZLIB_INCLUDE_DIR}
1259 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1260)
1261
1262target_link_libraries(grpc++_cronet
1263 ${_gRPC_BASELIB_LIBRARIES}
1264 ${_gRPC_SSL_LIBRARIES}
1265 gpr
1266 grpc_cronet
1267)
1268
1269foreach(_hdr
1270 include/grpc++/alarm.h
1271 include/grpc++/channel.h
1272 include/grpc++/client_context.h
1273 include/grpc++/completion_queue.h
1274 include/grpc++/create_channel.h
1275 include/grpc++/create_channel_posix.h
1276 include/grpc++/generic/async_generic_service.h
1277 include/grpc++/generic/generic_stub.h
1278 include/grpc++/grpc++.h
1279 include/grpc++/impl/call.h
1280 include/grpc++/impl/client_unary_call.h
1281 include/grpc++/impl/codegen/core_codegen.h
1282 include/grpc++/impl/grpc_library.h
1283 include/grpc++/impl/method_handler_impl.h
1284 include/grpc++/impl/rpc_method.h
1285 include/grpc++/impl/rpc_service_method.h
1286 include/grpc++/impl/serialization_traits.h
1287 include/grpc++/impl/server_builder_option.h
1288 include/grpc++/impl/server_builder_plugin.h
1289 include/grpc++/impl/server_initializer.h
1290 include/grpc++/impl/service_type.h
1291 include/grpc++/impl/sync.h
1292 include/grpc++/impl/sync_cxx11.h
1293 include/grpc++/impl/sync_no_cxx11.h
1294 include/grpc++/impl/thd.h
1295 include/grpc++/impl/thd_cxx11.h
1296 include/grpc++/impl/thd_no_cxx11.h
Craig Tiller3d357d92016-10-26 20:52:03 -07001297 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001298 include/grpc++/security/auth_context.h
1299 include/grpc++/security/auth_metadata_processor.h
1300 include/grpc++/security/credentials.h
1301 include/grpc++/security/server_credentials.h
1302 include/grpc++/server.h
1303 include/grpc++/server_builder.h
1304 include/grpc++/server_context.h
1305 include/grpc++/server_posix.h
1306 include/grpc++/support/async_stream.h
1307 include/grpc++/support/async_unary_call.h
1308 include/grpc++/support/byte_buffer.h
1309 include/grpc++/support/channel_arguments.h
1310 include/grpc++/support/config.h
1311 include/grpc++/support/slice.h
1312 include/grpc++/support/status.h
1313 include/grpc++/support/status_code_enum.h
1314 include/grpc++/support/string_ref.h
1315 include/grpc++/support/stub_options.h
1316 include/grpc++/support/sync_stream.h
1317 include/grpc++/support/time.h
1318 include/grpc++/impl/codegen/async_stream.h
1319 include/grpc++/impl/codegen/async_unary_call.h
1320 include/grpc++/impl/codegen/call.h
1321 include/grpc++/impl/codegen/call_hook.h
1322 include/grpc++/impl/codegen/channel_interface.h
1323 include/grpc++/impl/codegen/client_context.h
1324 include/grpc++/impl/codegen/client_unary_call.h
1325 include/grpc++/impl/codegen/completion_queue.h
1326 include/grpc++/impl/codegen/completion_queue_tag.h
1327 include/grpc++/impl/codegen/config.h
1328 include/grpc++/impl/codegen/core_codegen_interface.h
1329 include/grpc++/impl/codegen/create_auth_context.h
1330 include/grpc++/impl/codegen/grpc_library.h
1331 include/grpc++/impl/codegen/method_handler_impl.h
1332 include/grpc++/impl/codegen/rpc_method.h
1333 include/grpc++/impl/codegen/rpc_service_method.h
1334 include/grpc++/impl/codegen/security/auth_context.h
1335 include/grpc++/impl/codegen/serialization_traits.h
1336 include/grpc++/impl/codegen/server_context.h
1337 include/grpc++/impl/codegen/server_interface.h
1338 include/grpc++/impl/codegen/service_type.h
1339 include/grpc++/impl/codegen/status.h
1340 include/grpc++/impl/codegen/status_code_enum.h
1341 include/grpc++/impl/codegen/status_helper.h
1342 include/grpc++/impl/codegen/string_ref.h
1343 include/grpc++/impl/codegen/stub_options.h
1344 include/grpc++/impl/codegen/sync.h
1345 include/grpc++/impl/codegen/sync_cxx11.h
1346 include/grpc++/impl/codegen/sync_no_cxx11.h
1347 include/grpc++/impl/codegen/sync_stream.h
1348 include/grpc++/impl/codegen/time.h
1349 include/grpc/impl/codegen/byte_buffer_reader.h
1350 include/grpc/impl/codegen/compression_types.h
1351 include/grpc/impl/codegen/connectivity_state.h
1352 include/grpc/impl/codegen/grpc_types.h
1353 include/grpc/impl/codegen/propagation_bits.h
1354 include/grpc/impl/codegen/status.h
1355 include/grpc/impl/codegen/atm.h
1356 include/grpc/impl/codegen/atm_gcc_atomic.h
1357 include/grpc/impl/codegen/atm_gcc_sync.h
1358 include/grpc/impl/codegen/atm_windows.h
1359 include/grpc/impl/codegen/gpr_types.h
1360 include/grpc/impl/codegen/port_platform.h
1361 include/grpc/impl/codegen/slice.h
1362 include/grpc/impl/codegen/sync.h
1363 include/grpc/impl/codegen/sync_generic.h
1364 include/grpc/impl/codegen/sync_posix.h
1365 include/grpc/impl/codegen/sync_windows.h
1366)
1367 string(REPLACE "include/" "" _path ${_hdr})
1368 get_filename_component(_path ${_path} PATH)
1369 install(FILES ${_hdr}
1370 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1371 )
1372endforeach()
1373
1374
1375if (gRPC_INSTALL)
1376 install(TARGETS grpc++_cronet EXPORT gRPCTargets
1377 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1378 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1379 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1380 )
1381endif()
1382
1383
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001384add_library(grpc++_reflection
1385 src/cpp/ext/proto_server_reflection.cc
1386 src/cpp/ext/proto_server_reflection_plugin.cc
1387 src/cpp/ext/reflection.grpc.pb.cc
1388 src/cpp/ext/reflection.pb.cc
1389)
1390
1391target_include_directories(grpc++_reflection
1392 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1393 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1394 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1395 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001396 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001397 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1398)
1399
1400target_link_libraries(grpc++_reflection
1401 grpc++
1402)
1403
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001404foreach(_hdr
1405 include/grpc++/ext/proto_server_reflection_plugin.h
1406 include/grpc++/ext/reflection.grpc.pb.h
1407 include/grpc++/ext/reflection.pb.h
1408 include/grpc++/impl/codegen/proto_utils.h
1409 include/grpc++/impl/codegen/async_stream.h
1410 include/grpc++/impl/codegen/async_unary_call.h
1411 include/grpc++/impl/codegen/call.h
1412 include/grpc++/impl/codegen/call_hook.h
1413 include/grpc++/impl/codegen/channel_interface.h
1414 include/grpc++/impl/codegen/client_context.h
1415 include/grpc++/impl/codegen/client_unary_call.h
1416 include/grpc++/impl/codegen/completion_queue.h
1417 include/grpc++/impl/codegen/completion_queue_tag.h
1418 include/grpc++/impl/codegen/config.h
1419 include/grpc++/impl/codegen/core_codegen_interface.h
1420 include/grpc++/impl/codegen/create_auth_context.h
1421 include/grpc++/impl/codegen/grpc_library.h
1422 include/grpc++/impl/codegen/method_handler_impl.h
1423 include/grpc++/impl/codegen/rpc_method.h
1424 include/grpc++/impl/codegen/rpc_service_method.h
1425 include/grpc++/impl/codegen/security/auth_context.h
1426 include/grpc++/impl/codegen/serialization_traits.h
1427 include/grpc++/impl/codegen/server_context.h
1428 include/grpc++/impl/codegen/server_interface.h
1429 include/grpc++/impl/codegen/service_type.h
1430 include/grpc++/impl/codegen/status.h
1431 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001432 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001433 include/grpc++/impl/codegen/string_ref.h
1434 include/grpc++/impl/codegen/stub_options.h
1435 include/grpc++/impl/codegen/sync.h
1436 include/grpc++/impl/codegen/sync_cxx11.h
1437 include/grpc++/impl/codegen/sync_no_cxx11.h
1438 include/grpc++/impl/codegen/sync_stream.h
1439 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001440 include/grpc/impl/codegen/byte_buffer_reader.h
1441 include/grpc/impl/codegen/compression_types.h
1442 include/grpc/impl/codegen/connectivity_state.h
1443 include/grpc/impl/codegen/grpc_types.h
1444 include/grpc/impl/codegen/propagation_bits.h
1445 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001446 include/grpc/impl/codegen/atm.h
1447 include/grpc/impl/codegen/atm_gcc_atomic.h
1448 include/grpc/impl/codegen/atm_gcc_sync.h
1449 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001450 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001451 include/grpc/impl/codegen/port_platform.h
1452 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001453 include/grpc/impl/codegen/sync.h
1454 include/grpc/impl/codegen/sync_generic.h
1455 include/grpc/impl/codegen/sync_posix.h
1456 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001457 include/grpc++/impl/codegen/config_protobuf.h
1458)
1459 string(REPLACE "include/" "" _path ${_hdr})
1460 get_filename_component(_path ${_path} PATH)
1461 install(FILES ${_hdr}
1462 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1463 )
1464endforeach()
1465
1466
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001467if (gRPC_INSTALL)
1468 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1469 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1470 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1471 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1472 )
1473endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001474
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001475
1476add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001477 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001478 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001479 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001480 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001481 src/cpp/client/client_context.cc
1482 src/cpp/client/create_channel.cc
1483 src/cpp/client/create_channel_internal.cc
1484 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001485 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001486 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001487 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001488 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001489 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001490 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001491 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001492 src/cpp/common/rpc_method.cc
1493 src/cpp/server/async_generic_service.cc
1494 src/cpp/server/create_default_thread_pool.cc
1495 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001496 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001497 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001498 src/cpp/server/server_context.cc
1499 src/cpp/server/server_credentials.cc
1500 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001501 src/cpp/util/byte_buffer_cc.cc
1502 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001503 src/cpp/util/status.cc
1504 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001505 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001506 src/cpp/codegen/codegen_init.cc
1507)
1508
1509target_include_directories(grpc++_unsecure
1510 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1511 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1512 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1513 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001514 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001515 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1516)
1517
1518target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001519 ${_gRPC_BASELIB_LIBRARIES}
1520 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001521 gpr
1522 grpc_unsecure
1523)
1524
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001525foreach(_hdr
1526 include/grpc++/alarm.h
1527 include/grpc++/channel.h
1528 include/grpc++/client_context.h
1529 include/grpc++/completion_queue.h
1530 include/grpc++/create_channel.h
1531 include/grpc++/create_channel_posix.h
1532 include/grpc++/generic/async_generic_service.h
1533 include/grpc++/generic/generic_stub.h
1534 include/grpc++/grpc++.h
1535 include/grpc++/impl/call.h
1536 include/grpc++/impl/client_unary_call.h
1537 include/grpc++/impl/codegen/core_codegen.h
1538 include/grpc++/impl/grpc_library.h
1539 include/grpc++/impl/method_handler_impl.h
1540 include/grpc++/impl/rpc_method.h
1541 include/grpc++/impl/rpc_service_method.h
1542 include/grpc++/impl/serialization_traits.h
1543 include/grpc++/impl/server_builder_option.h
1544 include/grpc++/impl/server_builder_plugin.h
1545 include/grpc++/impl/server_initializer.h
1546 include/grpc++/impl/service_type.h
1547 include/grpc++/impl/sync.h
1548 include/grpc++/impl/sync_cxx11.h
1549 include/grpc++/impl/sync_no_cxx11.h
1550 include/grpc++/impl/thd.h
1551 include/grpc++/impl/thd_cxx11.h
1552 include/grpc++/impl/thd_no_cxx11.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001553 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001554 include/grpc++/security/auth_context.h
1555 include/grpc++/security/auth_metadata_processor.h
1556 include/grpc++/security/credentials.h
1557 include/grpc++/security/server_credentials.h
1558 include/grpc++/server.h
1559 include/grpc++/server_builder.h
1560 include/grpc++/server_context.h
1561 include/grpc++/server_posix.h
1562 include/grpc++/support/async_stream.h
1563 include/grpc++/support/async_unary_call.h
1564 include/grpc++/support/byte_buffer.h
1565 include/grpc++/support/channel_arguments.h
1566 include/grpc++/support/config.h
1567 include/grpc++/support/slice.h
1568 include/grpc++/support/status.h
1569 include/grpc++/support/status_code_enum.h
1570 include/grpc++/support/string_ref.h
1571 include/grpc++/support/stub_options.h
1572 include/grpc++/support/sync_stream.h
1573 include/grpc++/support/time.h
1574 include/grpc++/impl/codegen/async_stream.h
1575 include/grpc++/impl/codegen/async_unary_call.h
1576 include/grpc++/impl/codegen/call.h
1577 include/grpc++/impl/codegen/call_hook.h
1578 include/grpc++/impl/codegen/channel_interface.h
1579 include/grpc++/impl/codegen/client_context.h
1580 include/grpc++/impl/codegen/client_unary_call.h
1581 include/grpc++/impl/codegen/completion_queue.h
1582 include/grpc++/impl/codegen/completion_queue_tag.h
1583 include/grpc++/impl/codegen/config.h
1584 include/grpc++/impl/codegen/core_codegen_interface.h
1585 include/grpc++/impl/codegen/create_auth_context.h
1586 include/grpc++/impl/codegen/grpc_library.h
1587 include/grpc++/impl/codegen/method_handler_impl.h
1588 include/grpc++/impl/codegen/rpc_method.h
1589 include/grpc++/impl/codegen/rpc_service_method.h
1590 include/grpc++/impl/codegen/security/auth_context.h
1591 include/grpc++/impl/codegen/serialization_traits.h
1592 include/grpc++/impl/codegen/server_context.h
1593 include/grpc++/impl/codegen/server_interface.h
1594 include/grpc++/impl/codegen/service_type.h
1595 include/grpc++/impl/codegen/status.h
1596 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001597 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001598 include/grpc++/impl/codegen/string_ref.h
1599 include/grpc++/impl/codegen/stub_options.h
1600 include/grpc++/impl/codegen/sync.h
1601 include/grpc++/impl/codegen/sync_cxx11.h
1602 include/grpc++/impl/codegen/sync_no_cxx11.h
1603 include/grpc++/impl/codegen/sync_stream.h
1604 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001605 include/grpc/impl/codegen/byte_buffer_reader.h
1606 include/grpc/impl/codegen/compression_types.h
1607 include/grpc/impl/codegen/connectivity_state.h
1608 include/grpc/impl/codegen/grpc_types.h
1609 include/grpc/impl/codegen/propagation_bits.h
1610 include/grpc/impl/codegen/status.h
1611 include/grpc/impl/codegen/atm.h
1612 include/grpc/impl/codegen/atm_gcc_atomic.h
1613 include/grpc/impl/codegen/atm_gcc_sync.h
1614 include/grpc/impl/codegen/atm_windows.h
1615 include/grpc/impl/codegen/gpr_types.h
1616 include/grpc/impl/codegen/port_platform.h
1617 include/grpc/impl/codegen/slice.h
1618 include/grpc/impl/codegen/sync.h
1619 include/grpc/impl/codegen/sync_generic.h
1620 include/grpc/impl/codegen/sync_posix.h
1621 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001622)
1623 string(REPLACE "include/" "" _path ${_hdr})
1624 get_filename_component(_path ${_path} PATH)
1625 install(FILES ${_hdr}
1626 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1627 )
1628endforeach()
1629
1630
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001631if (gRPC_INSTALL)
1632 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1633 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1634 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1635 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1636 )
1637endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001638
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001639
1640add_library(grpc_plugin_support
1641 src/compiler/cpp_generator.cc
1642 src/compiler/csharp_generator.cc
1643 src/compiler/node_generator.cc
1644 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07001645 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001646 src/compiler/python_generator.cc
1647 src/compiler/ruby_generator.cc
1648)
1649
1650target_include_directories(grpc_plugin_support
1651 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1652 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1653 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1654 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001655 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001656 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1657)
1658
1659target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001660 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001661)
1662
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001663foreach(_hdr
1664 include/grpc++/impl/codegen/config_protobuf.h
1665)
1666 string(REPLACE "include/" "" _path ${_hdr})
1667 get_filename_component(_path ${_path} PATH)
1668 install(FILES ${_hdr}
1669 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1670 )
1671endforeach()
1672
1673
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001674if (gRPC_INSTALL)
1675 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1676 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1677 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1678 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1679 )
1680endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001681
1682
1683add_library(grpc_csharp_ext
1684 src/csharp/ext/grpc_csharp_ext.c
1685)
1686
1687target_include_directories(grpc_csharp_ext
1688 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1689 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1690 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1691 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001692 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001693 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1694)
1695
1696target_link_libraries(grpc_csharp_ext
1697 grpc
1698 gpr
1699)
1700
1701
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001702
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001703if (gRPC_INSTALL)
1704 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1705 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1706 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1707 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1708 )
1709endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001710
1711
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001712
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001713add_executable(gen_hpack_tables
1714 tools/codegen/core/gen_hpack_tables.c
1715)
1716
1717target_include_directories(gen_hpack_tables
1718 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1719 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1720 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1721 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1722 PRIVATE ${ZLIB_ROOT_DIR}
1723 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1724)
1725
1726target_link_libraries(gen_hpack_tables
1727 gpr
1728 grpc
1729)
1730
1731
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001732if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001733 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1734 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1735 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1736 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1737 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001738endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001739
1740
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001741add_executable(gen_legal_metadata_characters
1742 tools/codegen/core/gen_legal_metadata_characters.c
1743)
1744
1745target_include_directories(gen_legal_metadata_characters
1746 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1747 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1748 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1749 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1750 PRIVATE ${ZLIB_ROOT_DIR}
1751 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1752)
1753
1754
1755
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001756if (gRPC_INSTALL)
1757 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1758 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1759 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1760 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1761 )
1762endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001763
1764
Craig Tiller1c7a8422016-08-18 11:13:11 -07001765add_executable(gen_percent_encoding_tables
1766 tools/codegen/core/gen_percent_encoding_tables.c
1767)
1768
1769target_include_directories(gen_percent_encoding_tables
1770 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1771 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1772 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1773 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1774 PRIVATE ${ZLIB_ROOT_DIR}
1775 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1776)
1777
1778
1779
Mark D. Roth164f0e92016-09-07 09:14:50 -07001780if (gRPC_INSTALL)
1781 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1782 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1783 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1784 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1785 )
1786endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001787
1788
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001789add_executable(grpc_create_jwt
1790 test/core/security/create_jwt.c
1791)
1792
1793target_include_directories(grpc_create_jwt
1794 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1795 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1796 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1797 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1798 PRIVATE ${ZLIB_ROOT_DIR}
1799 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1800)
1801
1802target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001803 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001804 grpc
1805 gpr
1806)
1807
1808
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001809if (gRPC_INSTALL)
1810 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1811 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1812 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1813 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1814 )
1815endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001816
1817
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001818add_executable(grpc_print_google_default_creds_token
1819 test/core/security/print_google_default_creds_token.c
1820)
1821
1822target_include_directories(grpc_print_google_default_creds_token
1823 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1824 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1825 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1826 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1827 PRIVATE ${ZLIB_ROOT_DIR}
1828 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1829)
1830
1831target_link_libraries(grpc_print_google_default_creds_token
1832 grpc
1833 gpr
1834)
1835
1836
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001837if (gRPC_INSTALL)
1838 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1839 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1840 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1841 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1842 )
1843endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001844
1845
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001846add_executable(grpc_verify_jwt
1847 test/core/security/verify_jwt.c
1848)
1849
1850target_include_directories(grpc_verify_jwt
1851 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1852 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1853 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1854 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1855 PRIVATE ${ZLIB_ROOT_DIR}
1856 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1857)
1858
1859target_link_libraries(grpc_verify_jwt
1860 grpc
1861 gpr
1862)
1863
1864
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001865if (gRPC_INSTALL)
1866 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1867 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1868 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1869 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1870 )
1871endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001872
1873
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001874add_executable(grpc_cpp_plugin
1875 src/compiler/cpp_plugin.cc
1876)
1877
1878target_include_directories(grpc_cpp_plugin
1879 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1880 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1881 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1882 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1883 PRIVATE ${ZLIB_ROOT_DIR}
1884 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1885)
1886
1887target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001888 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001889 grpc_plugin_support
1890)
1891
1892
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001893if (gRPC_INSTALL)
1894 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1895 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1896 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1897 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1898 )
1899endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001900
1901
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001902add_executable(grpc_csharp_plugin
1903 src/compiler/csharp_plugin.cc
1904)
1905
1906target_include_directories(grpc_csharp_plugin
1907 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1908 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1909 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1910 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1911 PRIVATE ${ZLIB_ROOT_DIR}
1912 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1913)
1914
1915target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001916 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001917 grpc_plugin_support
1918)
1919
1920
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001921if (gRPC_INSTALL)
1922 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1923 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1924 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1925 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1926 )
1927endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001928
1929
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001930add_executable(grpc_node_plugin
1931 src/compiler/node_plugin.cc
1932)
1933
1934target_include_directories(grpc_node_plugin
1935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1936 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1937 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1938 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1939 PRIVATE ${ZLIB_ROOT_DIR}
1940 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1941)
1942
1943target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001944 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001945 grpc_plugin_support
1946)
1947
1948
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001949if (gRPC_INSTALL)
1950 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1951 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1952 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1953 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1954 )
1955endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001956
1957
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001958add_executable(grpc_objective_c_plugin
1959 src/compiler/objective_c_plugin.cc
1960)
1961
1962target_include_directories(grpc_objective_c_plugin
1963 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1964 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1965 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1966 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1967 PRIVATE ${ZLIB_ROOT_DIR}
1968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1969)
1970
1971target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001972 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001973 grpc_plugin_support
1974)
1975
1976
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001977if (gRPC_INSTALL)
1978 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1979 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1980 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1981 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1982 )
1983endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001984
1985
Stanley Cheung857a1302016-09-29 17:26:29 -07001986add_executable(grpc_php_plugin
1987 src/compiler/php_plugin.cc
1988)
1989
1990target_include_directories(grpc_php_plugin
1991 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1992 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1993 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1994 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1995 PRIVATE ${ZLIB_ROOT_DIR}
1996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1997)
1998
1999target_link_libraries(grpc_php_plugin
2000 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
2001 grpc_plugin_support
2002)
2003
2004
2005if (gRPC_INSTALL)
2006 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
2007 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2008 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2009 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2010 )
2011endif()
2012
2013
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002014add_executable(grpc_python_plugin
2015 src/compiler/python_plugin.cc
2016)
2017
2018target_include_directories(grpc_python_plugin
2019 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2020 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2021 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2022 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2023 PRIVATE ${ZLIB_ROOT_DIR}
2024 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2025)
2026
2027target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002028 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002029 grpc_plugin_support
2030)
2031
2032
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002033if (gRPC_INSTALL)
2034 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
2035 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2036 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2037 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2038 )
2039endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002040
2041
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002042add_executable(grpc_ruby_plugin
2043 src/compiler/ruby_plugin.cc
2044)
2045
2046target_include_directories(grpc_ruby_plugin
2047 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2048 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2049 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2050 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2051 PRIVATE ${ZLIB_ROOT_DIR}
2052 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2053)
2054
2055target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002056 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002057 grpc_plugin_support
2058)
2059
2060
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002061if (gRPC_INSTALL)
2062 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2063 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2064 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2065 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2066 )
2067endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002068
2069
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002070
2071
2072
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002073
2074
2075
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002076if (gRPC_INSTALL)
2077 install(EXPORT gRPCTargets
2078 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2079 NAMESPACE gRPC::
2080 )
2081endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002082
2083foreach(_config gRPCConfig gRPCConfigVersion)
2084 configure_file(tools/cmake/${_config}.cmake.in
2085 ${_config}.cmake @ONLY)
2086 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2087 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2088 )
2089endforeach()