blob: 7dec554f68a880c27e3baa954b0aa921cd424e3e [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, Google Inc.
12# All rights reserved.
13#
14# Redistribution and use in source and binary forms, with or without
15# modification, are permitted provided that the following conditions are
16# met:
17#
18# * Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# * Redistributions in binary form must reproduce the above
21# copyright notice, this list of conditions and the following disclaimer
22# in the documentation and/or other materials provided with the
23# distribution.
24# * Neither the name of Google Inc. nor the names of its
25# contributors may be used to endorse or promote products derived from
26# this software without specific prior written permission.
27#
28# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
Nicolas "Pixel" Noble49bfb922016-07-12 09:31:41 +020045set(PACKAGE_VERSION "1.1.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030051if (NOT MSVC)
52 set(gRPC_INSTALL ON CACHE BOOL "Generate installation target")
53else()
54 set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target")
55endif()
56
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030057set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
58set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010059
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
61set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010062
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030063set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
64set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010065
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010067
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030068if (MSVC)
69 add_definitions( -D_WIN32_WINNT=0x600 )
70endif()
71
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030072if (gRPC_USE_PROTO_LITE)
73 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010074 add_definitions("-DGRPC_USE_PROTO_LITE")
75else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030076 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010077endif()
78
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030079if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
80 if(NOT ZLIB_ROOT_DIR)
81 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
82 endif()
83 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
84 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
85 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
86 if(TARGET zlibstatic)
87 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
88 endif()
89 else()
90 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
91 endif()
92elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
93 find_package(ZLIB)
94 if(TARGET ZLIB::ZLIB)
95 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
96 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +030097 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010098endif()
99
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300100if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
101 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
102 # Disable them unless they are explicitly requested from the cmake command line (when we assume
103 # gmock is downloaded to the right location inside protobuf).
104 if(NOT protobuf_BUILD_TESTS)
105 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
106 endif()
107 if(NOT PROTOBUF_ROOT_DIR)
108 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
109 endif()
110 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300111 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300112 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
113 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
114 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
115 endif()
116 if(TARGET libprotoc)
117 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
118 endif()
119 else()
120 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
121 endif()
122elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
123 find_package(protobuf CONFIG)
124 if(protobuf_FOUND)
125 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
126 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
127 endif()
128 if(TARGET protobuf::libprotoc)
129 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
130 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300131 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300132 else()
133 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300134 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300135 endif()
136endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100137
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300138if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
139 if(NOT BORINGSSL_ROOT_DIR)
140 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
141 endif()
142 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
143 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
144 if(TARGET ssl)
145 set(_gRPC_SSL_LIBRARIES ssl)
146 endif()
147 else()
148 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
149 endif()
150elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
151 find_package(OpenSSL)
152 if(TARGET OpenSSL::SSL)
153 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
154 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300155 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300156endif()
157
158if(NOT MSVC)
159 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
160 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
161endif()
162
163if(WIN32 AND MSVC)
164 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100165endif()
166
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300167include(GNUInstallDirs)
168if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
169 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
170endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100171
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200172
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100173add_library(gpr
174 src/core/lib/profiling/basic_timers.c
175 src/core/lib/profiling/stap_timers.c
176 src/core/lib/support/alloc.c
177 src/core/lib/support/avl.c
178 src/core/lib/support/backoff.c
179 src/core/lib/support/cmdline.c
180 src/core/lib/support/cpu_iphone.c
181 src/core/lib/support/cpu_linux.c
182 src/core/lib/support/cpu_posix.c
183 src/core/lib/support/cpu_windows.c
184 src/core/lib/support/env_linux.c
185 src/core/lib/support/env_posix.c
186 src/core/lib/support/env_windows.c
187 src/core/lib/support/histogram.c
188 src/core/lib/support/host_port.c
189 src/core/lib/support/log.c
190 src/core/lib/support/log_android.c
191 src/core/lib/support/log_linux.c
192 src/core/lib/support/log_posix.c
193 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700194 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100195 src/core/lib/support/murmur_hash.c
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
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200281
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
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200290
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100291add_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. Rothdfbdefe2016-07-14 09:18:22 -0700298 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100299 src/core/lib/channel/http_client_filter.c
300 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700301 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100302 src/core/lib/compression/compression.c
303 src/core/lib/compression/message_compress.c
304 src/core/lib/debug/trace.c
305 src/core/lib/http/format_request.c
306 src/core/lib/http/httpcli.c
307 src/core/lib/http/parser.c
308 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700309 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100310 src/core/lib/iomgr/endpoint.c
311 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700312 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100313 src/core/lib/iomgr/endpoint_pair_windows.c
314 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200315 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100316 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
317 src/core/lib/iomgr/ev_poll_posix.c
318 src/core/lib/iomgr/ev_posix.c
319 src/core/lib/iomgr/exec_ctx.c
320 src/core/lib/iomgr/executor.c
321 src/core/lib/iomgr/iocp_windows.c
322 src/core/lib/iomgr/iomgr.c
323 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700324 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100325 src/core/lib/iomgr/iomgr_windows.c
326 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200327 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100328 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700329 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100330 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700331 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100332 src/core/lib/iomgr/pollset_windows.c
333 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700334 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100335 src/core/lib/iomgr/resolve_address_windows.c
336 src/core/lib/iomgr/sockaddr_utils.c
337 src/core/lib/iomgr/socket_utils_common_posix.c
338 src/core/lib/iomgr/socket_utils_linux.c
339 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700340 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700341 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100342 src/core/lib/iomgr/socket_windows.c
343 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700344 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100345 src/core/lib/iomgr/tcp_client_windows.c
346 src/core/lib/iomgr/tcp_posix.c
347 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700348 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100349 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700350 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100351 src/core/lib/iomgr/tcp_windows.c
352 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700353 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100354 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700355 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100356 src/core/lib/iomgr/udp_server.c
357 src/core/lib/iomgr/unix_sockets_posix.c
358 src/core/lib/iomgr/unix_sockets_posix_noop.c
359 src/core/lib/iomgr/wakeup_fd_eventfd.c
360 src/core/lib/iomgr/wakeup_fd_nospecial.c
361 src/core/lib/iomgr/wakeup_fd_pipe.c
362 src/core/lib/iomgr/wakeup_fd_posix.c
363 src/core/lib/iomgr/workqueue_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700364 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100365 src/core/lib/iomgr/workqueue_windows.c
366 src/core/lib/json/json.c
367 src/core/lib/json/json_reader.c
368 src/core/lib/json/json_string.c
369 src/core/lib/json/json_writer.c
370 src/core/lib/surface/alarm.c
371 src/core/lib/surface/api_trace.c
372 src/core/lib/surface/byte_buffer.c
373 src/core/lib/surface/byte_buffer_reader.c
374 src/core/lib/surface/call.c
375 src/core/lib/surface/call_details.c
376 src/core/lib/surface/call_log_batch.c
377 src/core/lib/surface/channel.c
378 src/core/lib/surface/channel_init.c
379 src/core/lib/surface/channel_ping.c
380 src/core/lib/surface/channel_stack_type.c
381 src/core/lib/surface/completion_queue.c
382 src/core/lib/surface/event_string.c
383 src/core/lib/surface/lame_client.c
384 src/core/lib/surface/metadata_array.c
385 src/core/lib/surface/server.c
386 src/core/lib/surface/validate_metadata.c
387 src/core/lib/surface/version.c
388 src/core/lib/transport/byte_stream.c
389 src/core/lib/transport/connectivity_state.c
390 src/core/lib/transport/metadata.c
391 src/core/lib/transport/metadata_batch.c
392 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400393 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100394 src/core/lib/transport/transport.c
395 src/core/lib/transport/transport_op_string.c
396 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
397 src/core/ext/transport/chttp2/transport/bin_decoder.c
398 src/core/ext/transport/chttp2/transport/bin_encoder.c
399 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
400 src/core/ext/transport/chttp2/transport/chttp2_transport.c
401 src/core/ext/transport/chttp2/transport/frame_data.c
402 src/core/ext/transport/chttp2/transport/frame_goaway.c
403 src/core/ext/transport/chttp2/transport/frame_ping.c
404 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
405 src/core/ext/transport/chttp2/transport/frame_settings.c
406 src/core/ext/transport/chttp2/transport/frame_window_update.c
407 src/core/ext/transport/chttp2/transport/hpack_encoder.c
408 src/core/ext/transport/chttp2/transport/hpack_parser.c
409 src/core/ext/transport/chttp2/transport/hpack_table.c
410 src/core/ext/transport/chttp2/transport/huffsyms.c
411 src/core/ext/transport/chttp2/transport/incoming_metadata.c
412 src/core/ext/transport/chttp2/transport/parsing.c
413 src/core/ext/transport/chttp2/transport/status_conversion.c
414 src/core/ext/transport/chttp2/transport/stream_lists.c
415 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100416 src/core/ext/transport/chttp2/transport/varint.c
417 src/core/ext/transport/chttp2/transport/writing.c
418 src/core/ext/transport/chttp2/alpn/alpn.c
419 src/core/lib/http/httpcli_security_connector.c
420 src/core/lib/security/context/security_context.c
421 src/core/lib/security/credentials/composite/composite_credentials.c
422 src/core/lib/security/credentials/credentials.c
423 src/core/lib/security/credentials/credentials_metadata.c
424 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700425 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100426 src/core/lib/security/credentials/google_default/google_default_credentials.c
427 src/core/lib/security/credentials/iam/iam_credentials.c
428 src/core/lib/security/credentials/jwt/json_token.c
429 src/core/lib/security/credentials/jwt/jwt_credentials.c
430 src/core/lib/security/credentials/jwt/jwt_verifier.c
431 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
432 src/core/lib/security/credentials/plugin/plugin_credentials.c
433 src/core/lib/security/credentials/ssl/ssl_credentials.c
434 src/core/lib/security/transport/client_auth_filter.c
435 src/core/lib/security/transport/handshake.c
436 src/core/lib/security/transport/secure_endpoint.c
437 src/core/lib/security/transport/security_connector.c
438 src/core/lib/security/transport/server_auth_filter.c
439 src/core/lib/security/transport/tsi_error.c
440 src/core/lib/security/util/b64.c
441 src/core/lib/security/util/json_util.c
442 src/core/lib/surface/init_secure.c
443 src/core/lib/tsi/fake_transport_security.c
444 src/core/lib/tsi/ssl_transport_security.c
445 src/core/lib/tsi/transport_security.c
446 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
447 src/core/ext/client_config/channel_connectivity.c
448 src/core/ext/client_config/client_channel.c
449 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100450 src/core/ext/client_config/client_config_plugin.c
451 src/core/ext/client_config/connector.c
452 src/core/ext/client_config/default_initial_connect_string.c
Mark D. Roth1102a9e2016-07-22 09:10:01 -0700453 src/core/ext/client_config/http_connect_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100454 src/core/ext/client_config/initial_connect_string.c
455 src/core/ext/client_config/lb_policy.c
456 src/core/ext/client_config/lb_policy_factory.c
457 src/core/ext/client_config/lb_policy_registry.c
458 src/core/ext/client_config/parse_address.c
459 src/core/ext/client_config/resolver.c
460 src/core/ext/client_config/resolver_factory.c
461 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700462 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100463 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100464 src/core/ext/client_config/subchannel_index.c
465 src/core/ext/client_config/uri_parser.c
466 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
467 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
468 src/core/ext/transport/chttp2/client/insecure/channel_create.c
469 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700470 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100471 src/core/ext/lb_policy/grpclb/load_balancer_api.c
472 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
473 third_party/nanopb/pb_common.c
474 third_party/nanopb/pb_decode.c
475 third_party/nanopb/pb_encode.c
476 src/core/ext/lb_policy/pick_first/pick_first.c
477 src/core/ext/lb_policy/round_robin/round_robin.c
478 src/core/ext/resolver/dns/native/dns_resolver.c
479 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
480 src/core/ext/load_reporting/load_reporting.c
481 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700482 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100483 src/core/ext/census/context.c
484 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700485 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100486 src/core/ext/census/grpc_context.c
487 src/core/ext/census/grpc_filter.c
488 src/core/ext/census/grpc_plugin.c
489 src/core/ext/census/initialize.c
490 src/core/ext/census/mlog.c
491 src/core/ext/census/operation.c
492 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700493 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700494 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100495 src/core/ext/census/tracing.c
496 src/core/plugin_registry/grpc_plugin_registry.c
497)
498
499target_include_directories(grpc
500 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
501 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
502 PRIVATE ${BORINGSSL_ROOT_DIR}/include
503 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300504 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100505 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
506)
507
508target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300509 ${_gRPC_BASELIB_LIBRARIES}
510 ${_gRPC_SSL_LIBRARIES}
511 ${_gRPC_ZLIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100512 gpr
513)
514
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300515foreach(_hdr
516 include/grpc/byte_buffer.h
517 include/grpc/byte_buffer_reader.h
518 include/grpc/compression.h
519 include/grpc/grpc.h
520 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200521 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300522 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300523 include/grpc/impl/codegen/byte_buffer_reader.h
524 include/grpc/impl/codegen/compression_types.h
525 include/grpc/impl/codegen/connectivity_state.h
526 include/grpc/impl/codegen/grpc_types.h
527 include/grpc/impl/codegen/propagation_bits.h
528 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300529 include/grpc/impl/codegen/atm.h
530 include/grpc/impl/codegen/atm_gcc_atomic.h
531 include/grpc/impl/codegen/atm_gcc_sync.h
532 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700533 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300534 include/grpc/impl/codegen/port_platform.h
535 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300536 include/grpc/impl/codegen/sync.h
537 include/grpc/impl/codegen/sync_generic.h
538 include/grpc/impl/codegen/sync_posix.h
539 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300540 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300541 include/grpc/census.h
542)
543 string(REPLACE "include/" "" _path ${_hdr})
544 get_filename_component(_path ${_path} PATH)
545 install(FILES ${_hdr}
546 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
547 )
548endforeach()
549
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200550
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300551if (gRPC_INSTALL)
552 install(TARGETS grpc EXPORT gRPCTargets
553 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
554 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
555 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
556 )
557endif()
558
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200559
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100560add_library(grpc_cronet
561 src/core/lib/surface/init.c
562 src/core/lib/channel/channel_args.c
563 src/core/lib/channel/channel_stack.c
564 src/core/lib/channel/channel_stack_builder.c
565 src/core/lib/channel/compress_filter.c
566 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700567 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100568 src/core/lib/channel/http_client_filter.c
569 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700570 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100571 src/core/lib/compression/compression.c
572 src/core/lib/compression/message_compress.c
573 src/core/lib/debug/trace.c
574 src/core/lib/http/format_request.c
575 src/core/lib/http/httpcli.c
576 src/core/lib/http/parser.c
577 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700578 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100579 src/core/lib/iomgr/endpoint.c
580 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700581 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100582 src/core/lib/iomgr/endpoint_pair_windows.c
583 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200584 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100585 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
586 src/core/lib/iomgr/ev_poll_posix.c
587 src/core/lib/iomgr/ev_posix.c
588 src/core/lib/iomgr/exec_ctx.c
589 src/core/lib/iomgr/executor.c
590 src/core/lib/iomgr/iocp_windows.c
591 src/core/lib/iomgr/iomgr.c
592 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700593 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100594 src/core/lib/iomgr/iomgr_windows.c
595 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200596 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100597 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700598 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100599 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700600 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100601 src/core/lib/iomgr/pollset_windows.c
602 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700603 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100604 src/core/lib/iomgr/resolve_address_windows.c
605 src/core/lib/iomgr/sockaddr_utils.c
606 src/core/lib/iomgr/socket_utils_common_posix.c
607 src/core/lib/iomgr/socket_utils_linux.c
608 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700609 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700610 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100611 src/core/lib/iomgr/socket_windows.c
612 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700613 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100614 src/core/lib/iomgr/tcp_client_windows.c
615 src/core/lib/iomgr/tcp_posix.c
616 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700617 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100618 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700619 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100620 src/core/lib/iomgr/tcp_windows.c
621 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700622 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100623 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700624 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100625 src/core/lib/iomgr/udp_server.c
626 src/core/lib/iomgr/unix_sockets_posix.c
627 src/core/lib/iomgr/unix_sockets_posix_noop.c
628 src/core/lib/iomgr/wakeup_fd_eventfd.c
629 src/core/lib/iomgr/wakeup_fd_nospecial.c
630 src/core/lib/iomgr/wakeup_fd_pipe.c
631 src/core/lib/iomgr/wakeup_fd_posix.c
632 src/core/lib/iomgr/workqueue_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700633 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100634 src/core/lib/iomgr/workqueue_windows.c
635 src/core/lib/json/json.c
636 src/core/lib/json/json_reader.c
637 src/core/lib/json/json_string.c
638 src/core/lib/json/json_writer.c
639 src/core/lib/surface/alarm.c
640 src/core/lib/surface/api_trace.c
641 src/core/lib/surface/byte_buffer.c
642 src/core/lib/surface/byte_buffer_reader.c
643 src/core/lib/surface/call.c
644 src/core/lib/surface/call_details.c
645 src/core/lib/surface/call_log_batch.c
646 src/core/lib/surface/channel.c
647 src/core/lib/surface/channel_init.c
648 src/core/lib/surface/channel_ping.c
649 src/core/lib/surface/channel_stack_type.c
650 src/core/lib/surface/completion_queue.c
651 src/core/lib/surface/event_string.c
652 src/core/lib/surface/lame_client.c
653 src/core/lib/surface/metadata_array.c
654 src/core/lib/surface/server.c
655 src/core/lib/surface/validate_metadata.c
656 src/core/lib/surface/version.c
657 src/core/lib/transport/byte_stream.c
658 src/core/lib/transport/connectivity_state.c
659 src/core/lib/transport/metadata.c
660 src/core/lib/transport/metadata_batch.c
661 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400662 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100663 src/core/lib/transport/transport.c
664 src/core/lib/transport/transport_op_string.c
665 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
666 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
667 src/core/ext/transport/cronet/transport/cronet_transport.c
668 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
669 src/core/ext/transport/chttp2/transport/bin_decoder.c
670 src/core/ext/transport/chttp2/transport/bin_encoder.c
671 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
672 src/core/ext/transport/chttp2/transport/chttp2_transport.c
673 src/core/ext/transport/chttp2/transport/frame_data.c
674 src/core/ext/transport/chttp2/transport/frame_goaway.c
675 src/core/ext/transport/chttp2/transport/frame_ping.c
676 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
677 src/core/ext/transport/chttp2/transport/frame_settings.c
678 src/core/ext/transport/chttp2/transport/frame_window_update.c
679 src/core/ext/transport/chttp2/transport/hpack_encoder.c
680 src/core/ext/transport/chttp2/transport/hpack_parser.c
681 src/core/ext/transport/chttp2/transport/hpack_table.c
682 src/core/ext/transport/chttp2/transport/huffsyms.c
683 src/core/ext/transport/chttp2/transport/incoming_metadata.c
684 src/core/ext/transport/chttp2/transport/parsing.c
685 src/core/ext/transport/chttp2/transport/status_conversion.c
686 src/core/ext/transport/chttp2/transport/stream_lists.c
687 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100688 src/core/ext/transport/chttp2/transport/varint.c
689 src/core/ext/transport/chttp2/transport/writing.c
690 src/core/ext/transport/chttp2/alpn/alpn.c
691 src/core/ext/client_config/channel_connectivity.c
692 src/core/ext/client_config/client_channel.c
693 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100694 src/core/ext/client_config/client_config_plugin.c
695 src/core/ext/client_config/connector.c
696 src/core/ext/client_config/default_initial_connect_string.c
Mark D. Roth1102a9e2016-07-22 09:10:01 -0700697 src/core/ext/client_config/http_connect_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100698 src/core/ext/client_config/initial_connect_string.c
699 src/core/ext/client_config/lb_policy.c
700 src/core/ext/client_config/lb_policy_factory.c
701 src/core/ext/client_config/lb_policy_registry.c
702 src/core/ext/client_config/parse_address.c
703 src/core/ext/client_config/resolver.c
704 src/core/ext/client_config/resolver_factory.c
705 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700706 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100707 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100708 src/core/ext/client_config/subchannel_index.c
709 src/core/ext/client_config/uri_parser.c
710 src/core/lib/http/httpcli_security_connector.c
711 src/core/lib/security/context/security_context.c
712 src/core/lib/security/credentials/composite/composite_credentials.c
713 src/core/lib/security/credentials/credentials.c
714 src/core/lib/security/credentials/credentials_metadata.c
715 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700716 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100717 src/core/lib/security/credentials/google_default/google_default_credentials.c
718 src/core/lib/security/credentials/iam/iam_credentials.c
719 src/core/lib/security/credentials/jwt/json_token.c
720 src/core/lib/security/credentials/jwt/jwt_credentials.c
721 src/core/lib/security/credentials/jwt/jwt_verifier.c
722 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
723 src/core/lib/security/credentials/plugin/plugin_credentials.c
724 src/core/lib/security/credentials/ssl/ssl_credentials.c
725 src/core/lib/security/transport/client_auth_filter.c
726 src/core/lib/security/transport/handshake.c
727 src/core/lib/security/transport/secure_endpoint.c
728 src/core/lib/security/transport/security_connector.c
729 src/core/lib/security/transport/server_auth_filter.c
730 src/core/lib/security/transport/tsi_error.c
731 src/core/lib/security/util/b64.c
732 src/core/lib/security/util/json_util.c
733 src/core/lib/surface/init_secure.c
734 src/core/lib/tsi/fake_transport_security.c
735 src/core/lib/tsi/ssl_transport_security.c
736 src/core/lib/tsi/transport_security.c
737 src/core/plugin_registry/grpc_cronet_plugin_registry.c
738)
739
740target_include_directories(grpc_cronet
741 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
742 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
743 PRIVATE ${BORINGSSL_ROOT_DIR}/include
744 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300745 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100746 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
747)
748
749target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300750 ${_gRPC_BASELIB_LIBRARIES}
751 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100752 gpr
753)
754
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300755foreach(_hdr
756 include/grpc/byte_buffer.h
757 include/grpc/byte_buffer_reader.h
758 include/grpc/compression.h
759 include/grpc/grpc.h
760 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +0200761 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300762 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300763 include/grpc/impl/codegen/byte_buffer_reader.h
764 include/grpc/impl/codegen/compression_types.h
765 include/grpc/impl/codegen/connectivity_state.h
766 include/grpc/impl/codegen/grpc_types.h
767 include/grpc/impl/codegen/propagation_bits.h
768 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300769 include/grpc/impl/codegen/atm.h
770 include/grpc/impl/codegen/atm_gcc_atomic.h
771 include/grpc/impl/codegen/atm_gcc_sync.h
772 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700773 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300774 include/grpc/impl/codegen/port_platform.h
775 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300776 include/grpc/impl/codegen/sync.h
777 include/grpc/impl/codegen/sync_generic.h
778 include/grpc/impl/codegen/sync_posix.h
779 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300780 include/grpc/grpc_cronet.h
781 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300782)
783 string(REPLACE "include/" "" _path ${_hdr})
784 get_filename_component(_path ${_path} PATH)
785 install(FILES ${_hdr}
786 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
787 )
788endforeach()
789
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200790
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300791if (gRPC_INSTALL)
792 install(TARGETS grpc_cronet EXPORT gRPCTargets
793 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
794 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
795 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
796 )
797endif()
798
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +0200799
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100800add_library(grpc_unsecure
801 src/core/lib/surface/init.c
802 src/core/lib/surface/init_unsecure.c
803 src/core/lib/channel/channel_args.c
804 src/core/lib/channel/channel_stack.c
805 src/core/lib/channel/channel_stack_builder.c
806 src/core/lib/channel/compress_filter.c
807 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700808 src/core/lib/channel/handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100809 src/core/lib/channel/http_client_filter.c
810 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700811 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100812 src/core/lib/compression/compression.c
813 src/core/lib/compression/message_compress.c
814 src/core/lib/debug/trace.c
815 src/core/lib/http/format_request.c
816 src/core/lib/http/httpcli.c
817 src/core/lib/http/parser.c
818 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700819 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100820 src/core/lib/iomgr/endpoint.c
821 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700822 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100823 src/core/lib/iomgr/endpoint_pair_windows.c
824 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200825 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100826 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
827 src/core/lib/iomgr/ev_poll_posix.c
828 src/core/lib/iomgr/ev_posix.c
829 src/core/lib/iomgr/exec_ctx.c
830 src/core/lib/iomgr/executor.c
831 src/core/lib/iomgr/iocp_windows.c
832 src/core/lib/iomgr/iomgr.c
833 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700834 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100835 src/core/lib/iomgr/iomgr_windows.c
836 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200837 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100838 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700839 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100840 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700841 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100842 src/core/lib/iomgr/pollset_windows.c
843 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700844 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100845 src/core/lib/iomgr/resolve_address_windows.c
846 src/core/lib/iomgr/sockaddr_utils.c
847 src/core/lib/iomgr/socket_utils_common_posix.c
848 src/core/lib/iomgr/socket_utils_linux.c
849 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700850 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700851 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100852 src/core/lib/iomgr/socket_windows.c
853 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700854 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100855 src/core/lib/iomgr/tcp_client_windows.c
856 src/core/lib/iomgr/tcp_posix.c
857 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700858 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100859 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700860 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100861 src/core/lib/iomgr/tcp_windows.c
862 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700863 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100864 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700865 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100866 src/core/lib/iomgr/udp_server.c
867 src/core/lib/iomgr/unix_sockets_posix.c
868 src/core/lib/iomgr/unix_sockets_posix_noop.c
869 src/core/lib/iomgr/wakeup_fd_eventfd.c
870 src/core/lib/iomgr/wakeup_fd_nospecial.c
871 src/core/lib/iomgr/wakeup_fd_pipe.c
872 src/core/lib/iomgr/wakeup_fd_posix.c
873 src/core/lib/iomgr/workqueue_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700874 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100875 src/core/lib/iomgr/workqueue_windows.c
876 src/core/lib/json/json.c
877 src/core/lib/json/json_reader.c
878 src/core/lib/json/json_string.c
879 src/core/lib/json/json_writer.c
880 src/core/lib/surface/alarm.c
881 src/core/lib/surface/api_trace.c
882 src/core/lib/surface/byte_buffer.c
883 src/core/lib/surface/byte_buffer_reader.c
884 src/core/lib/surface/call.c
885 src/core/lib/surface/call_details.c
886 src/core/lib/surface/call_log_batch.c
887 src/core/lib/surface/channel.c
888 src/core/lib/surface/channel_init.c
889 src/core/lib/surface/channel_ping.c
890 src/core/lib/surface/channel_stack_type.c
891 src/core/lib/surface/completion_queue.c
892 src/core/lib/surface/event_string.c
893 src/core/lib/surface/lame_client.c
894 src/core/lib/surface/metadata_array.c
895 src/core/lib/surface/server.c
896 src/core/lib/surface/validate_metadata.c
897 src/core/lib/surface/version.c
898 src/core/lib/transport/byte_stream.c
899 src/core/lib/transport/connectivity_state.c
900 src/core/lib/transport/metadata.c
901 src/core/lib/transport/metadata_batch.c
902 src/core/lib/transport/static_metadata.c
Robbie Shade710d2422016-07-13 15:15:38 -0400903 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100904 src/core/lib/transport/transport.c
905 src/core/lib/transport/transport_op_string.c
906 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
907 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
908 src/core/ext/transport/chttp2/transport/bin_decoder.c
909 src/core/ext/transport/chttp2/transport/bin_encoder.c
910 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
911 src/core/ext/transport/chttp2/transport/chttp2_transport.c
912 src/core/ext/transport/chttp2/transport/frame_data.c
913 src/core/ext/transport/chttp2/transport/frame_goaway.c
914 src/core/ext/transport/chttp2/transport/frame_ping.c
915 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
916 src/core/ext/transport/chttp2/transport/frame_settings.c
917 src/core/ext/transport/chttp2/transport/frame_window_update.c
918 src/core/ext/transport/chttp2/transport/hpack_encoder.c
919 src/core/ext/transport/chttp2/transport/hpack_parser.c
920 src/core/ext/transport/chttp2/transport/hpack_table.c
921 src/core/ext/transport/chttp2/transport/huffsyms.c
922 src/core/ext/transport/chttp2/transport/incoming_metadata.c
923 src/core/ext/transport/chttp2/transport/parsing.c
924 src/core/ext/transport/chttp2/transport/status_conversion.c
925 src/core/ext/transport/chttp2/transport/stream_lists.c
926 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100927 src/core/ext/transport/chttp2/transport/varint.c
928 src/core/ext/transport/chttp2/transport/writing.c
929 src/core/ext/transport/chttp2/alpn/alpn.c
930 src/core/ext/transport/chttp2/client/insecure/channel_create.c
931 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
932 src/core/ext/client_config/channel_connectivity.c
933 src/core/ext/client_config/client_channel.c
934 src/core/ext/client_config/client_channel_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100935 src/core/ext/client_config/client_config_plugin.c
936 src/core/ext/client_config/connector.c
937 src/core/ext/client_config/default_initial_connect_string.c
Mark D. Roth1102a9e2016-07-22 09:10:01 -0700938 src/core/ext/client_config/http_connect_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100939 src/core/ext/client_config/initial_connect_string.c
940 src/core/ext/client_config/lb_policy.c
941 src/core/ext/client_config/lb_policy_factory.c
942 src/core/ext/client_config/lb_policy_registry.c
943 src/core/ext/client_config/parse_address.c
944 src/core/ext/client_config/resolver.c
945 src/core/ext/client_config/resolver_factory.c
946 src/core/ext/client_config/resolver_registry.c
Mark D. Rothff4df062016-08-22 15:02:49 -0700947 src/core/ext/client_config/resolver_result.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100948 src/core/ext/client_config/subchannel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100949 src/core/ext/client_config/subchannel_index.c
950 src/core/ext/client_config/uri_parser.c
951 src/core/ext/resolver/dns/native/dns_resolver.c
952 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
953 src/core/ext/load_reporting/load_reporting.c
954 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700955 src/core/ext/lb_policy/grpclb/grpclb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100956 src/core/ext/lb_policy/grpclb/load_balancer_api.c
957 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
958 third_party/nanopb/pb_common.c
959 third_party/nanopb/pb_decode.c
960 third_party/nanopb/pb_encode.c
961 src/core/ext/lb_policy/pick_first/pick_first.c
962 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700963 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100964 src/core/ext/census/context.c
965 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700966 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100967 src/core/ext/census/grpc_context.c
968 src/core/ext/census/grpc_filter.c
969 src/core/ext/census/grpc_plugin.c
970 src/core/ext/census/initialize.c
971 src/core/ext/census/mlog.c
972 src/core/ext/census/operation.c
973 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -0700974 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -0700975 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100976 src/core/ext/census/tracing.c
977 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
978)
979
980target_include_directories(grpc_unsecure
981 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
982 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
983 PRIVATE ${BORINGSSL_ROOT_DIR}/include
984 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300985 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100986 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
987)
988
989target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300990 ${_gRPC_BASELIB_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100991 gpr
992)
993
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300994foreach(_hdr
995 include/grpc/byte_buffer.h
996 include/grpc/byte_buffer_reader.h
997 include/grpc/compression.h
998 include/grpc/grpc.h
999 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001000 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001001 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001002 include/grpc/impl/codegen/byte_buffer_reader.h
1003 include/grpc/impl/codegen/compression_types.h
1004 include/grpc/impl/codegen/connectivity_state.h
1005 include/grpc/impl/codegen/grpc_types.h
1006 include/grpc/impl/codegen/propagation_bits.h
1007 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001008 include/grpc/impl/codegen/atm.h
1009 include/grpc/impl/codegen/atm_gcc_atomic.h
1010 include/grpc/impl/codegen/atm_gcc_sync.h
1011 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001012 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001013 include/grpc/impl/codegen/port_platform.h
1014 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001015 include/grpc/impl/codegen/sync.h
1016 include/grpc/impl/codegen/sync_generic.h
1017 include/grpc/impl/codegen/sync_posix.h
1018 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001019 include/grpc/census.h
1020)
1021 string(REPLACE "include/" "" _path ${_hdr})
1022 get_filename_component(_path ${_path} PATH)
1023 install(FILES ${_hdr}
1024 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1025 )
1026endforeach()
1027
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001028
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001029if (gRPC_INSTALL)
1030 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1031 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1032 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1033 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1034 )
1035endif()
1036
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001037
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001038add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001039 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001040 src/cpp/client/secure_credentials.cc
1041 src/cpp/common/auth_property_iterator.cc
1042 src/cpp/common/secure_auth_context.cc
1043 src/cpp/common/secure_channel_arguments.cc
1044 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001045 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001046 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001047 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001048 src/cpp/client/client_context.cc
1049 src/cpp/client/create_channel.cc
1050 src/cpp/client/create_channel_internal.cc
1051 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001052 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001053 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001054 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001055 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001056 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001057 src/cpp/common/core_codegen.cc
1058 src/cpp/common/rpc_method.cc
1059 src/cpp/server/async_generic_service.cc
1060 src/cpp/server/create_default_thread_pool.cc
1061 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001062 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001063 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001064 src/cpp/server/server_context.cc
1065 src/cpp/server/server_credentials.cc
1066 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001067 src/cpp/util/byte_buffer_cc.cc
1068 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001069 src/cpp/util/status.cc
1070 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001071 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001072 src/core/lib/channel/channel_args.c
1073 src/core/lib/channel/channel_stack.c
1074 src/core/lib/channel/channel_stack_builder.c
1075 src/core/lib/channel/compress_filter.c
1076 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001077 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001078 src/core/lib/channel/http_client_filter.c
1079 src/core/lib/channel/http_server_filter.c
Mark D. Rothb71af5f2016-08-26 13:38:16 -07001080 src/core/lib/channel/message_size_filter.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001081 src/core/lib/compression/compression.c
1082 src/core/lib/compression/message_compress.c
1083 src/core/lib/debug/trace.c
1084 src/core/lib/http/format_request.c
1085 src/core/lib/http/httpcli.c
1086 src/core/lib/http/parser.c
1087 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001088 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001089 src/core/lib/iomgr/endpoint.c
1090 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001091 src/core/lib/iomgr/endpoint_pair_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001092 src/core/lib/iomgr/endpoint_pair_windows.c
1093 src/core/lib/iomgr/error.c
1094 src/core/lib/iomgr/ev_epoll_linux.c
1095 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1096 src/core/lib/iomgr/ev_poll_posix.c
1097 src/core/lib/iomgr/ev_posix.c
1098 src/core/lib/iomgr/exec_ctx.c
1099 src/core/lib/iomgr/executor.c
1100 src/core/lib/iomgr/iocp_windows.c
1101 src/core/lib/iomgr/iomgr.c
1102 src/core/lib/iomgr/iomgr_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001103 src/core/lib/iomgr/iomgr_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001104 src/core/lib/iomgr/iomgr_windows.c
1105 src/core/lib/iomgr/load_file.c
1106 src/core/lib/iomgr/network_status_tracker.c
1107 src/core/lib/iomgr/polling_entity.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001108 src/core/lib/iomgr/pollset_set_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001109 src/core/lib/iomgr/pollset_set_windows.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001110 src/core/lib/iomgr/pollset_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001111 src/core/lib/iomgr/pollset_windows.c
1112 src/core/lib/iomgr/resolve_address_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001113 src/core/lib/iomgr/resolve_address_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001114 src/core/lib/iomgr/resolve_address_windows.c
1115 src/core/lib/iomgr/sockaddr_utils.c
1116 src/core/lib/iomgr/socket_utils_common_posix.c
1117 src/core/lib/iomgr/socket_utils_linux.c
1118 src/core/lib/iomgr/socket_utils_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001119 src/core/lib/iomgr/socket_utils_uv.c
1120 src/core/lib/iomgr/socket_utils_windows.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001121 src/core/lib/iomgr/socket_windows.c
1122 src/core/lib/iomgr/tcp_client_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001123 src/core/lib/iomgr/tcp_client_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001124 src/core/lib/iomgr/tcp_client_windows.c
1125 src/core/lib/iomgr/tcp_posix.c
1126 src/core/lib/iomgr/tcp_server_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001127 src/core/lib/iomgr/tcp_server_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001128 src/core/lib/iomgr/tcp_server_windows.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001129 src/core/lib/iomgr/tcp_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001130 src/core/lib/iomgr/tcp_windows.c
1131 src/core/lib/iomgr/time_averaged_stats.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001132 src/core/lib/iomgr/timer_generic.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001133 src/core/lib/iomgr/timer_heap.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001134 src/core/lib/iomgr/timer_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001135 src/core/lib/iomgr/udp_server.c
1136 src/core/lib/iomgr/unix_sockets_posix.c
1137 src/core/lib/iomgr/unix_sockets_posix_noop.c
1138 src/core/lib/iomgr/wakeup_fd_eventfd.c
1139 src/core/lib/iomgr/wakeup_fd_nospecial.c
1140 src/core/lib/iomgr/wakeup_fd_pipe.c
1141 src/core/lib/iomgr/wakeup_fd_posix.c
1142 src/core/lib/iomgr/workqueue_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001143 src/core/lib/iomgr/workqueue_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001144 src/core/lib/iomgr/workqueue_windows.c
1145 src/core/lib/json/json.c
1146 src/core/lib/json/json_reader.c
1147 src/core/lib/json/json_string.c
1148 src/core/lib/json/json_writer.c
1149 src/core/lib/surface/alarm.c
1150 src/core/lib/surface/api_trace.c
1151 src/core/lib/surface/byte_buffer.c
1152 src/core/lib/surface/byte_buffer_reader.c
1153 src/core/lib/surface/call.c
1154 src/core/lib/surface/call_details.c
1155 src/core/lib/surface/call_log_batch.c
1156 src/core/lib/surface/channel.c
1157 src/core/lib/surface/channel_init.c
1158 src/core/lib/surface/channel_ping.c
1159 src/core/lib/surface/channel_stack_type.c
1160 src/core/lib/surface/completion_queue.c
1161 src/core/lib/surface/event_string.c
1162 src/core/lib/surface/lame_client.c
1163 src/core/lib/surface/metadata_array.c
1164 src/core/lib/surface/server.c
1165 src/core/lib/surface/validate_metadata.c
1166 src/core/lib/surface/version.c
1167 src/core/lib/transport/byte_stream.c
1168 src/core/lib/transport/connectivity_state.c
1169 src/core/lib/transport/metadata.c
1170 src/core/lib/transport/metadata_batch.c
1171 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001172 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001173 src/core/lib/transport/transport.c
1174 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001175 src/cpp/codegen/codegen_init.cc
1176)
1177
1178target_include_directories(grpc++
1179 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1180 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1181 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1182 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001183 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001184 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1185)
1186
1187target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001188 ${_gRPC_BASELIB_LIBRARIES}
1189 ${_gRPC_SSL_LIBRARIES}
1190 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001191 grpc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001192 gpr
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001193)
1194
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001195foreach(_hdr
1196 include/grpc++/alarm.h
1197 include/grpc++/channel.h
1198 include/grpc++/client_context.h
1199 include/grpc++/completion_queue.h
1200 include/grpc++/create_channel.h
1201 include/grpc++/create_channel_posix.h
1202 include/grpc++/generic/async_generic_service.h
1203 include/grpc++/generic/generic_stub.h
1204 include/grpc++/grpc++.h
1205 include/grpc++/impl/call.h
1206 include/grpc++/impl/client_unary_call.h
1207 include/grpc++/impl/codegen/core_codegen.h
1208 include/grpc++/impl/grpc_library.h
1209 include/grpc++/impl/method_handler_impl.h
1210 include/grpc++/impl/rpc_method.h
1211 include/grpc++/impl/rpc_service_method.h
1212 include/grpc++/impl/serialization_traits.h
1213 include/grpc++/impl/server_builder_option.h
1214 include/grpc++/impl/server_builder_plugin.h
1215 include/grpc++/impl/server_initializer.h
1216 include/grpc++/impl/service_type.h
1217 include/grpc++/impl/sync.h
1218 include/grpc++/impl/sync_cxx11.h
1219 include/grpc++/impl/sync_no_cxx11.h
1220 include/grpc++/impl/thd.h
1221 include/grpc++/impl/thd_cxx11.h
1222 include/grpc++/impl/thd_no_cxx11.h
1223 include/grpc++/security/auth_context.h
1224 include/grpc++/security/auth_metadata_processor.h
1225 include/grpc++/security/credentials.h
1226 include/grpc++/security/server_credentials.h
1227 include/grpc++/server.h
1228 include/grpc++/server_builder.h
1229 include/grpc++/server_context.h
1230 include/grpc++/server_posix.h
1231 include/grpc++/support/async_stream.h
1232 include/grpc++/support/async_unary_call.h
1233 include/grpc++/support/byte_buffer.h
1234 include/grpc++/support/channel_arguments.h
1235 include/grpc++/support/config.h
1236 include/grpc++/support/slice.h
1237 include/grpc++/support/status.h
1238 include/grpc++/support/status_code_enum.h
1239 include/grpc++/support/string_ref.h
1240 include/grpc++/support/stub_options.h
1241 include/grpc++/support/sync_stream.h
1242 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001243 include/grpc/byte_buffer.h
1244 include/grpc/byte_buffer_reader.h
1245 include/grpc/compression.h
1246 include/grpc/grpc.h
1247 include/grpc/grpc_posix.h
1248 include/grpc/grpc_security_constants.h
1249 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001250 include/grpc/impl/codegen/byte_buffer_reader.h
1251 include/grpc/impl/codegen/compression_types.h
1252 include/grpc/impl/codegen/connectivity_state.h
1253 include/grpc/impl/codegen/grpc_types.h
1254 include/grpc/impl/codegen/propagation_bits.h
1255 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001256 include/grpc/impl/codegen/atm.h
1257 include/grpc/impl/codegen/atm_gcc_atomic.h
1258 include/grpc/impl/codegen/atm_gcc_sync.h
1259 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001260 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001261 include/grpc/impl/codegen/port_platform.h
1262 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001263 include/grpc/impl/codegen/sync.h
1264 include/grpc/impl/codegen/sync_generic.h
1265 include/grpc/impl/codegen/sync_posix.h
1266 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001267 include/grpc++/impl/codegen/async_stream.h
1268 include/grpc++/impl/codegen/async_unary_call.h
1269 include/grpc++/impl/codegen/call.h
1270 include/grpc++/impl/codegen/call_hook.h
1271 include/grpc++/impl/codegen/channel_interface.h
1272 include/grpc++/impl/codegen/client_context.h
1273 include/grpc++/impl/codegen/client_unary_call.h
1274 include/grpc++/impl/codegen/completion_queue.h
1275 include/grpc++/impl/codegen/completion_queue_tag.h
1276 include/grpc++/impl/codegen/config.h
1277 include/grpc++/impl/codegen/core_codegen_interface.h
1278 include/grpc++/impl/codegen/create_auth_context.h
1279 include/grpc++/impl/codegen/grpc_library.h
1280 include/grpc++/impl/codegen/method_handler_impl.h
1281 include/grpc++/impl/codegen/rpc_method.h
1282 include/grpc++/impl/codegen/rpc_service_method.h
1283 include/grpc++/impl/codegen/security/auth_context.h
1284 include/grpc++/impl/codegen/serialization_traits.h
1285 include/grpc++/impl/codegen/server_context.h
1286 include/grpc++/impl/codegen/server_interface.h
1287 include/grpc++/impl/codegen/service_type.h
1288 include/grpc++/impl/codegen/status.h
1289 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001290 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001291 include/grpc++/impl/codegen/string_ref.h
1292 include/grpc++/impl/codegen/stub_options.h
1293 include/grpc++/impl/codegen/sync.h
1294 include/grpc++/impl/codegen/sync_cxx11.h
1295 include/grpc++/impl/codegen/sync_no_cxx11.h
1296 include/grpc++/impl/codegen/sync_stream.h
1297 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001298)
1299 string(REPLACE "include/" "" _path ${_hdr})
1300 get_filename_component(_path ${_path} PATH)
1301 install(FILES ${_hdr}
1302 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1303 )
1304endforeach()
1305
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001306
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001307if (gRPC_INSTALL)
1308 install(TARGETS grpc++ EXPORT gRPCTargets
1309 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1310 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1311 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1312 )
1313endif()
1314
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001315
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001316add_library(grpc++_reflection
1317 src/cpp/ext/proto_server_reflection.cc
1318 src/cpp/ext/proto_server_reflection_plugin.cc
1319 src/cpp/ext/reflection.grpc.pb.cc
1320 src/cpp/ext/reflection.pb.cc
1321)
1322
1323target_include_directories(grpc++_reflection
1324 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1325 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1326 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1327 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001328 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001329 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1330)
1331
1332target_link_libraries(grpc++_reflection
1333 grpc++
1334)
1335
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001336foreach(_hdr
1337 include/grpc++/ext/proto_server_reflection_plugin.h
1338 include/grpc++/ext/reflection.grpc.pb.h
1339 include/grpc++/ext/reflection.pb.h
1340 include/grpc++/impl/codegen/proto_utils.h
1341 include/grpc++/impl/codegen/async_stream.h
1342 include/grpc++/impl/codegen/async_unary_call.h
1343 include/grpc++/impl/codegen/call.h
1344 include/grpc++/impl/codegen/call_hook.h
1345 include/grpc++/impl/codegen/channel_interface.h
1346 include/grpc++/impl/codegen/client_context.h
1347 include/grpc++/impl/codegen/client_unary_call.h
1348 include/grpc++/impl/codegen/completion_queue.h
1349 include/grpc++/impl/codegen/completion_queue_tag.h
1350 include/grpc++/impl/codegen/config.h
1351 include/grpc++/impl/codegen/core_codegen_interface.h
1352 include/grpc++/impl/codegen/create_auth_context.h
1353 include/grpc++/impl/codegen/grpc_library.h
1354 include/grpc++/impl/codegen/method_handler_impl.h
1355 include/grpc++/impl/codegen/rpc_method.h
1356 include/grpc++/impl/codegen/rpc_service_method.h
1357 include/grpc++/impl/codegen/security/auth_context.h
1358 include/grpc++/impl/codegen/serialization_traits.h
1359 include/grpc++/impl/codegen/server_context.h
1360 include/grpc++/impl/codegen/server_interface.h
1361 include/grpc++/impl/codegen/service_type.h
1362 include/grpc++/impl/codegen/status.h
1363 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001364 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001365 include/grpc++/impl/codegen/string_ref.h
1366 include/grpc++/impl/codegen/stub_options.h
1367 include/grpc++/impl/codegen/sync.h
1368 include/grpc++/impl/codegen/sync_cxx11.h
1369 include/grpc++/impl/codegen/sync_no_cxx11.h
1370 include/grpc++/impl/codegen/sync_stream.h
1371 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001372 include/grpc/impl/codegen/byte_buffer_reader.h
1373 include/grpc/impl/codegen/compression_types.h
1374 include/grpc/impl/codegen/connectivity_state.h
1375 include/grpc/impl/codegen/grpc_types.h
1376 include/grpc/impl/codegen/propagation_bits.h
1377 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001378 include/grpc/impl/codegen/atm.h
1379 include/grpc/impl/codegen/atm_gcc_atomic.h
1380 include/grpc/impl/codegen/atm_gcc_sync.h
1381 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001382 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001383 include/grpc/impl/codegen/port_platform.h
1384 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001385 include/grpc/impl/codegen/sync.h
1386 include/grpc/impl/codegen/sync_generic.h
1387 include/grpc/impl/codegen/sync_posix.h
1388 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001389 include/grpc++/impl/codegen/config_protobuf.h
1390)
1391 string(REPLACE "include/" "" _path ${_hdr})
1392 get_filename_component(_path ${_path} PATH)
1393 install(FILES ${_hdr}
1394 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1395 )
1396endforeach()
1397
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001398
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001399if (gRPC_INSTALL)
1400 install(TARGETS grpc++_reflection EXPORT gRPCTargets
1401 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1402 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1403 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1404 )
1405endif()
1406
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001407
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001408add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07001409 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001410 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001411 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001412 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001413 src/cpp/client/client_context.cc
1414 src/cpp/client/create_channel.cc
1415 src/cpp/client/create_channel_internal.cc
1416 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001417 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001418 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001419 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001420 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001421 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001422 src/cpp/common/core_codegen.cc
1423 src/cpp/common/rpc_method.cc
1424 src/cpp/server/async_generic_service.cc
1425 src/cpp/server/create_default_thread_pool.cc
1426 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001427 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001428 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001429 src/cpp/server/server_context.cc
1430 src/cpp/server/server_credentials.cc
1431 src/cpp/server/server_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001432 src/cpp/util/byte_buffer_cc.cc
1433 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001434 src/cpp/util/status.cc
1435 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001436 src/cpp/util/time_cc.cc
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001437 src/core/lib/channel/channel_args.c
1438 src/core/lib/channel/channel_stack.c
1439 src/core/lib/channel/channel_stack_builder.c
1440 src/core/lib/channel/compress_filter.c
1441 src/core/lib/channel/connected_channel.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001442 src/core/lib/channel/handshaker.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001443 src/core/lib/channel/http_client_filter.c
1444 src/core/lib/channel/http_server_filter.c
Mark D. Rothb71af5f2016-08-26 13:38:16 -07001445 src/core/lib/channel/message_size_filter.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001446 src/core/lib/compression/compression.c
1447 src/core/lib/compression/message_compress.c
1448 src/core/lib/debug/trace.c
1449 src/core/lib/http/format_request.c
1450 src/core/lib/http/httpcli.c
1451 src/core/lib/http/parser.c
1452 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001453 src/core/lib/iomgr/combiner.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001454 src/core/lib/iomgr/endpoint.c
1455 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001456 src/core/lib/iomgr/endpoint_pair_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001457 src/core/lib/iomgr/endpoint_pair_windows.c
1458 src/core/lib/iomgr/error.c
1459 src/core/lib/iomgr/ev_epoll_linux.c
1460 src/core/lib/iomgr/ev_poll_and_epoll_posix.c
1461 src/core/lib/iomgr/ev_poll_posix.c
1462 src/core/lib/iomgr/ev_posix.c
1463 src/core/lib/iomgr/exec_ctx.c
1464 src/core/lib/iomgr/executor.c
1465 src/core/lib/iomgr/iocp_windows.c
1466 src/core/lib/iomgr/iomgr.c
1467 src/core/lib/iomgr/iomgr_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001468 src/core/lib/iomgr/iomgr_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001469 src/core/lib/iomgr/iomgr_windows.c
1470 src/core/lib/iomgr/load_file.c
1471 src/core/lib/iomgr/network_status_tracker.c
1472 src/core/lib/iomgr/polling_entity.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001473 src/core/lib/iomgr/pollset_set_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001474 src/core/lib/iomgr/pollset_set_windows.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001475 src/core/lib/iomgr/pollset_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001476 src/core/lib/iomgr/pollset_windows.c
1477 src/core/lib/iomgr/resolve_address_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001478 src/core/lib/iomgr/resolve_address_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001479 src/core/lib/iomgr/resolve_address_windows.c
1480 src/core/lib/iomgr/sockaddr_utils.c
1481 src/core/lib/iomgr/socket_utils_common_posix.c
1482 src/core/lib/iomgr/socket_utils_linux.c
1483 src/core/lib/iomgr/socket_utils_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001484 src/core/lib/iomgr/socket_utils_uv.c
1485 src/core/lib/iomgr/socket_utils_windows.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001486 src/core/lib/iomgr/socket_windows.c
1487 src/core/lib/iomgr/tcp_client_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001488 src/core/lib/iomgr/tcp_client_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001489 src/core/lib/iomgr/tcp_client_windows.c
1490 src/core/lib/iomgr/tcp_posix.c
1491 src/core/lib/iomgr/tcp_server_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001492 src/core/lib/iomgr/tcp_server_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001493 src/core/lib/iomgr/tcp_server_windows.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001494 src/core/lib/iomgr/tcp_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001495 src/core/lib/iomgr/tcp_windows.c
1496 src/core/lib/iomgr/time_averaged_stats.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001497 src/core/lib/iomgr/timer_generic.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001498 src/core/lib/iomgr/timer_heap.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001499 src/core/lib/iomgr/timer_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001500 src/core/lib/iomgr/udp_server.c
1501 src/core/lib/iomgr/unix_sockets_posix.c
1502 src/core/lib/iomgr/unix_sockets_posix_noop.c
1503 src/core/lib/iomgr/wakeup_fd_eventfd.c
1504 src/core/lib/iomgr/wakeup_fd_nospecial.c
1505 src/core/lib/iomgr/wakeup_fd_pipe.c
1506 src/core/lib/iomgr/wakeup_fd_posix.c
1507 src/core/lib/iomgr/workqueue_posix.c
murgatroid99bcc60f72016-09-16 13:44:28 -07001508 src/core/lib/iomgr/workqueue_uv.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001509 src/core/lib/iomgr/workqueue_windows.c
1510 src/core/lib/json/json.c
1511 src/core/lib/json/json_reader.c
1512 src/core/lib/json/json_string.c
1513 src/core/lib/json/json_writer.c
1514 src/core/lib/surface/alarm.c
1515 src/core/lib/surface/api_trace.c
1516 src/core/lib/surface/byte_buffer.c
1517 src/core/lib/surface/byte_buffer_reader.c
1518 src/core/lib/surface/call.c
1519 src/core/lib/surface/call_details.c
1520 src/core/lib/surface/call_log_batch.c
1521 src/core/lib/surface/channel.c
1522 src/core/lib/surface/channel_init.c
1523 src/core/lib/surface/channel_ping.c
1524 src/core/lib/surface/channel_stack_type.c
1525 src/core/lib/surface/completion_queue.c
1526 src/core/lib/surface/event_string.c
1527 src/core/lib/surface/lame_client.c
1528 src/core/lib/surface/metadata_array.c
1529 src/core/lib/surface/server.c
1530 src/core/lib/surface/validate_metadata.c
1531 src/core/lib/surface/version.c
1532 src/core/lib/transport/byte_stream.c
1533 src/core/lib/transport/connectivity_state.c
1534 src/core/lib/transport/metadata.c
1535 src/core/lib/transport/metadata_batch.c
1536 src/core/lib/transport/static_metadata.c
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001537 src/core/lib/transport/timeout_encoding.c
Nicolas "Pixel" Noblea469e5d2016-08-16 22:09:27 +02001538 src/core/lib/transport/transport.c
1539 src/core/lib/transport/transport_op_string.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001540 src/cpp/codegen/codegen_init.cc
1541)
1542
1543target_include_directories(grpc++_unsecure
1544 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1545 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1546 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1547 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001548 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001549 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1550)
1551
1552target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001553 ${_gRPC_BASELIB_LIBRARIES}
1554 ${_gRPC_PROTOBUF_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001555 gpr
1556 grpc_unsecure
1557)
1558
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001559foreach(_hdr
1560 include/grpc++/alarm.h
1561 include/grpc++/channel.h
1562 include/grpc++/client_context.h
1563 include/grpc++/completion_queue.h
1564 include/grpc++/create_channel.h
1565 include/grpc++/create_channel_posix.h
1566 include/grpc++/generic/async_generic_service.h
1567 include/grpc++/generic/generic_stub.h
1568 include/grpc++/grpc++.h
1569 include/grpc++/impl/call.h
1570 include/grpc++/impl/client_unary_call.h
1571 include/grpc++/impl/codegen/core_codegen.h
1572 include/grpc++/impl/grpc_library.h
1573 include/grpc++/impl/method_handler_impl.h
1574 include/grpc++/impl/rpc_method.h
1575 include/grpc++/impl/rpc_service_method.h
1576 include/grpc++/impl/serialization_traits.h
1577 include/grpc++/impl/server_builder_option.h
1578 include/grpc++/impl/server_builder_plugin.h
1579 include/grpc++/impl/server_initializer.h
1580 include/grpc++/impl/service_type.h
1581 include/grpc++/impl/sync.h
1582 include/grpc++/impl/sync_cxx11.h
1583 include/grpc++/impl/sync_no_cxx11.h
1584 include/grpc++/impl/thd.h
1585 include/grpc++/impl/thd_cxx11.h
1586 include/grpc++/impl/thd_no_cxx11.h
1587 include/grpc++/security/auth_context.h
1588 include/grpc++/security/auth_metadata_processor.h
1589 include/grpc++/security/credentials.h
1590 include/grpc++/security/server_credentials.h
1591 include/grpc++/server.h
1592 include/grpc++/server_builder.h
1593 include/grpc++/server_context.h
1594 include/grpc++/server_posix.h
1595 include/grpc++/support/async_stream.h
1596 include/grpc++/support/async_unary_call.h
1597 include/grpc++/support/byte_buffer.h
1598 include/grpc++/support/channel_arguments.h
1599 include/grpc++/support/config.h
1600 include/grpc++/support/slice.h
1601 include/grpc++/support/status.h
1602 include/grpc++/support/status_code_enum.h
1603 include/grpc++/support/string_ref.h
1604 include/grpc++/support/stub_options.h
1605 include/grpc++/support/sync_stream.h
1606 include/grpc++/support/time.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001607 include/grpc/byte_buffer.h
1608 include/grpc/byte_buffer_reader.h
1609 include/grpc/compression.h
1610 include/grpc/grpc.h
1611 include/grpc/grpc_posix.h
1612 include/grpc/grpc_security_constants.h
1613 include/grpc/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001614 include/grpc/impl/codegen/byte_buffer_reader.h
1615 include/grpc/impl/codegen/compression_types.h
1616 include/grpc/impl/codegen/connectivity_state.h
1617 include/grpc/impl/codegen/grpc_types.h
1618 include/grpc/impl/codegen/propagation_bits.h
1619 include/grpc/impl/codegen/status.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001620 include/grpc/impl/codegen/atm.h
1621 include/grpc/impl/codegen/atm_gcc_atomic.h
1622 include/grpc/impl/codegen/atm_gcc_sync.h
1623 include/grpc/impl/codegen/atm_windows.h
David Garcia Quintasf3581bf2016-08-30 04:45:50 -07001624 include/grpc/impl/codegen/gpr_types.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001625 include/grpc/impl/codegen/port_platform.h
1626 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001627 include/grpc/impl/codegen/sync.h
1628 include/grpc/impl/codegen/sync_generic.h
1629 include/grpc/impl/codegen/sync_posix.h
1630 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001631 include/grpc++/impl/codegen/async_stream.h
1632 include/grpc++/impl/codegen/async_unary_call.h
1633 include/grpc++/impl/codegen/call.h
1634 include/grpc++/impl/codegen/call_hook.h
1635 include/grpc++/impl/codegen/channel_interface.h
1636 include/grpc++/impl/codegen/client_context.h
1637 include/grpc++/impl/codegen/client_unary_call.h
1638 include/grpc++/impl/codegen/completion_queue.h
1639 include/grpc++/impl/codegen/completion_queue_tag.h
1640 include/grpc++/impl/codegen/config.h
1641 include/grpc++/impl/codegen/core_codegen_interface.h
1642 include/grpc++/impl/codegen/create_auth_context.h
1643 include/grpc++/impl/codegen/grpc_library.h
1644 include/grpc++/impl/codegen/method_handler_impl.h
1645 include/grpc++/impl/codegen/rpc_method.h
1646 include/grpc++/impl/codegen/rpc_service_method.h
1647 include/grpc++/impl/codegen/security/auth_context.h
1648 include/grpc++/impl/codegen/serialization_traits.h
1649 include/grpc++/impl/codegen/server_context.h
1650 include/grpc++/impl/codegen/server_interface.h
1651 include/grpc++/impl/codegen/service_type.h
1652 include/grpc++/impl/codegen/status.h
1653 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07001654 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001655 include/grpc++/impl/codegen/string_ref.h
1656 include/grpc++/impl/codegen/stub_options.h
1657 include/grpc++/impl/codegen/sync.h
1658 include/grpc++/impl/codegen/sync_cxx11.h
1659 include/grpc++/impl/codegen/sync_no_cxx11.h
1660 include/grpc++/impl/codegen/sync_stream.h
1661 include/grpc++/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001662)
1663 string(REPLACE "include/" "" _path ${_hdr})
1664 get_filename_component(_path ${_path} PATH)
1665 install(FILES ${_hdr}
1666 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1667 )
1668endforeach()
1669
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001670
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001671if (gRPC_INSTALL)
1672 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
1673 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1674 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1675 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1676 )
1677endif()
1678
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001679
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001680add_library(grpc_plugin_support
1681 src/compiler/cpp_generator.cc
1682 src/compiler/csharp_generator.cc
1683 src/compiler/node_generator.cc
1684 src/compiler/objective_c_generator.cc
1685 src/compiler/python_generator.cc
1686 src/compiler/ruby_generator.cc
1687)
1688
1689target_include_directories(grpc_plugin_support
1690 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1691 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1692 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1693 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001694 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001695 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1696)
1697
1698target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001699 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001700)
1701
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001702foreach(_hdr
1703 include/grpc++/impl/codegen/config_protobuf.h
1704)
1705 string(REPLACE "include/" "" _path ${_hdr})
1706 get_filename_component(_path ${_path} PATH)
1707 install(FILES ${_hdr}
1708 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1709 )
1710endforeach()
1711
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001712
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001713if (gRPC_INSTALL)
1714 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
1715 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1716 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1717 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1718 )
1719endif()
1720
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001721
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001722add_library(grpc_csharp_ext
1723 src/csharp/ext/grpc_csharp_ext.c
1724)
1725
1726target_include_directories(grpc_csharp_ext
1727 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1728 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1729 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1730 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001731 PRIVATE ${ZLIB_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001732 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1733)
1734
1735target_link_libraries(grpc_csharp_ext
1736 grpc
1737 gpr
1738)
1739
1740
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001741
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001742if (gRPC_INSTALL)
1743 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
1744 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1745 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1746 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1747 )
1748endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001749
1750
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001751
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001752add_executable(gen_hpack_tables
1753 tools/codegen/core/gen_hpack_tables.c
1754)
1755
1756target_include_directories(gen_hpack_tables
1757 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1758 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1759 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1760 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1761 PRIVATE ${ZLIB_ROOT_DIR}
1762 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1763)
1764
1765target_link_libraries(gen_hpack_tables
1766 gpr
1767 grpc
1768)
1769
1770
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001771if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02001772 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
1773 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1774 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1775 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1776 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001777endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001778
1779
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001780add_executable(gen_legal_metadata_characters
1781 tools/codegen/core/gen_legal_metadata_characters.c
1782)
1783
1784target_include_directories(gen_legal_metadata_characters
1785 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1786 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1787 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1788 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1789 PRIVATE ${ZLIB_ROOT_DIR}
1790 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1791)
1792
1793
1794
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001795if (gRPC_INSTALL)
1796 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
1797 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1798 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1799 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1800 )
1801endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001802
1803
Craig Tiller1c7a8422016-08-18 11:13:11 -07001804add_executable(gen_percent_encoding_tables
1805 tools/codegen/core/gen_percent_encoding_tables.c
1806)
1807
1808target_include_directories(gen_percent_encoding_tables
1809 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1810 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1811 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1812 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1813 PRIVATE ${ZLIB_ROOT_DIR}
1814 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1815)
1816
1817
1818
Craig Tiller344834b2016-09-07 08:39:05 -07001819if (gRPC_INSTALL)
1820 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
1821 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1822 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1823 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1824 )
1825endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07001826
1827
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001828add_executable(grpc_create_jwt
1829 test/core/security/create_jwt.c
1830)
1831
1832target_include_directories(grpc_create_jwt
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_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001842 ${_gRPC_SSL_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001843 grpc
1844 gpr
1845)
1846
1847
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001848if (gRPC_INSTALL)
1849 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
1850 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1851 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1852 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1853 )
1854endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001855
1856
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001857add_executable(grpc_print_google_default_creds_token
1858 test/core/security/print_google_default_creds_token.c
1859)
1860
1861target_include_directories(grpc_print_google_default_creds_token
1862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1864 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1865 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1866 PRIVATE ${ZLIB_ROOT_DIR}
1867 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1868)
1869
1870target_link_libraries(grpc_print_google_default_creds_token
1871 grpc
1872 gpr
1873)
1874
1875
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001876if (gRPC_INSTALL)
1877 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
1878 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1879 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1880 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1881 )
1882endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001883
1884
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01001885add_executable(grpc_verify_jwt
1886 test/core/security/verify_jwt.c
1887)
1888
1889target_include_directories(grpc_verify_jwt
1890 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1891 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1892 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1893 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1894 PRIVATE ${ZLIB_ROOT_DIR}
1895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1896)
1897
1898target_link_libraries(grpc_verify_jwt
1899 grpc
1900 gpr
1901)
1902
1903
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001904if (gRPC_INSTALL)
1905 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
1906 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1907 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1908 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1909 )
1910endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001911
1912
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001913add_executable(grpc_cpp_plugin
1914 src/compiler/cpp_plugin.cc
1915)
1916
1917target_include_directories(grpc_cpp_plugin
1918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1919 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1920 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1921 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1922 PRIVATE ${ZLIB_ROOT_DIR}
1923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1924)
1925
1926target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001927 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001928 grpc_plugin_support
1929)
1930
1931
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001932if (gRPC_INSTALL)
1933 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
1934 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1935 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1936 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1937 )
1938endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001939
1940
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001941add_executable(grpc_csharp_plugin
1942 src/compiler/csharp_plugin.cc
1943)
1944
1945target_include_directories(grpc_csharp_plugin
1946 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1947 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1948 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1949 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1950 PRIVATE ${ZLIB_ROOT_DIR}
1951 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1952)
1953
1954target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001955 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001956 grpc_plugin_support
1957)
1958
1959
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001960if (gRPC_INSTALL)
1961 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
1962 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1963 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1964 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1965 )
1966endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001967
1968
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001969add_executable(grpc_node_plugin
1970 src/compiler/node_plugin.cc
1971)
1972
1973target_include_directories(grpc_node_plugin
1974 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1975 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1976 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1977 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1978 PRIVATE ${ZLIB_ROOT_DIR}
1979 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1980)
1981
1982target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001983 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001984 grpc_plugin_support
1985)
1986
1987
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001988if (gRPC_INSTALL)
1989 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
1990 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1991 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1992 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1993 )
1994endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001995
1996
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001997add_executable(grpc_objective_c_plugin
1998 src/compiler/objective_c_plugin.cc
1999)
2000
2001target_include_directories(grpc_objective_c_plugin
2002 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2003 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2004 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2005 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2006 PRIVATE ${ZLIB_ROOT_DIR}
2007 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2008)
2009
2010target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002011 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002012 grpc_plugin_support
2013)
2014
2015
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002016if (gRPC_INSTALL)
2017 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
2018 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2019 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2020 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2021 )
2022endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002023
2024
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002025add_executable(grpc_python_plugin
2026 src/compiler/python_plugin.cc
2027)
2028
2029target_include_directories(grpc_python_plugin
2030 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2031 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2032 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2033 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2034 PRIVATE ${ZLIB_ROOT_DIR}
2035 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2036)
2037
2038target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002039 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002040 grpc_plugin_support
2041)
2042
2043
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002044if (gRPC_INSTALL)
2045 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
2046 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2047 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2048 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2049 )
2050endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002051
2052
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002053add_executable(grpc_ruby_plugin
2054 src/compiler/ruby_plugin.cc
2055)
2056
2057target_include_directories(grpc_ruby_plugin
2058 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2059 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2060 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2061 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2062 PRIVATE ${ZLIB_ROOT_DIR}
2063 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2064)
2065
2066target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002067 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002068 grpc_plugin_support
2069)
2070
2071
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002072if (gRPC_INSTALL)
2073 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
2074 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2075 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2076 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2077 )
2078endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002079
2080
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002081
2082
2083
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002084
2085
2086
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002087if (gRPC_INSTALL)
2088 install(EXPORT gRPCTargets
2089 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2090 NAMESPACE gRPC::
2091 )
2092endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002093
2094foreach(_config gRPCConfig gRPCConfigVersion)
2095 configure_file(tools/cmake/${_config}.cmake.in
2096 ${_config}.cmake @ONLY)
2097 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
2098 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
2099 )
2100endforeach()