blob: b551ce341161c59c51c8e9846c841b452a320110 [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")
77endif()
78
79if("${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()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030098endif()
99
100if("${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()
137
138if("${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")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100170endif()
171
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
Craig Tillered913242016-11-04 16:31:30 -07001072 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001073 src/cpp/server/async_generic_service.cc
1074 src/cpp/server/create_default_thread_pool.cc
1075 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001076 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001077 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001078 src/cpp/server/server_context.cc
1079 src/cpp/server/server_credentials.cc
1080 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001081 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001082 src/cpp/util/byte_buffer_cc.cc
1083 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001084 src/cpp/util/status.cc
1085 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001086 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001087 src/cpp/codegen/codegen_init.cc
1088)
1089
1090target_include_directories(grpc++
1091 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1092 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1093 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1094 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001095 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001096 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1097)
1098
1099target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001100 ${_gRPC_BASELIB_LIBRARIES}
1101 ${_gRPC_SSL_LIBRARIES}
1102 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001103 grpc
1104)
1105
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001106foreach(_hdr
1107 include/grpc++/alarm.h
1108 include/grpc++/channel.h
1109 include/grpc++/client_context.h
1110 include/grpc++/completion_queue.h
1111 include/grpc++/create_channel.h
1112 include/grpc++/create_channel_posix.h
1113 include/grpc++/generic/async_generic_service.h
1114 include/grpc++/generic/generic_stub.h
1115 include/grpc++/grpc++.h
1116 include/grpc++/impl/call.h
1117 include/grpc++/impl/client_unary_call.h
1118 include/grpc++/impl/codegen/core_codegen.h
1119 include/grpc++/impl/grpc_library.h
1120 include/grpc++/impl/method_handler_impl.h
1121 include/grpc++/impl/rpc_method.h
1122 include/grpc++/impl/rpc_service_method.h
1123 include/grpc++/impl/serialization_traits.h
1124 include/grpc++/impl/server_builder_option.h
1125 include/grpc++/impl/server_builder_plugin.h
1126 include/grpc++/impl/server_initializer.h
1127 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001128 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001129 include/grpc++/security/auth_context.h
1130 include/grpc++/security/auth_metadata_processor.h
1131 include/grpc++/security/credentials.h
1132 include/grpc++/security/server_credentials.h
1133 include/grpc++/server.h
1134 include/grpc++/server_builder.h
1135 include/grpc++/server_context.h
1136 include/grpc++/server_posix.h
1137 include/grpc++/support/async_stream.h
1138 include/grpc++/support/async_unary_call.h
1139 include/grpc++/support/byte_buffer.h
1140 include/grpc++/support/channel_arguments.h
1141 include/grpc++/support/config.h
1142 include/grpc++/support/slice.h
1143 include/grpc++/support/status.h
1144 include/grpc++/support/status_code_enum.h
1145 include/grpc++/support/string_ref.h
1146 include/grpc++/support/stub_options.h
1147 include/grpc++/support/sync_stream.h
1148 include/grpc++/support/time.h
1149 include/grpc++/impl/codegen/async_stream.h
1150 include/grpc++/impl/codegen/async_unary_call.h
1151 include/grpc++/impl/codegen/call.h
1152 include/grpc++/impl/codegen/call_hook.h
1153 include/grpc++/impl/codegen/channel_interface.h
1154 include/grpc++/impl/codegen/client_context.h
1155 include/grpc++/impl/codegen/client_unary_call.h
1156 include/grpc++/impl/codegen/completion_queue.h
1157 include/grpc++/impl/codegen/completion_queue_tag.h
1158 include/grpc++/impl/codegen/config.h
1159 include/grpc++/impl/codegen/core_codegen_interface.h
1160 include/grpc++/impl/codegen/create_auth_context.h
1161 include/grpc++/impl/codegen/grpc_library.h
1162 include/grpc++/impl/codegen/method_handler_impl.h
1163 include/grpc++/impl/codegen/rpc_method.h
1164 include/grpc++/impl/codegen/rpc_service_method.h
1165 include/grpc++/impl/codegen/security/auth_context.h
1166 include/grpc++/impl/codegen/serialization_traits.h
1167 include/grpc++/impl/codegen/server_context.h
1168 include/grpc++/impl/codegen/server_interface.h
1169 include/grpc++/impl/codegen/service_type.h
1170 include/grpc++/impl/codegen/status.h
1171 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001172 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001173 include/grpc++/impl/codegen/string_ref.h
1174 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001175 include/grpc++/impl/codegen/sync_stream.h
1176 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001177 include/grpc/impl/codegen/byte_buffer_reader.h
1178 include/grpc/impl/codegen/compression_types.h
1179 include/grpc/impl/codegen/connectivity_state.h
1180 include/grpc/impl/codegen/grpc_types.h
1181 include/grpc/impl/codegen/propagation_bits.h
1182 include/grpc/impl/codegen/status.h
1183 include/grpc/impl/codegen/atm.h
1184 include/grpc/impl/codegen/atm_gcc_atomic.h
1185 include/grpc/impl/codegen/atm_gcc_sync.h
1186 include/grpc/impl/codegen/atm_windows.h
1187 include/grpc/impl/codegen/gpr_types.h
1188 include/grpc/impl/codegen/port_platform.h
1189 include/grpc/impl/codegen/slice.h
1190 include/grpc/impl/codegen/sync.h
1191 include/grpc/impl/codegen/sync_generic.h
1192 include/grpc/impl/codegen/sync_posix.h
1193 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001194)
1195 string(REPLACE "include/" "" _path ${_hdr})
1196 get_filename_component(_path ${_path} PATH)
1197 install(FILES ${_hdr}
1198 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1199 )
1200endforeach()
1201
1202
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001203if (gRPC_INSTALL)
1204 install(TARGETS grpc++ EXPORT gRPCTargets
1205 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1206 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1207 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1208 )
1209endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001210
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001211
Garrett Casto931a26b2016-10-04 09:18:29 -07001212add_library(grpc++_cronet
1213 src/cpp/client/cronet_credentials.cc
1214 src/cpp/client/insecure_credentials.cc
1215 src/cpp/common/insecure_create_auth_context.cc
1216 src/cpp/server/insecure_server_credentials.cc
1217 src/cpp/client/channel_cc.cc
1218 src/cpp/client/client_context.cc
1219 src/cpp/client/create_channel.cc
1220 src/cpp/client/create_channel_internal.cc
1221 src/cpp/client/create_channel_posix.cc
1222 src/cpp/client/credentials_cc.cc
1223 src/cpp/client/generic_stub.cc
1224 src/cpp/common/channel_arguments.cc
1225 src/cpp/common/channel_filter.cc
1226 src/cpp/common/completion_queue_cc.cc
1227 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07001228 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001229 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001230 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001231 src/cpp/server/async_generic_service.cc
1232 src/cpp/server/create_default_thread_pool.cc
1233 src/cpp/server/dynamic_thread_pool.cc
1234 src/cpp/server/server_builder.cc
1235 src/cpp/server/server_cc.cc
1236 src/cpp/server/server_context.cc
1237 src/cpp/server/server_credentials.cc
1238 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07001239 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07001240 src/cpp/util/byte_buffer_cc.cc
1241 src/cpp/util/slice_cc.cc
1242 src/cpp/util/status.cc
1243 src/cpp/util/string_ref.cc
1244 src/cpp/util/time_cc.cc
1245 src/cpp/codegen/codegen_init.cc
1246)
1247
1248target_include_directories(grpc++_cronet
1249 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1250 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1251 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1252 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1253 PRIVATE ${ZLIB_INCLUDE_DIR}
1254 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1255)
1256
1257target_link_libraries(grpc++_cronet
1258 ${_gRPC_BASELIB_LIBRARIES}
1259 ${_gRPC_SSL_LIBRARIES}
1260 gpr
1261 grpc_cronet
1262)
1263
1264foreach(_hdr
1265 include/grpc++/alarm.h
1266 include/grpc++/channel.h
1267 include/grpc++/client_context.h
1268 include/grpc++/completion_queue.h
1269 include/grpc++/create_channel.h
1270 include/grpc++/create_channel_posix.h
1271 include/grpc++/generic/async_generic_service.h
1272 include/grpc++/generic/generic_stub.h
1273 include/grpc++/grpc++.h
1274 include/grpc++/impl/call.h
1275 include/grpc++/impl/client_unary_call.h
1276 include/grpc++/impl/codegen/core_codegen.h
1277 include/grpc++/impl/grpc_library.h
1278 include/grpc++/impl/method_handler_impl.h
1279 include/grpc++/impl/rpc_method.h
1280 include/grpc++/impl/rpc_service_method.h
1281 include/grpc++/impl/serialization_traits.h
1282 include/grpc++/impl/server_builder_option.h
1283 include/grpc++/impl/server_builder_plugin.h
1284 include/grpc++/impl/server_initializer.h
1285 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07001286 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001287 include/grpc++/security/auth_context.h
1288 include/grpc++/security/auth_metadata_processor.h
1289 include/grpc++/security/credentials.h
1290 include/grpc++/security/server_credentials.h
1291 include/grpc++/server.h
1292 include/grpc++/server_builder.h
1293 include/grpc++/server_context.h
1294 include/grpc++/server_posix.h
1295 include/grpc++/support/async_stream.h
1296 include/grpc++/support/async_unary_call.h
1297 include/grpc++/support/byte_buffer.h
1298 include/grpc++/support/channel_arguments.h
1299 include/grpc++/support/config.h
1300 include/grpc++/support/slice.h
1301 include/grpc++/support/status.h
1302 include/grpc++/support/status_code_enum.h
1303 include/grpc++/support/string_ref.h
1304 include/grpc++/support/stub_options.h
1305 include/grpc++/support/sync_stream.h
1306 include/grpc++/support/time.h
1307 include/grpc++/impl/codegen/async_stream.h
1308 include/grpc++/impl/codegen/async_unary_call.h
1309 include/grpc++/impl/codegen/call.h
1310 include/grpc++/impl/codegen/call_hook.h
1311 include/grpc++/impl/codegen/channel_interface.h
1312 include/grpc++/impl/codegen/client_context.h
1313 include/grpc++/impl/codegen/client_unary_call.h
1314 include/grpc++/impl/codegen/completion_queue.h
1315 include/grpc++/impl/codegen/completion_queue_tag.h
1316 include/grpc++/impl/codegen/config.h
1317 include/grpc++/impl/codegen/core_codegen_interface.h
1318 include/grpc++/impl/codegen/create_auth_context.h
1319 include/grpc++/impl/codegen/grpc_library.h
1320 include/grpc++/impl/codegen/method_handler_impl.h
1321 include/grpc++/impl/codegen/rpc_method.h
1322 include/grpc++/impl/codegen/rpc_service_method.h
1323 include/grpc++/impl/codegen/security/auth_context.h
1324 include/grpc++/impl/codegen/serialization_traits.h
1325 include/grpc++/impl/codegen/server_context.h
1326 include/grpc++/impl/codegen/server_interface.h
1327 include/grpc++/impl/codegen/service_type.h
1328 include/grpc++/impl/codegen/status.h
1329 include/grpc++/impl/codegen/status_code_enum.h
1330 include/grpc++/impl/codegen/status_helper.h
1331 include/grpc++/impl/codegen/string_ref.h
1332 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07001333 include/grpc++/impl/codegen/sync_stream.h
1334 include/grpc++/impl/codegen/time.h
1335 include/grpc/impl/codegen/byte_buffer_reader.h
1336 include/grpc/impl/codegen/compression_types.h
1337 include/grpc/impl/codegen/connectivity_state.h
1338 include/grpc/impl/codegen/grpc_types.h
1339 include/grpc/impl/codegen/propagation_bits.h
1340 include/grpc/impl/codegen/status.h
1341 include/grpc/impl/codegen/atm.h
1342 include/grpc/impl/codegen/atm_gcc_atomic.h
1343 include/grpc/impl/codegen/atm_gcc_sync.h
1344 include/grpc/impl/codegen/atm_windows.h
1345 include/grpc/impl/codegen/gpr_types.h
1346 include/grpc/impl/codegen/port_platform.h
1347 include/grpc/impl/codegen/slice.h
1348 include/grpc/impl/codegen/sync.h
1349 include/grpc/impl/codegen/sync_generic.h
1350 include/grpc/impl/codegen/sync_posix.h
1351 include/grpc/impl/codegen/sync_windows.h
1352)
1353 string(REPLACE "include/" "" _path ${_hdr})
1354 get_filename_component(_path ${_path} PATH)
1355 install(FILES ${_hdr}
1356 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1357 )
1358endforeach()
1359
1360
1361if (gRPC_INSTALL)
1362 install(TARGETS grpc++_cronet EXPORT gRPCTargets
1363 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1364 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1365 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1366 )
1367endif()
1368
1369
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001370add_library(grpc++_reflection
1371 src/cpp/ext/proto_server_reflection.cc
1372 src/cpp/ext/proto_server_reflection_plugin.cc
Yuchen Zeng169c9852016-10-14 15:58:09 -07001373 src/proto/grpc/reflection/v1alpha/reflection.proto
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001374)
1375
1376target_include_directories(grpc++_reflection
1377 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1378 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1379 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1380 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001381 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001382 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1383)
1384
1385target_link_libraries(grpc++_reflection
1386 grpc++
1387)
1388
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001389foreach(_hdr
1390 include/grpc++/ext/proto_server_reflection_plugin.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001391)
1392 string(REPLACE "include/" "" _path ${_hdr})
1393 get_filename_component(_path ${_path} PATH)
1394 install(FILES ${_hdr}
1395 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1396 )
1397endforeach()
1398
1399
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001400if (gRPC_INSTALL)
1401 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1402 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1403 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1404 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1405 )
1406endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001407
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001408
1409add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001410 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001411 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001412 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001413 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001414 src/cpp/client/client_context.cc
1415 src/cpp/client/create_channel.cc
1416 src/cpp/client/create_channel_internal.cc
1417 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001418 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001419 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001420 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001421 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001422 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001423 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001424 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001425 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001426 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001427 src/cpp/server/async_generic_service.cc
1428 src/cpp/server/create_default_thread_pool.cc
1429 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001430 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001431 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001432 src/cpp/server/server_context.cc
1433 src/cpp/server/server_credentials.cc
1434 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001435 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001436 src/cpp/util/byte_buffer_cc.cc
1437 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001438 src/cpp/util/status.cc
1439 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001440 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001441 src/cpp/codegen/codegen_init.cc
1442)
1443
1444target_include_directories(grpc++_unsecure
1445 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1446 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1447 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1448 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001449 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001450 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1451)
1452
1453target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001454 ${_gRPC_BASELIB_LIBRARIES}
1455 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001456 gpr
1457 grpc_unsecure
1458)
1459
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001460foreach(_hdr
1461 include/grpc++/alarm.h
1462 include/grpc++/channel.h
1463 include/grpc++/client_context.h
1464 include/grpc++/completion_queue.h
1465 include/grpc++/create_channel.h
1466 include/grpc++/create_channel_posix.h
1467 include/grpc++/generic/async_generic_service.h
1468 include/grpc++/generic/generic_stub.h
1469 include/grpc++/grpc++.h
1470 include/grpc++/impl/call.h
1471 include/grpc++/impl/client_unary_call.h
1472 include/grpc++/impl/codegen/core_codegen.h
1473 include/grpc++/impl/grpc_library.h
1474 include/grpc++/impl/method_handler_impl.h
1475 include/grpc++/impl/rpc_method.h
1476 include/grpc++/impl/rpc_service_method.h
1477 include/grpc++/impl/serialization_traits.h
1478 include/grpc++/impl/server_builder_option.h
1479 include/grpc++/impl/server_builder_plugin.h
1480 include/grpc++/impl/server_initializer.h
1481 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07001482 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001483 include/grpc++/security/auth_context.h
1484 include/grpc++/security/auth_metadata_processor.h
1485 include/grpc++/security/credentials.h
1486 include/grpc++/security/server_credentials.h
1487 include/grpc++/server.h
1488 include/grpc++/server_builder.h
1489 include/grpc++/server_context.h
1490 include/grpc++/server_posix.h
1491 include/grpc++/support/async_stream.h
1492 include/grpc++/support/async_unary_call.h
1493 include/grpc++/support/byte_buffer.h
1494 include/grpc++/support/channel_arguments.h
1495 include/grpc++/support/config.h
1496 include/grpc++/support/slice.h
1497 include/grpc++/support/status.h
1498 include/grpc++/support/status_code_enum.h
1499 include/grpc++/support/string_ref.h
1500 include/grpc++/support/stub_options.h
1501 include/grpc++/support/sync_stream.h
1502 include/grpc++/support/time.h
1503 include/grpc++/impl/codegen/async_stream.h
1504 include/grpc++/impl/codegen/async_unary_call.h
1505 include/grpc++/impl/codegen/call.h
1506 include/grpc++/impl/codegen/call_hook.h
1507 include/grpc++/impl/codegen/channel_interface.h
1508 include/grpc++/impl/codegen/client_context.h
1509 include/grpc++/impl/codegen/client_unary_call.h
1510 include/grpc++/impl/codegen/completion_queue.h
1511 include/grpc++/impl/codegen/completion_queue_tag.h
1512 include/grpc++/impl/codegen/config.h
1513 include/grpc++/impl/codegen/core_codegen_interface.h
1514 include/grpc++/impl/codegen/create_auth_context.h
1515 include/grpc++/impl/codegen/grpc_library.h
1516 include/grpc++/impl/codegen/method_handler_impl.h
1517 include/grpc++/impl/codegen/rpc_method.h
1518 include/grpc++/impl/codegen/rpc_service_method.h
1519 include/grpc++/impl/codegen/security/auth_context.h
1520 include/grpc++/impl/codegen/serialization_traits.h
1521 include/grpc++/impl/codegen/server_context.h
1522 include/grpc++/impl/codegen/server_interface.h
1523 include/grpc++/impl/codegen/service_type.h
1524 include/grpc++/impl/codegen/status.h
1525 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001526 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001527 include/grpc++/impl/codegen/string_ref.h
1528 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001529 include/grpc++/impl/codegen/sync_stream.h
1530 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02001531 include/grpc/impl/codegen/byte_buffer_reader.h
1532 include/grpc/impl/codegen/compression_types.h
1533 include/grpc/impl/codegen/connectivity_state.h
1534 include/grpc/impl/codegen/grpc_types.h
1535 include/grpc/impl/codegen/propagation_bits.h
1536 include/grpc/impl/codegen/status.h
1537 include/grpc/impl/codegen/atm.h
1538 include/grpc/impl/codegen/atm_gcc_atomic.h
1539 include/grpc/impl/codegen/atm_gcc_sync.h
1540 include/grpc/impl/codegen/atm_windows.h
1541 include/grpc/impl/codegen/gpr_types.h
1542 include/grpc/impl/codegen/port_platform.h
1543 include/grpc/impl/codegen/slice.h
1544 include/grpc/impl/codegen/sync.h
1545 include/grpc/impl/codegen/sync_generic.h
1546 include/grpc/impl/codegen/sync_posix.h
1547 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001548)
1549 string(REPLACE "include/" "" _path ${_hdr})
1550 get_filename_component(_path ${_path} PATH)
1551 install(FILES ${_hdr}
1552 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1553 )
1554endforeach()
1555
1556
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001557if (gRPC_INSTALL)
1558 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1559 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1560 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1561 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1562 )
1563endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001564
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001565
1566add_library(grpc_plugin_support
1567 src/compiler/cpp_generator.cc
1568 src/compiler/csharp_generator.cc
1569 src/compiler/node_generator.cc
1570 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07001571 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001572 src/compiler/python_generator.cc
1573 src/compiler/ruby_generator.cc
1574)
1575
1576target_include_directories(grpc_plugin_support
1577 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1578 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1579 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1580 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001581 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001582 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1583)
1584
1585target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001586 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001587)
1588
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001589foreach(_hdr
1590 include/grpc++/impl/codegen/config_protobuf.h
1591)
1592 string(REPLACE "include/" "" _path ${_hdr})
1593 get_filename_component(_path ${_path} PATH)
1594 install(FILES ${_hdr}
1595 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1596 )
1597endforeach()
1598
1599
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001600if (gRPC_INSTALL)
1601 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1602 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1603 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1604 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1605 )
1606endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001607
1608
1609add_library(grpc_csharp_ext
1610 src/csharp/ext/grpc_csharp_ext.c
1611)
1612
1613target_include_directories(grpc_csharp_ext
1614 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1615 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1616 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1617 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001618 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001619 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1620)
1621
1622target_link_libraries(grpc_csharp_ext
1623 grpc
1624 gpr
1625)
1626
1627
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001628
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001629if (gRPC_INSTALL)
1630 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1631 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1632 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1633 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1634 )
1635endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001636
1637
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001638
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001639add_executable(gen_hpack_tables
1640 tools/codegen/core/gen_hpack_tables.c
1641)
1642
1643target_include_directories(gen_hpack_tables
1644 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1645 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1646 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1647 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1648 PRIVATE ${ZLIB_ROOT_DIR}
1649 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1650)
1651
1652target_link_libraries(gen_hpack_tables
1653 gpr
1654 grpc
1655)
1656
1657
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001658if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001659 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1660 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1661 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1662 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1663 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001664endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001665
1666
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001667add_executable(gen_legal_metadata_characters
1668 tools/codegen/core/gen_legal_metadata_characters.c
1669)
1670
1671target_include_directories(gen_legal_metadata_characters
1672 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1673 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1674 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1675 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1676 PRIVATE ${ZLIB_ROOT_DIR}
1677 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1678)
1679
1680
1681
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001682if (gRPC_INSTALL)
1683 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1684 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1685 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1686 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1687 )
1688endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001689
1690
Craig Tiller1c7a8422016-08-18 11:13:11 -07001691add_executable(gen_percent_encoding_tables
1692 tools/codegen/core/gen_percent_encoding_tables.c
1693)
1694
1695target_include_directories(gen_percent_encoding_tables
1696 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1697 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1698 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1699 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1700 PRIVATE ${ZLIB_ROOT_DIR}
1701 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1702)
1703
1704
1705
Craig Tiller426dcde2016-09-07 15:43:10 -07001706if (gRPC_INSTALL)
1707 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1708 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1709 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1710 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1711 )
1712endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001713
1714
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001715add_executable(grpc_create_jwt
1716 test/core/security/create_jwt.c
1717)
1718
1719target_include_directories(grpc_create_jwt
1720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1721 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1722 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1723 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1724 PRIVATE ${ZLIB_ROOT_DIR}
1725 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1726)
1727
1728target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001729 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001730 grpc
1731 gpr
1732)
1733
1734
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001735if (gRPC_INSTALL)
1736 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1737 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1738 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1739 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1740 )
1741endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001742
1743
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001744add_executable(grpc_print_google_default_creds_token
1745 test/core/security/print_google_default_creds_token.c
1746)
1747
1748target_include_directories(grpc_print_google_default_creds_token
1749 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1750 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1751 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1752 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1753 PRIVATE ${ZLIB_ROOT_DIR}
1754 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1755)
1756
1757target_link_libraries(grpc_print_google_default_creds_token
1758 grpc
1759 gpr
1760)
1761
1762
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001763if (gRPC_INSTALL)
1764 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1765 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1766 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1767 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1768 )
1769endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001770
1771
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001772add_executable(grpc_verify_jwt
1773 test/core/security/verify_jwt.c
1774)
1775
1776target_include_directories(grpc_verify_jwt
1777 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1778 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1779 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1780 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1781 PRIVATE ${ZLIB_ROOT_DIR}
1782 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1783)
1784
1785target_link_libraries(grpc_verify_jwt
1786 grpc
1787 gpr
1788)
1789
1790
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001791if (gRPC_INSTALL)
1792 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1793 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1794 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1795 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1796 )
1797endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001798
1799
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001800add_executable(grpc_cpp_plugin
1801 src/compiler/cpp_plugin.cc
1802)
1803
1804target_include_directories(grpc_cpp_plugin
1805 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1806 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1807 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1808 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1809 PRIVATE ${ZLIB_ROOT_DIR}
1810 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1811)
1812
1813target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001814 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001815 grpc_plugin_support
1816)
1817
1818
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001819if (gRPC_INSTALL)
1820 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1821 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1822 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1823 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1824 )
1825endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001826
1827
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001828add_executable(grpc_csharp_plugin
1829 src/compiler/csharp_plugin.cc
1830)
1831
1832target_include_directories(grpc_csharp_plugin
1833 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1834 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1835 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1836 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1837 PRIVATE ${ZLIB_ROOT_DIR}
1838 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1839)
1840
1841target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001842 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001843 grpc_plugin_support
1844)
1845
1846
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001847if (gRPC_INSTALL)
1848 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1849 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1850 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1851 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1852 )
1853endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001854
1855
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001856add_executable(grpc_node_plugin
1857 src/compiler/node_plugin.cc
1858)
1859
1860target_include_directories(grpc_node_plugin
1861 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1863 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1864 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1865 PRIVATE ${ZLIB_ROOT_DIR}
1866 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1867)
1868
1869target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001870 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001871 grpc_plugin_support
1872)
1873
1874
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001875if (gRPC_INSTALL)
1876 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1877 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1878 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1879 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1880 )
1881endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001882
1883
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001884add_executable(grpc_objective_c_plugin
1885 src/compiler/objective_c_plugin.cc
1886)
1887
1888target_include_directories(grpc_objective_c_plugin
1889 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1890 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1891 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1892 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1893 PRIVATE ${ZLIB_ROOT_DIR}
1894 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1895)
1896
1897target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001898 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001899 grpc_plugin_support
1900)
1901
1902
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001903if (gRPC_INSTALL)
1904 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
1905 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1906 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1907 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1908 )
1909endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001910
1911
Stanley Cheung857a1302016-09-29 17:26:29 -07001912add_executable(grpc_php_plugin
1913 src/compiler/php_plugin.cc
1914)
1915
1916target_include_directories(grpc_php_plugin
1917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1919 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1920 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1921 PRIVATE ${ZLIB_ROOT_DIR}
1922 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1923)
1924
1925target_link_libraries(grpc_php_plugin
1926 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
1927 grpc_plugin_support
1928)
1929
1930
1931if (gRPC_INSTALL)
1932 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
1933 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1934 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1935 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1936 )
1937endif()
1938
1939
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001940add_executable(grpc_python_plugin
1941 src/compiler/python_plugin.cc
1942)
1943
1944target_include_directories(grpc_python_plugin
1945 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1946 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1947 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1948 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1949 PRIVATE ${ZLIB_ROOT_DIR}
1950 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1951)
1952
1953target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001954 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001955 grpc_plugin_support
1956)
1957
1958
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001959if (gRPC_INSTALL)
1960 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
1961 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1962 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1963 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1964 )
1965endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001966
1967
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001968add_executable(grpc_ruby_plugin
1969 src/compiler/ruby_plugin.cc
1970)
1971
1972target_include_directories(grpc_ruby_plugin
1973 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1974 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1975 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1976 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1977 PRIVATE ${ZLIB_ROOT_DIR}
1978 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1979)
1980
1981target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001982 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001983 grpc_plugin_support
1984)
1985
1986
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001987if (gRPC_INSTALL)
1988 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
1989 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1990 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1991 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1992 )
1993endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001994
1995
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001996
1997
1998
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001999
2000
2001
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002002if (gRPC_INSTALL)
2003 install(EXPORT gRPCTargets
2004 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2005 NAMESPACE gRPC::
2006 )
2007endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002008
2009foreach(_config gRPCConfig gRPCConfigVersion)
2010 configure_file(tools/cmake/${_config}.cmake.in
2011 ${_config}.cmake @ONLY)
2012 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2013 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2014 )
2015endforeach()