Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1 | # 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" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 7 | # |
| 8 | # Additionally, this is currently very experimental, and unsupported. |
| 9 | # Further work will happen on that file. |
| 10 | # |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 11 | # 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 | |
| 42 | cmake_minimum_required(VERSION 2.8) |
| 43 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 44 | set(PACKAGE_NAME "grpc") |
Nicolas "Pixel" Noble | 49bfb92 | 2016-07-12 09:31:41 +0200 | [diff] [blame] | 45 | set(PACKAGE_VERSION "1.1.0-dev") |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 46 | set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") |
| 47 | set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}") |
| 48 | set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/") |
| 49 | project(${PACKAGE_NAME} C CXX) |
| 50 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 51 | if (NOT MSVC) |
| 52 | set(gRPC_INSTALL ON CACHE BOOL "Generate installation target") |
| 53 | else() |
| 54 | set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target") |
| 55 | endif() |
| 56 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 57 | set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library") |
| 58 | set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 59 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 60 | set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library") |
| 61 | set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package") |
Tamas Berghammer | a72712e | 2016-07-06 10:30:25 +0100 | [diff] [blame] | 62 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 63 | set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library") |
| 64 | set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 65 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 66 | set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 67 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 68 | if (MSVC) |
| 69 | add_definitions( -D_WIN32_WINNT=0x600 ) |
| 70 | endif() |
| 71 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 72 | if (gRPC_USE_PROTO_LITE) |
| 73 | set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite") |
Tamas Berghammer | 2391156 | 2016-07-27 15:24:05 +0100 | [diff] [blame] | 74 | add_definitions("-DGRPC_USE_PROTO_LITE") |
| 75 | else() |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 76 | set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf") |
| 77 | endif() |
| 78 | |
| 79 | if("${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() |
| 92 | elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package") |
| 93 | find_package(ZLIB) |
| 94 | if(TARGET ZLIB::ZLIB) |
| 95 | set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB) |
| 96 | endif() |
Konstantin Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 97 | set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 98 | endif() |
| 99 | |
| 100 | if("${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 Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 111 | set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 112 | 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() |
| 122 | elseif("${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 Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 131 | set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 132 | else() |
| 133 | find_package(Protobuf MODULE) |
Konstantin Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 134 | set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 135 | endif() |
| 136 | endif() |
| 137 | |
| 138 | if("${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() |
| 150 | elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package") |
| 151 | find_package(OpenSSL) |
| 152 | if(TARGET OpenSSL::SSL) |
| 153 | set(_gRPC_SSL_LIBRARIES OpenSSL::SSL) |
| 154 | endif() |
Konstantin Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 155 | set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 156 | endif() |
| 157 | |
| 158 | if(NOT MSVC) |
| 159 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11") |
| 160 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") |
| 161 | endif() |
| 162 | |
| 163 | if(WIN32 AND MSVC) |
| 164 | set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32) |
Tamas Berghammer | 2391156 | 2016-07-27 15:24:05 +0100 | [diff] [blame] | 165 | endif() |
| 166 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 167 | include(GNUInstallDirs) |
| 168 | if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR) |
| 169 | set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 170 | endif() |
| 171 | |
| 172 | |
| 173 | add_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 Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 194 | src/core/lib/support/mpscq.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 195 | src/core/lib/support/murmur_hash.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 196 | src/core/lib/support/stack_lockfree.c |
| 197 | src/core/lib/support/string.c |
| 198 | src/core/lib/support/string_posix.c |
| 199 | src/core/lib/support/string_util_windows.c |
| 200 | src/core/lib/support/string_windows.c |
| 201 | src/core/lib/support/subprocess_posix.c |
| 202 | src/core/lib/support/subprocess_windows.c |
| 203 | src/core/lib/support/sync.c |
| 204 | src/core/lib/support/sync_posix.c |
| 205 | src/core/lib/support/sync_windows.c |
| 206 | src/core/lib/support/thd.c |
| 207 | src/core/lib/support/thd_posix.c |
| 208 | src/core/lib/support/thd_windows.c |
| 209 | src/core/lib/support/time.c |
| 210 | src/core/lib/support/time_posix.c |
| 211 | src/core/lib/support/time_precise.c |
| 212 | src/core/lib/support/time_windows.c |
| 213 | src/core/lib/support/tls_pthread.c |
| 214 | src/core/lib/support/tmpfile_msys.c |
| 215 | src/core/lib/support/tmpfile_posix.c |
| 216 | src/core/lib/support/tmpfile_windows.c |
| 217 | src/core/lib/support/wrap_memcpy.c |
| 218 | ) |
| 219 | |
| 220 | target_include_directories(gpr |
| 221 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 222 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 223 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 224 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 225 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 226 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 227 | ) |
| 228 | |
| 229 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 230 | foreach(_hdr |
| 231 | include/grpc/support/alloc.h |
| 232 | include/grpc/support/atm.h |
| 233 | include/grpc/support/atm_gcc_atomic.h |
| 234 | include/grpc/support/atm_gcc_sync.h |
| 235 | include/grpc/support/atm_windows.h |
| 236 | include/grpc/support/avl.h |
| 237 | include/grpc/support/cmdline.h |
| 238 | include/grpc/support/cpu.h |
| 239 | include/grpc/support/histogram.h |
| 240 | include/grpc/support/host_port.h |
| 241 | include/grpc/support/log.h |
| 242 | include/grpc/support/log_windows.h |
| 243 | include/grpc/support/port_platform.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 244 | include/grpc/support/string_util.h |
| 245 | include/grpc/support/subprocess.h |
| 246 | include/grpc/support/sync.h |
| 247 | include/grpc/support/sync_generic.h |
| 248 | include/grpc/support/sync_posix.h |
| 249 | include/grpc/support/sync_windows.h |
| 250 | include/grpc/support/thd.h |
| 251 | include/grpc/support/time.h |
| 252 | include/grpc/support/tls.h |
| 253 | include/grpc/support/tls_gcc.h |
| 254 | include/grpc/support/tls_msvc.h |
| 255 | include/grpc/support/tls_pthread.h |
| 256 | include/grpc/support/useful.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 257 | include/grpc/impl/codegen/atm.h |
| 258 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 259 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 260 | include/grpc/impl/codegen/atm_windows.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 261 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 262 | include/grpc/impl/codegen/port_platform.h |
| 263 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 264 | include/grpc/impl/codegen/sync.h |
| 265 | include/grpc/impl/codegen/sync_generic.h |
| 266 | include/grpc/impl/codegen/sync_posix.h |
| 267 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 268 | ) |
| 269 | string(REPLACE "include/" "" _path ${_hdr}) |
| 270 | get_filename_component(_path ${_path} PATH) |
| 271 | install(FILES ${_hdr} |
| 272 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 273 | ) |
| 274 | endforeach() |
| 275 | |
| 276 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 277 | if (gRPC_INSTALL) |
| 278 | install(TARGETS gpr EXPORT gRPCTargets |
| 279 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 280 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 281 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 282 | ) |
| 283 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 284 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 285 | |
| 286 | add_library(grpc |
| 287 | src/core/lib/surface/init.c |
| 288 | src/core/lib/channel/channel_args.c |
| 289 | src/core/lib/channel/channel_stack.c |
| 290 | src/core/lib/channel/channel_stack_builder.c |
| 291 | src/core/lib/channel/compress_filter.c |
| 292 | src/core/lib/channel/connected_channel.c |
Mark D. Roth | 14c072c | 2016-08-26 08:31:34 -0700 | [diff] [blame] | 293 | src/core/lib/channel/deadline_filter.c |
Mark D. Roth | dfbdefe | 2016-07-14 09:18:22 -0700 | [diff] [blame] | 294 | src/core/lib/channel/handshaker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 295 | src/core/lib/channel/http_client_filter.c |
| 296 | src/core/lib/channel/http_server_filter.c |
Mark D. Roth | af00d8b | 2016-08-23 12:48:16 -0700 | [diff] [blame] | 297 | src/core/lib/channel/message_size_filter.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 298 | src/core/lib/compression/compression.c |
| 299 | src/core/lib/compression/message_compress.c |
| 300 | src/core/lib/debug/trace.c |
| 301 | src/core/lib/http/format_request.c |
| 302 | src/core/lib/http/httpcli.c |
| 303 | src/core/lib/http/parser.c |
| 304 | src/core/lib/iomgr/closure.c |
Craig Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 305 | src/core/lib/iomgr/combiner.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 306 | src/core/lib/iomgr/endpoint.c |
| 307 | src/core/lib/iomgr/endpoint_pair_posix.c |
murgatroid99 | c36f6ea | 2016-10-03 09:24:09 -0700 | [diff] [blame] | 308 | src/core/lib/iomgr/endpoint_pair_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 309 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 310 | src/core/lib/iomgr/error.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 311 | src/core/lib/iomgr/ev_epoll_linux.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 312 | src/core/lib/iomgr/ev_poll_posix.c |
| 313 | src/core/lib/iomgr/ev_posix.c |
| 314 | src/core/lib/iomgr/exec_ctx.c |
| 315 | src/core/lib/iomgr/executor.c |
| 316 | src/core/lib/iomgr/iocp_windows.c |
| 317 | src/core/lib/iomgr/iomgr.c |
| 318 | src/core/lib/iomgr/iomgr_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 319 | src/core/lib/iomgr/iomgr_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 320 | src/core/lib/iomgr/iomgr_windows.c |
| 321 | src/core/lib/iomgr/load_file.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 322 | src/core/lib/iomgr/network_status_tracker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 323 | src/core/lib/iomgr/polling_entity.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 324 | src/core/lib/iomgr/pollset_set_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 325 | src/core/lib/iomgr/pollset_set_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 326 | src/core/lib/iomgr/pollset_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 327 | src/core/lib/iomgr/pollset_windows.c |
| 328 | src/core/lib/iomgr/resolve_address_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 329 | src/core/lib/iomgr/resolve_address_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 330 | src/core/lib/iomgr/resolve_address_windows.c |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 331 | src/core/lib/iomgr/resource_quota.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 332 | src/core/lib/iomgr/sockaddr_utils.c |
Yuchen Zeng | de3daf5 | 2016-10-13 17:26:26 -0700 | [diff] [blame] | 333 | src/core/lib/iomgr/socket_mutator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 334 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 335 | src/core/lib/iomgr/socket_utils_linux.c |
| 336 | src/core/lib/iomgr/socket_utils_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 337 | src/core/lib/iomgr/socket_utils_uv.c |
murgatroid99 | 79b3227 | 2016-08-08 13:38:30 -0700 | [diff] [blame] | 338 | src/core/lib/iomgr/socket_utils_windows.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 339 | src/core/lib/iomgr/socket_windows.c |
| 340 | src/core/lib/iomgr/tcp_client_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 341 | src/core/lib/iomgr/tcp_client_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 342 | src/core/lib/iomgr/tcp_client_windows.c |
| 343 | src/core/lib/iomgr/tcp_posix.c |
| 344 | src/core/lib/iomgr/tcp_server_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 345 | src/core/lib/iomgr/tcp_server_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 346 | src/core/lib/iomgr/tcp_server_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 347 | src/core/lib/iomgr/tcp_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 348 | src/core/lib/iomgr/tcp_windows.c |
| 349 | src/core/lib/iomgr/time_averaged_stats.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 350 | src/core/lib/iomgr/timer_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 351 | src/core/lib/iomgr/timer_heap.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 352 | src/core/lib/iomgr/timer_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 353 | src/core/lib/iomgr/udp_server.c |
| 354 | src/core/lib/iomgr/unix_sockets_posix.c |
| 355 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
kpayson64 | d195cf5 | 2016-10-09 18:04:00 -0700 | [diff] [blame] | 356 | src/core/lib/iomgr/wakeup_fd_cv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 357 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 358 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 359 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 360 | src/core/lib/iomgr/wakeup_fd_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 361 | src/core/lib/iomgr/workqueue_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 362 | src/core/lib/iomgr/workqueue_windows.c |
| 363 | src/core/lib/json/json.c |
| 364 | src/core/lib/json/json_reader.c |
| 365 | src/core/lib/json/json_string.c |
| 366 | src/core/lib/json/json_writer.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 367 | src/core/lib/slice/percent_encoding.c |
| 368 | src/core/lib/slice/slice.c |
| 369 | src/core/lib/slice/slice_buffer.c |
| 370 | src/core/lib/slice/slice_string_helpers.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 371 | src/core/lib/surface/alarm.c |
| 372 | src/core/lib/surface/api_trace.c |
| 373 | src/core/lib/surface/byte_buffer.c |
| 374 | src/core/lib/surface/byte_buffer_reader.c |
| 375 | src/core/lib/surface/call.c |
| 376 | src/core/lib/surface/call_details.c |
| 377 | src/core/lib/surface/call_log_batch.c |
| 378 | src/core/lib/surface/channel.c |
| 379 | src/core/lib/surface/channel_init.c |
| 380 | src/core/lib/surface/channel_ping.c |
| 381 | src/core/lib/surface/channel_stack_type.c |
| 382 | src/core/lib/surface/completion_queue.c |
| 383 | src/core/lib/surface/event_string.c |
| 384 | src/core/lib/surface/lame_client.c |
| 385 | src/core/lib/surface/metadata_array.c |
| 386 | src/core/lib/surface/server.c |
| 387 | src/core/lib/surface/validate_metadata.c |
| 388 | src/core/lib/surface/version.c |
| 389 | src/core/lib/transport/byte_stream.c |
| 390 | src/core/lib/transport/connectivity_state.c |
Mark D. Roth | 6a721b5 | 2016-10-14 12:43:34 -0700 | [diff] [blame] | 391 | src/core/lib/transport/mdstr_hash_table.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 392 | src/core/lib/transport/metadata.c |
| 393 | src/core/lib/transport/metadata_batch.c |
Craig Tiller | dd2fa64 | 2016-10-20 15:46:32 -0700 | [diff] [blame] | 394 | src/core/lib/transport/pid_controller.c |
Mark D. Roth | ea846a0 | 2016-11-03 11:32:54 -0700 | [diff] [blame] | 395 | src/core/lib/transport/service_config.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 396 | src/core/lib/transport/static_metadata.c |
Robbie Shade | 710d242 | 2016-07-13 15:15:38 -0400 | [diff] [blame] | 397 | src/core/lib/transport/timeout_encoding.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 398 | src/core/lib/transport/transport.c |
| 399 | src/core/lib/transport/transport_op_string.c |
| 400 | src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c |
| 401 | src/core/ext/transport/chttp2/transport/bin_decoder.c |
| 402 | src/core/ext/transport/chttp2/transport/bin_encoder.c |
| 403 | src/core/ext/transport/chttp2/transport/chttp2_plugin.c |
| 404 | src/core/ext/transport/chttp2/transport/chttp2_transport.c |
| 405 | src/core/ext/transport/chttp2/transport/frame_data.c |
| 406 | src/core/ext/transport/chttp2/transport/frame_goaway.c |
| 407 | src/core/ext/transport/chttp2/transport/frame_ping.c |
| 408 | src/core/ext/transport/chttp2/transport/frame_rst_stream.c |
| 409 | src/core/ext/transport/chttp2/transport/frame_settings.c |
| 410 | src/core/ext/transport/chttp2/transport/frame_window_update.c |
| 411 | src/core/ext/transport/chttp2/transport/hpack_encoder.c |
| 412 | src/core/ext/transport/chttp2/transport/hpack_parser.c |
| 413 | src/core/ext/transport/chttp2/transport/hpack_table.c |
| 414 | src/core/ext/transport/chttp2/transport/huffsyms.c |
| 415 | src/core/ext/transport/chttp2/transport/incoming_metadata.c |
| 416 | src/core/ext/transport/chttp2/transport/parsing.c |
| 417 | src/core/ext/transport/chttp2/transport/status_conversion.c |
| 418 | src/core/ext/transport/chttp2/transport/stream_lists.c |
| 419 | src/core/ext/transport/chttp2/transport/stream_map.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 420 | src/core/ext/transport/chttp2/transport/varint.c |
| 421 | src/core/ext/transport/chttp2/transport/writing.c |
| 422 | src/core/ext/transport/chttp2/alpn/alpn.c |
| 423 | src/core/lib/http/httpcli_security_connector.c |
| 424 | src/core/lib/security/context/security_context.c |
| 425 | src/core/lib/security/credentials/composite/composite_credentials.c |
| 426 | src/core/lib/security/credentials/credentials.c |
| 427 | src/core/lib/security/credentials/credentials_metadata.c |
| 428 | src/core/lib/security/credentials/fake/fake_credentials.c |
murgatroid99 | 7c20590 | 2016-08-09 10:07:42 -0700 | [diff] [blame] | 429 | src/core/lib/security/credentials/google_default/credentials_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 430 | src/core/lib/security/credentials/google_default/google_default_credentials.c |
| 431 | src/core/lib/security/credentials/iam/iam_credentials.c |
| 432 | src/core/lib/security/credentials/jwt/json_token.c |
| 433 | src/core/lib/security/credentials/jwt/jwt_credentials.c |
| 434 | src/core/lib/security/credentials/jwt/jwt_verifier.c |
| 435 | src/core/lib/security/credentials/oauth2/oauth2_credentials.c |
| 436 | src/core/lib/security/credentials/plugin/plugin_credentials.c |
| 437 | src/core/lib/security/credentials/ssl/ssl_credentials.c |
| 438 | src/core/lib/security/transport/client_auth_filter.c |
| 439 | src/core/lib/security/transport/handshake.c |
| 440 | src/core/lib/security/transport/secure_endpoint.c |
| 441 | src/core/lib/security/transport/security_connector.c |
| 442 | src/core/lib/security/transport/server_auth_filter.c |
| 443 | src/core/lib/security/transport/tsi_error.c |
| 444 | src/core/lib/security/util/b64.c |
| 445 | src/core/lib/security/util/json_util.c |
| 446 | src/core/lib/surface/init_secure.c |
| 447 | src/core/lib/tsi/fake_transport_security.c |
| 448 | src/core/lib/tsi/ssl_transport_security.c |
| 449 | src/core/lib/tsi/transport_security.c |
| 450 | src/core/ext/transport/chttp2/client/secure/secure_channel_create.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 451 | src/core/ext/client_channel/channel_connectivity.c |
| 452 | src/core/ext/client_channel/client_channel.c |
| 453 | src/core/ext/client_channel/client_channel_factory.c |
| 454 | src/core/ext/client_channel/client_channel_plugin.c |
| 455 | src/core/ext/client_channel/connector.c |
| 456 | src/core/ext/client_channel/default_initial_connect_string.c |
Mark D. Roth | 1519574 | 2016-10-07 09:02:28 -0700 | [diff] [blame] | 457 | src/core/ext/client_channel/http_connect_handshaker.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 458 | src/core/ext/client_channel/initial_connect_string.c |
| 459 | src/core/ext/client_channel/lb_policy.c |
| 460 | src/core/ext/client_channel/lb_policy_factory.c |
| 461 | src/core/ext/client_channel/lb_policy_registry.c |
| 462 | src/core/ext/client_channel/parse_address.c |
| 463 | src/core/ext/client_channel/resolver.c |
| 464 | src/core/ext/client_channel/resolver_factory.c |
| 465 | src/core/ext/client_channel/resolver_registry.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 466 | src/core/ext/client_channel/subchannel.c |
| 467 | src/core/ext/client_channel/subchannel_index.c |
| 468 | src/core/ext/client_channel/uri_parser.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 469 | src/core/ext/transport/chttp2/server/insecure/server_chttp2.c |
| 470 | src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c |
| 471 | src/core/ext/transport/chttp2/client/insecure/channel_create.c |
| 472 | src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c |
David Garcia Quintas | 7c3ba12 | 2016-07-14 11:38:38 -0700 | [diff] [blame] | 473 | src/core/ext/lb_policy/grpclb/grpclb.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 474 | src/core/ext/lb_policy/grpclb/load_balancer_api.c |
| 475 | src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c |
| 476 | third_party/nanopb/pb_common.c |
| 477 | third_party/nanopb/pb_decode.c |
| 478 | third_party/nanopb/pb_encode.c |
| 479 | src/core/ext/lb_policy/pick_first/pick_first.c |
| 480 | src/core/ext/lb_policy/round_robin/round_robin.c |
| 481 | src/core/ext/resolver/dns/native/dns_resolver.c |
| 482 | src/core/ext/resolver/sockaddr/sockaddr_resolver.c |
| 483 | src/core/ext/load_reporting/load_reporting.c |
| 484 | src/core/ext/load_reporting/load_reporting_filter.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 485 | src/core/ext/census/base_resources.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 486 | src/core/ext/census/context.c |
| 487 | src/core/ext/census/gen/census.pb.c |
Alistair Veitch | a0c69f9 | 2016-08-31 12:01:27 -0700 | [diff] [blame] | 488 | src/core/ext/census/gen/trace_context.pb.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 489 | src/core/ext/census/grpc_context.c |
| 490 | src/core/ext/census/grpc_filter.c |
| 491 | src/core/ext/census/grpc_plugin.c |
| 492 | src/core/ext/census/initialize.c |
| 493 | src/core/ext/census/mlog.c |
| 494 | src/core/ext/census/operation.c |
| 495 | src/core/ext/census/placeholders.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 496 | src/core/ext/census/resource.c |
Vizerai | 12d1fc6 | 2016-09-09 14:22:19 -0700 | [diff] [blame] | 497 | src/core/ext/census/trace_context.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 498 | src/core/ext/census/tracing.c |
| 499 | src/core/plugin_registry/grpc_plugin_registry.c |
| 500 | ) |
| 501 | |
| 502 | target_include_directories(grpc |
| 503 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 504 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 505 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 506 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 507 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 508 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 509 | ) |
| 510 | |
| 511 | target_link_libraries(grpc |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 512 | ${_gRPC_BASELIB_LIBRARIES} |
| 513 | ${_gRPC_SSL_LIBRARIES} |
| 514 | ${_gRPC_ZLIB_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 515 | gpr |
| 516 | ) |
| 517 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 518 | foreach(_hdr |
| 519 | include/grpc/byte_buffer.h |
| 520 | include/grpc/byte_buffer_reader.h |
| 521 | include/grpc/compression.h |
| 522 | include/grpc/grpc.h |
| 523 | include/grpc/grpc_posix.h |
Nicolas "Pixel" Noble | e3e17d3 | 2016-08-20 01:45:32 +0200 | [diff] [blame] | 524 | include/grpc/grpc_security_constants.h |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 525 | include/grpc/slice.h |
| 526 | include/grpc/slice_buffer.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 527 | include/grpc/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 528 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 529 | include/grpc/impl/codegen/compression_types.h |
| 530 | include/grpc/impl/codegen/connectivity_state.h |
| 531 | include/grpc/impl/codegen/grpc_types.h |
| 532 | include/grpc/impl/codegen/propagation_bits.h |
| 533 | include/grpc/impl/codegen/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 534 | include/grpc/impl/codegen/atm.h |
| 535 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 536 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 537 | include/grpc/impl/codegen/atm_windows.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 538 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 539 | include/grpc/impl/codegen/port_platform.h |
| 540 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 541 | include/grpc/impl/codegen/sync.h |
| 542 | include/grpc/impl/codegen/sync_generic.h |
| 543 | include/grpc/impl/codegen/sync_posix.h |
| 544 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 545 | include/grpc/grpc_security.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 546 | include/grpc/census.h |
| 547 | ) |
| 548 | string(REPLACE "include/" "" _path ${_hdr}) |
| 549 | get_filename_component(_path ${_path} PATH) |
| 550 | install(FILES ${_hdr} |
| 551 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 552 | ) |
| 553 | endforeach() |
| 554 | |
| 555 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 556 | if (gRPC_INSTALL) |
| 557 | install(TARGETS grpc EXPORT gRPCTargets |
| 558 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 559 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 560 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 561 | ) |
| 562 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 563 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 564 | |
| 565 | add_library(grpc_cronet |
| 566 | src/core/lib/surface/init.c |
| 567 | src/core/lib/channel/channel_args.c |
| 568 | src/core/lib/channel/channel_stack.c |
| 569 | src/core/lib/channel/channel_stack_builder.c |
| 570 | src/core/lib/channel/compress_filter.c |
| 571 | src/core/lib/channel/connected_channel.c |
Mark D. Roth | 14c072c | 2016-08-26 08:31:34 -0700 | [diff] [blame] | 572 | src/core/lib/channel/deadline_filter.c |
Mark D. Roth | dfbdefe | 2016-07-14 09:18:22 -0700 | [diff] [blame] | 573 | src/core/lib/channel/handshaker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 574 | src/core/lib/channel/http_client_filter.c |
| 575 | src/core/lib/channel/http_server_filter.c |
Mark D. Roth | af00d8b | 2016-08-23 12:48:16 -0700 | [diff] [blame] | 576 | src/core/lib/channel/message_size_filter.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 577 | src/core/lib/compression/compression.c |
| 578 | src/core/lib/compression/message_compress.c |
| 579 | src/core/lib/debug/trace.c |
| 580 | src/core/lib/http/format_request.c |
| 581 | src/core/lib/http/httpcli.c |
| 582 | src/core/lib/http/parser.c |
| 583 | src/core/lib/iomgr/closure.c |
Craig Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 584 | src/core/lib/iomgr/combiner.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 585 | src/core/lib/iomgr/endpoint.c |
| 586 | src/core/lib/iomgr/endpoint_pair_posix.c |
murgatroid99 | c36f6ea | 2016-10-03 09:24:09 -0700 | [diff] [blame] | 587 | src/core/lib/iomgr/endpoint_pair_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 588 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 589 | src/core/lib/iomgr/error.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 590 | src/core/lib/iomgr/ev_epoll_linux.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 591 | src/core/lib/iomgr/ev_poll_posix.c |
| 592 | src/core/lib/iomgr/ev_posix.c |
| 593 | src/core/lib/iomgr/exec_ctx.c |
| 594 | src/core/lib/iomgr/executor.c |
| 595 | src/core/lib/iomgr/iocp_windows.c |
| 596 | src/core/lib/iomgr/iomgr.c |
| 597 | src/core/lib/iomgr/iomgr_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 598 | src/core/lib/iomgr/iomgr_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 599 | src/core/lib/iomgr/iomgr_windows.c |
| 600 | src/core/lib/iomgr/load_file.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 601 | src/core/lib/iomgr/network_status_tracker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 602 | src/core/lib/iomgr/polling_entity.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 603 | src/core/lib/iomgr/pollset_set_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 604 | src/core/lib/iomgr/pollset_set_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 605 | src/core/lib/iomgr/pollset_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 606 | src/core/lib/iomgr/pollset_windows.c |
| 607 | src/core/lib/iomgr/resolve_address_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 608 | src/core/lib/iomgr/resolve_address_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 609 | src/core/lib/iomgr/resolve_address_windows.c |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 610 | src/core/lib/iomgr/resource_quota.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 611 | src/core/lib/iomgr/sockaddr_utils.c |
Yuchen Zeng | de3daf5 | 2016-10-13 17:26:26 -0700 | [diff] [blame] | 612 | src/core/lib/iomgr/socket_mutator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 613 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 614 | src/core/lib/iomgr/socket_utils_linux.c |
| 615 | src/core/lib/iomgr/socket_utils_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 616 | src/core/lib/iomgr/socket_utils_uv.c |
murgatroid99 | 79b3227 | 2016-08-08 13:38:30 -0700 | [diff] [blame] | 617 | src/core/lib/iomgr/socket_utils_windows.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 618 | src/core/lib/iomgr/socket_windows.c |
| 619 | src/core/lib/iomgr/tcp_client_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 620 | src/core/lib/iomgr/tcp_client_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 621 | src/core/lib/iomgr/tcp_client_windows.c |
| 622 | src/core/lib/iomgr/tcp_posix.c |
| 623 | src/core/lib/iomgr/tcp_server_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 624 | src/core/lib/iomgr/tcp_server_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 625 | src/core/lib/iomgr/tcp_server_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 626 | src/core/lib/iomgr/tcp_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 627 | src/core/lib/iomgr/tcp_windows.c |
| 628 | src/core/lib/iomgr/time_averaged_stats.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 629 | src/core/lib/iomgr/timer_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 630 | src/core/lib/iomgr/timer_heap.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 631 | src/core/lib/iomgr/timer_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 632 | src/core/lib/iomgr/udp_server.c |
| 633 | src/core/lib/iomgr/unix_sockets_posix.c |
| 634 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
kpayson64 | d195cf5 | 2016-10-09 18:04:00 -0700 | [diff] [blame] | 635 | src/core/lib/iomgr/wakeup_fd_cv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 636 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 637 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 638 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 639 | src/core/lib/iomgr/wakeup_fd_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 640 | src/core/lib/iomgr/workqueue_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 641 | src/core/lib/iomgr/workqueue_windows.c |
| 642 | src/core/lib/json/json.c |
| 643 | src/core/lib/json/json_reader.c |
| 644 | src/core/lib/json/json_string.c |
| 645 | src/core/lib/json/json_writer.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 646 | src/core/lib/slice/percent_encoding.c |
| 647 | src/core/lib/slice/slice.c |
| 648 | src/core/lib/slice/slice_buffer.c |
| 649 | src/core/lib/slice/slice_string_helpers.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 650 | src/core/lib/surface/alarm.c |
| 651 | src/core/lib/surface/api_trace.c |
| 652 | src/core/lib/surface/byte_buffer.c |
| 653 | src/core/lib/surface/byte_buffer_reader.c |
| 654 | src/core/lib/surface/call.c |
| 655 | src/core/lib/surface/call_details.c |
| 656 | src/core/lib/surface/call_log_batch.c |
| 657 | src/core/lib/surface/channel.c |
| 658 | src/core/lib/surface/channel_init.c |
| 659 | src/core/lib/surface/channel_ping.c |
| 660 | src/core/lib/surface/channel_stack_type.c |
| 661 | src/core/lib/surface/completion_queue.c |
| 662 | src/core/lib/surface/event_string.c |
| 663 | src/core/lib/surface/lame_client.c |
| 664 | src/core/lib/surface/metadata_array.c |
| 665 | src/core/lib/surface/server.c |
| 666 | src/core/lib/surface/validate_metadata.c |
| 667 | src/core/lib/surface/version.c |
| 668 | src/core/lib/transport/byte_stream.c |
| 669 | src/core/lib/transport/connectivity_state.c |
Mark D. Roth | 6a721b5 | 2016-10-14 12:43:34 -0700 | [diff] [blame] | 670 | src/core/lib/transport/mdstr_hash_table.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 671 | src/core/lib/transport/metadata.c |
| 672 | src/core/lib/transport/metadata_batch.c |
Craig Tiller | dd2fa64 | 2016-10-20 15:46:32 -0700 | [diff] [blame] | 673 | src/core/lib/transport/pid_controller.c |
Mark D. Roth | ea846a0 | 2016-11-03 11:32:54 -0700 | [diff] [blame] | 674 | src/core/lib/transport/service_config.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 675 | src/core/lib/transport/static_metadata.c |
Robbie Shade | 710d242 | 2016-07-13 15:15:38 -0400 | [diff] [blame] | 676 | src/core/lib/transport/timeout_encoding.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 677 | src/core/lib/transport/transport.c |
| 678 | src/core/lib/transport/transport_op_string.c |
| 679 | src/core/ext/transport/cronet/client/secure/cronet_channel_create.c |
| 680 | src/core/ext/transport/cronet/transport/cronet_api_dummy.c |
| 681 | src/core/ext/transport/cronet/transport/cronet_transport.c |
| 682 | src/core/ext/transport/chttp2/client/secure/secure_channel_create.c |
| 683 | src/core/ext/transport/chttp2/transport/bin_decoder.c |
| 684 | src/core/ext/transport/chttp2/transport/bin_encoder.c |
| 685 | src/core/ext/transport/chttp2/transport/chttp2_plugin.c |
| 686 | src/core/ext/transport/chttp2/transport/chttp2_transport.c |
| 687 | src/core/ext/transport/chttp2/transport/frame_data.c |
| 688 | src/core/ext/transport/chttp2/transport/frame_goaway.c |
| 689 | src/core/ext/transport/chttp2/transport/frame_ping.c |
| 690 | src/core/ext/transport/chttp2/transport/frame_rst_stream.c |
| 691 | src/core/ext/transport/chttp2/transport/frame_settings.c |
| 692 | src/core/ext/transport/chttp2/transport/frame_window_update.c |
| 693 | src/core/ext/transport/chttp2/transport/hpack_encoder.c |
| 694 | src/core/ext/transport/chttp2/transport/hpack_parser.c |
| 695 | src/core/ext/transport/chttp2/transport/hpack_table.c |
| 696 | src/core/ext/transport/chttp2/transport/huffsyms.c |
| 697 | src/core/ext/transport/chttp2/transport/incoming_metadata.c |
| 698 | src/core/ext/transport/chttp2/transport/parsing.c |
| 699 | src/core/ext/transport/chttp2/transport/status_conversion.c |
| 700 | src/core/ext/transport/chttp2/transport/stream_lists.c |
| 701 | src/core/ext/transport/chttp2/transport/stream_map.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 702 | src/core/ext/transport/chttp2/transport/varint.c |
| 703 | src/core/ext/transport/chttp2/transport/writing.c |
| 704 | src/core/ext/transport/chttp2/alpn/alpn.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 705 | src/core/ext/client_channel/channel_connectivity.c |
| 706 | src/core/ext/client_channel/client_channel.c |
| 707 | src/core/ext/client_channel/client_channel_factory.c |
| 708 | src/core/ext/client_channel/client_channel_plugin.c |
| 709 | src/core/ext/client_channel/connector.c |
| 710 | src/core/ext/client_channel/default_initial_connect_string.c |
Mark D. Roth | 1519574 | 2016-10-07 09:02:28 -0700 | [diff] [blame] | 711 | src/core/ext/client_channel/http_connect_handshaker.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 712 | src/core/ext/client_channel/initial_connect_string.c |
| 713 | src/core/ext/client_channel/lb_policy.c |
| 714 | src/core/ext/client_channel/lb_policy_factory.c |
| 715 | src/core/ext/client_channel/lb_policy_registry.c |
| 716 | src/core/ext/client_channel/parse_address.c |
| 717 | src/core/ext/client_channel/resolver.c |
| 718 | src/core/ext/client_channel/resolver_factory.c |
| 719 | src/core/ext/client_channel/resolver_registry.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 720 | src/core/ext/client_channel/subchannel.c |
| 721 | src/core/ext/client_channel/subchannel_index.c |
| 722 | src/core/ext/client_channel/uri_parser.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 723 | src/core/lib/http/httpcli_security_connector.c |
| 724 | src/core/lib/security/context/security_context.c |
| 725 | src/core/lib/security/credentials/composite/composite_credentials.c |
| 726 | src/core/lib/security/credentials/credentials.c |
| 727 | src/core/lib/security/credentials/credentials_metadata.c |
| 728 | src/core/lib/security/credentials/fake/fake_credentials.c |
murgatroid99 | 7c20590 | 2016-08-09 10:07:42 -0700 | [diff] [blame] | 729 | src/core/lib/security/credentials/google_default/credentials_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 730 | src/core/lib/security/credentials/google_default/google_default_credentials.c |
| 731 | src/core/lib/security/credentials/iam/iam_credentials.c |
| 732 | src/core/lib/security/credentials/jwt/json_token.c |
| 733 | src/core/lib/security/credentials/jwt/jwt_credentials.c |
| 734 | src/core/lib/security/credentials/jwt/jwt_verifier.c |
| 735 | src/core/lib/security/credentials/oauth2/oauth2_credentials.c |
| 736 | src/core/lib/security/credentials/plugin/plugin_credentials.c |
| 737 | src/core/lib/security/credentials/ssl/ssl_credentials.c |
| 738 | src/core/lib/security/transport/client_auth_filter.c |
| 739 | src/core/lib/security/transport/handshake.c |
| 740 | src/core/lib/security/transport/secure_endpoint.c |
| 741 | src/core/lib/security/transport/security_connector.c |
| 742 | src/core/lib/security/transport/server_auth_filter.c |
| 743 | src/core/lib/security/transport/tsi_error.c |
| 744 | src/core/lib/security/util/b64.c |
| 745 | src/core/lib/security/util/json_util.c |
| 746 | src/core/lib/surface/init_secure.c |
| 747 | src/core/lib/tsi/fake_transport_security.c |
| 748 | src/core/lib/tsi/ssl_transport_security.c |
| 749 | src/core/lib/tsi/transport_security.c |
| 750 | src/core/plugin_registry/grpc_cronet_plugin_registry.c |
| 751 | ) |
| 752 | |
| 753 | target_include_directories(grpc_cronet |
| 754 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 755 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 756 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 757 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 758 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 759 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 760 | ) |
| 761 | |
| 762 | target_link_libraries(grpc_cronet |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 763 | ${_gRPC_BASELIB_LIBRARIES} |
| 764 | ${_gRPC_SSL_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 765 | gpr |
| 766 | ) |
| 767 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 768 | foreach(_hdr |
| 769 | include/grpc/byte_buffer.h |
| 770 | include/grpc/byte_buffer_reader.h |
| 771 | include/grpc/compression.h |
| 772 | include/grpc/grpc.h |
| 773 | include/grpc/grpc_posix.h |
Nicolas "Pixel" Noble | e3e17d3 | 2016-08-20 01:45:32 +0200 | [diff] [blame] | 774 | include/grpc/grpc_security_constants.h |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 775 | include/grpc/slice.h |
| 776 | include/grpc/slice_buffer.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 777 | include/grpc/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 778 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 779 | include/grpc/impl/codegen/compression_types.h |
| 780 | include/grpc/impl/codegen/connectivity_state.h |
| 781 | include/grpc/impl/codegen/grpc_types.h |
| 782 | include/grpc/impl/codegen/propagation_bits.h |
| 783 | include/grpc/impl/codegen/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 784 | include/grpc/impl/codegen/atm.h |
| 785 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 786 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 787 | include/grpc/impl/codegen/atm_windows.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 788 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 789 | include/grpc/impl/codegen/port_platform.h |
| 790 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 791 | include/grpc/impl/codegen/sync.h |
| 792 | include/grpc/impl/codegen/sync_generic.h |
| 793 | include/grpc/impl/codegen/sync_posix.h |
| 794 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 795 | include/grpc/grpc_cronet.h |
| 796 | include/grpc/grpc_security.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 797 | ) |
| 798 | string(REPLACE "include/" "" _path ${_hdr}) |
| 799 | get_filename_component(_path ${_path} PATH) |
| 800 | install(FILES ${_hdr} |
| 801 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 802 | ) |
| 803 | endforeach() |
| 804 | |
| 805 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 806 | if (gRPC_INSTALL) |
| 807 | install(TARGETS grpc_cronet EXPORT gRPCTargets |
| 808 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 809 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 810 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 811 | ) |
| 812 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 813 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 814 | |
| 815 | add_library(grpc_unsecure |
| 816 | src/core/lib/surface/init.c |
| 817 | src/core/lib/surface/init_unsecure.c |
| 818 | src/core/lib/channel/channel_args.c |
| 819 | src/core/lib/channel/channel_stack.c |
| 820 | src/core/lib/channel/channel_stack_builder.c |
| 821 | src/core/lib/channel/compress_filter.c |
| 822 | src/core/lib/channel/connected_channel.c |
Mark D. Roth | 14c072c | 2016-08-26 08:31:34 -0700 | [diff] [blame] | 823 | src/core/lib/channel/deadline_filter.c |
Mark D. Roth | dfbdefe | 2016-07-14 09:18:22 -0700 | [diff] [blame] | 824 | src/core/lib/channel/handshaker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 825 | src/core/lib/channel/http_client_filter.c |
| 826 | src/core/lib/channel/http_server_filter.c |
Mark D. Roth | af00d8b | 2016-08-23 12:48:16 -0700 | [diff] [blame] | 827 | src/core/lib/channel/message_size_filter.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 828 | src/core/lib/compression/compression.c |
| 829 | src/core/lib/compression/message_compress.c |
| 830 | src/core/lib/debug/trace.c |
| 831 | src/core/lib/http/format_request.c |
| 832 | src/core/lib/http/httpcli.c |
| 833 | src/core/lib/http/parser.c |
| 834 | src/core/lib/iomgr/closure.c |
Craig Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 835 | src/core/lib/iomgr/combiner.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 836 | src/core/lib/iomgr/endpoint.c |
| 837 | src/core/lib/iomgr/endpoint_pair_posix.c |
murgatroid99 | c36f6ea | 2016-10-03 09:24:09 -0700 | [diff] [blame] | 838 | src/core/lib/iomgr/endpoint_pair_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 839 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 840 | src/core/lib/iomgr/error.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 841 | src/core/lib/iomgr/ev_epoll_linux.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 842 | src/core/lib/iomgr/ev_poll_posix.c |
| 843 | src/core/lib/iomgr/ev_posix.c |
| 844 | src/core/lib/iomgr/exec_ctx.c |
| 845 | src/core/lib/iomgr/executor.c |
| 846 | src/core/lib/iomgr/iocp_windows.c |
| 847 | src/core/lib/iomgr/iomgr.c |
| 848 | src/core/lib/iomgr/iomgr_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 849 | src/core/lib/iomgr/iomgr_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 850 | src/core/lib/iomgr/iomgr_windows.c |
| 851 | src/core/lib/iomgr/load_file.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 852 | src/core/lib/iomgr/network_status_tracker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 853 | src/core/lib/iomgr/polling_entity.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 854 | src/core/lib/iomgr/pollset_set_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 855 | src/core/lib/iomgr/pollset_set_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 856 | src/core/lib/iomgr/pollset_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 857 | src/core/lib/iomgr/pollset_windows.c |
| 858 | src/core/lib/iomgr/resolve_address_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 859 | src/core/lib/iomgr/resolve_address_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 860 | src/core/lib/iomgr/resolve_address_windows.c |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 861 | src/core/lib/iomgr/resource_quota.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 862 | src/core/lib/iomgr/sockaddr_utils.c |
Yuchen Zeng | de3daf5 | 2016-10-13 17:26:26 -0700 | [diff] [blame] | 863 | src/core/lib/iomgr/socket_mutator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 864 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 865 | src/core/lib/iomgr/socket_utils_linux.c |
| 866 | src/core/lib/iomgr/socket_utils_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 867 | src/core/lib/iomgr/socket_utils_uv.c |
murgatroid99 | 79b3227 | 2016-08-08 13:38:30 -0700 | [diff] [blame] | 868 | src/core/lib/iomgr/socket_utils_windows.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 869 | src/core/lib/iomgr/socket_windows.c |
| 870 | src/core/lib/iomgr/tcp_client_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 871 | src/core/lib/iomgr/tcp_client_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 872 | src/core/lib/iomgr/tcp_client_windows.c |
| 873 | src/core/lib/iomgr/tcp_posix.c |
| 874 | src/core/lib/iomgr/tcp_server_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 875 | src/core/lib/iomgr/tcp_server_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 876 | src/core/lib/iomgr/tcp_server_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 877 | src/core/lib/iomgr/tcp_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 878 | src/core/lib/iomgr/tcp_windows.c |
| 879 | src/core/lib/iomgr/time_averaged_stats.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 880 | src/core/lib/iomgr/timer_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 881 | src/core/lib/iomgr/timer_heap.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 882 | src/core/lib/iomgr/timer_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 883 | src/core/lib/iomgr/udp_server.c |
| 884 | src/core/lib/iomgr/unix_sockets_posix.c |
| 885 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
kpayson64 | d195cf5 | 2016-10-09 18:04:00 -0700 | [diff] [blame] | 886 | src/core/lib/iomgr/wakeup_fd_cv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 887 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 888 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 889 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 890 | src/core/lib/iomgr/wakeup_fd_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 891 | src/core/lib/iomgr/workqueue_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 892 | src/core/lib/iomgr/workqueue_windows.c |
| 893 | src/core/lib/json/json.c |
| 894 | src/core/lib/json/json_reader.c |
| 895 | src/core/lib/json/json_string.c |
| 896 | src/core/lib/json/json_writer.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 897 | src/core/lib/slice/percent_encoding.c |
| 898 | src/core/lib/slice/slice.c |
| 899 | src/core/lib/slice/slice_buffer.c |
| 900 | src/core/lib/slice/slice_string_helpers.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 901 | src/core/lib/surface/alarm.c |
| 902 | src/core/lib/surface/api_trace.c |
| 903 | src/core/lib/surface/byte_buffer.c |
| 904 | src/core/lib/surface/byte_buffer_reader.c |
| 905 | src/core/lib/surface/call.c |
| 906 | src/core/lib/surface/call_details.c |
| 907 | src/core/lib/surface/call_log_batch.c |
| 908 | src/core/lib/surface/channel.c |
| 909 | src/core/lib/surface/channel_init.c |
| 910 | src/core/lib/surface/channel_ping.c |
| 911 | src/core/lib/surface/channel_stack_type.c |
| 912 | src/core/lib/surface/completion_queue.c |
| 913 | src/core/lib/surface/event_string.c |
| 914 | src/core/lib/surface/lame_client.c |
| 915 | src/core/lib/surface/metadata_array.c |
| 916 | src/core/lib/surface/server.c |
| 917 | src/core/lib/surface/validate_metadata.c |
| 918 | src/core/lib/surface/version.c |
| 919 | src/core/lib/transport/byte_stream.c |
| 920 | src/core/lib/transport/connectivity_state.c |
Mark D. Roth | 6a721b5 | 2016-10-14 12:43:34 -0700 | [diff] [blame] | 921 | src/core/lib/transport/mdstr_hash_table.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 922 | src/core/lib/transport/metadata.c |
| 923 | src/core/lib/transport/metadata_batch.c |
Craig Tiller | dd2fa64 | 2016-10-20 15:46:32 -0700 | [diff] [blame] | 924 | src/core/lib/transport/pid_controller.c |
Mark D. Roth | ea846a0 | 2016-11-03 11:32:54 -0700 | [diff] [blame] | 925 | src/core/lib/transport/service_config.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 926 | src/core/lib/transport/static_metadata.c |
Robbie Shade | 710d242 | 2016-07-13 15:15:38 -0400 | [diff] [blame] | 927 | src/core/lib/transport/timeout_encoding.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 928 | src/core/lib/transport/transport.c |
| 929 | src/core/lib/transport/transport_op_string.c |
| 930 | src/core/ext/transport/chttp2/server/insecure/server_chttp2.c |
| 931 | src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c |
| 932 | src/core/ext/transport/chttp2/transport/bin_decoder.c |
| 933 | src/core/ext/transport/chttp2/transport/bin_encoder.c |
| 934 | src/core/ext/transport/chttp2/transport/chttp2_plugin.c |
| 935 | src/core/ext/transport/chttp2/transport/chttp2_transport.c |
| 936 | src/core/ext/transport/chttp2/transport/frame_data.c |
| 937 | src/core/ext/transport/chttp2/transport/frame_goaway.c |
| 938 | src/core/ext/transport/chttp2/transport/frame_ping.c |
| 939 | src/core/ext/transport/chttp2/transport/frame_rst_stream.c |
| 940 | src/core/ext/transport/chttp2/transport/frame_settings.c |
| 941 | src/core/ext/transport/chttp2/transport/frame_window_update.c |
| 942 | src/core/ext/transport/chttp2/transport/hpack_encoder.c |
| 943 | src/core/ext/transport/chttp2/transport/hpack_parser.c |
| 944 | src/core/ext/transport/chttp2/transport/hpack_table.c |
| 945 | src/core/ext/transport/chttp2/transport/huffsyms.c |
| 946 | src/core/ext/transport/chttp2/transport/incoming_metadata.c |
| 947 | src/core/ext/transport/chttp2/transport/parsing.c |
| 948 | src/core/ext/transport/chttp2/transport/status_conversion.c |
| 949 | src/core/ext/transport/chttp2/transport/stream_lists.c |
| 950 | src/core/ext/transport/chttp2/transport/stream_map.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 951 | src/core/ext/transport/chttp2/transport/varint.c |
| 952 | src/core/ext/transport/chttp2/transport/writing.c |
| 953 | src/core/ext/transport/chttp2/alpn/alpn.c |
| 954 | src/core/ext/transport/chttp2/client/insecure/channel_create.c |
| 955 | src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 956 | src/core/ext/client_channel/channel_connectivity.c |
| 957 | src/core/ext/client_channel/client_channel.c |
| 958 | src/core/ext/client_channel/client_channel_factory.c |
| 959 | src/core/ext/client_channel/client_channel_plugin.c |
| 960 | src/core/ext/client_channel/connector.c |
| 961 | src/core/ext/client_channel/default_initial_connect_string.c |
Mark D. Roth | 1519574 | 2016-10-07 09:02:28 -0700 | [diff] [blame] | 962 | src/core/ext/client_channel/http_connect_handshaker.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 963 | src/core/ext/client_channel/initial_connect_string.c |
| 964 | src/core/ext/client_channel/lb_policy.c |
| 965 | src/core/ext/client_channel/lb_policy_factory.c |
| 966 | src/core/ext/client_channel/lb_policy_registry.c |
| 967 | src/core/ext/client_channel/parse_address.c |
| 968 | src/core/ext/client_channel/resolver.c |
| 969 | src/core/ext/client_channel/resolver_factory.c |
| 970 | src/core/ext/client_channel/resolver_registry.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 971 | src/core/ext/client_channel/subchannel.c |
| 972 | src/core/ext/client_channel/subchannel_index.c |
| 973 | src/core/ext/client_channel/uri_parser.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 974 | src/core/ext/resolver/dns/native/dns_resolver.c |
| 975 | src/core/ext/resolver/sockaddr/sockaddr_resolver.c |
| 976 | src/core/ext/load_reporting/load_reporting.c |
| 977 | src/core/ext/load_reporting/load_reporting_filter.c |
David Garcia Quintas | 7c3ba12 | 2016-07-14 11:38:38 -0700 | [diff] [blame] | 978 | src/core/ext/lb_policy/grpclb/grpclb.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 979 | src/core/ext/lb_policy/grpclb/load_balancer_api.c |
| 980 | src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c |
| 981 | third_party/nanopb/pb_common.c |
| 982 | third_party/nanopb/pb_decode.c |
| 983 | third_party/nanopb/pb_encode.c |
| 984 | src/core/ext/lb_policy/pick_first/pick_first.c |
| 985 | src/core/ext/lb_policy/round_robin/round_robin.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 986 | src/core/ext/census/base_resources.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 987 | src/core/ext/census/context.c |
| 988 | src/core/ext/census/gen/census.pb.c |
Alistair Veitch | a0c69f9 | 2016-08-31 12:01:27 -0700 | [diff] [blame] | 989 | src/core/ext/census/gen/trace_context.pb.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 990 | src/core/ext/census/grpc_context.c |
| 991 | src/core/ext/census/grpc_filter.c |
| 992 | src/core/ext/census/grpc_plugin.c |
| 993 | src/core/ext/census/initialize.c |
| 994 | src/core/ext/census/mlog.c |
| 995 | src/core/ext/census/operation.c |
| 996 | src/core/ext/census/placeholders.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 997 | src/core/ext/census/resource.c |
Vizerai | 12d1fc6 | 2016-09-09 14:22:19 -0700 | [diff] [blame] | 998 | src/core/ext/census/trace_context.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 999 | src/core/ext/census/tracing.c |
| 1000 | src/core/plugin_registry/grpc_unsecure_plugin_registry.c |
| 1001 | ) |
| 1002 | |
| 1003 | target_include_directories(grpc_unsecure |
| 1004 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1005 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1006 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1007 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1008 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1009 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1010 | ) |
| 1011 | |
| 1012 | target_link_libraries(grpc_unsecure |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1013 | ${_gRPC_BASELIB_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1014 | gpr |
| 1015 | ) |
| 1016 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1017 | foreach(_hdr |
| 1018 | include/grpc/byte_buffer.h |
| 1019 | include/grpc/byte_buffer_reader.h |
| 1020 | include/grpc/compression.h |
| 1021 | include/grpc/grpc.h |
| 1022 | include/grpc/grpc_posix.h |
Nicolas "Pixel" Noble | e3e17d3 | 2016-08-20 01:45:32 +0200 | [diff] [blame] | 1023 | include/grpc/grpc_security_constants.h |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1024 | include/grpc/slice.h |
| 1025 | include/grpc/slice_buffer.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1026 | include/grpc/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1027 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 1028 | include/grpc/impl/codegen/compression_types.h |
| 1029 | include/grpc/impl/codegen/connectivity_state.h |
| 1030 | include/grpc/impl/codegen/grpc_types.h |
| 1031 | include/grpc/impl/codegen/propagation_bits.h |
| 1032 | include/grpc/impl/codegen/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1033 | include/grpc/impl/codegen/atm.h |
| 1034 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 1035 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 1036 | include/grpc/impl/codegen/atm_windows.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 1037 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1038 | include/grpc/impl/codegen/port_platform.h |
| 1039 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1040 | include/grpc/impl/codegen/sync.h |
| 1041 | include/grpc/impl/codegen/sync_generic.h |
| 1042 | include/grpc/impl/codegen/sync_posix.h |
| 1043 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1044 | include/grpc/census.h |
| 1045 | ) |
| 1046 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1047 | get_filename_component(_path ${_path} PATH) |
| 1048 | install(FILES ${_hdr} |
| 1049 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1050 | ) |
| 1051 | endforeach() |
| 1052 | |
| 1053 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1054 | if (gRPC_INSTALL) |
| 1055 | install(TARGETS grpc_unsecure EXPORT gRPCTargets |
| 1056 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1057 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1058 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1059 | ) |
| 1060 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1061 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1062 | |
| 1063 | add_library(grpc++ |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 1064 | src/cpp/client/insecure_credentials.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1065 | src/cpp/client/secure_credentials.cc |
| 1066 | src/cpp/common/auth_property_iterator.cc |
| 1067 | src/cpp/common/secure_auth_context.cc |
| 1068 | src/cpp/common/secure_channel_arguments.cc |
| 1069 | src/cpp/common/secure_create_auth_context.cc |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 1070 | src/cpp/server/insecure_server_credentials.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1071 | src/cpp/server/secure_server_credentials.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1072 | src/cpp/client/channel_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1073 | src/cpp/client/client_context.cc |
| 1074 | src/cpp/client/create_channel.cc |
| 1075 | src/cpp/client/create_channel_internal.cc |
| 1076 | src/cpp/client/create_channel_posix.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1077 | src/cpp/client/credentials_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1078 | src/cpp/client/generic_stub.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1079 | src/cpp/common/channel_arguments.cc |
Mark D. Roth | 4004ac2 | 2016-08-02 10:08:27 -0700 | [diff] [blame] | 1080 | src/cpp/common/channel_filter.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1081 | src/cpp/common/completion_queue_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1082 | src/cpp/common/core_codegen.cc |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 1083 | src/cpp/common/resource_quota_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1084 | src/cpp/common/rpc_method.cc |
Craig Tiller | ed91324 | 2016-11-04 16:31:30 -0700 | [diff] [blame] | 1085 | src/cpp/common/version_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1086 | src/cpp/server/async_generic_service.cc |
| 1087 | src/cpp/server/create_default_thread_pool.cc |
| 1088 | src/cpp/server/dynamic_thread_pool.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1089 | src/cpp/server/server_builder.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1090 | src/cpp/server/server_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1091 | src/cpp/server/server_context.cc |
| 1092 | src/cpp/server/server_credentials.cc |
| 1093 | src/cpp/server/server_posix.cc |
Sree Kuchibhotla | 8f7739b | 2016-10-13 15:12:55 -0700 | [diff] [blame] | 1094 | src/cpp/thread_manager/thread_manager.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1095 | src/cpp/util/byte_buffer_cc.cc |
| 1096 | src/cpp/util/slice_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1097 | src/cpp/util/status.cc |
| 1098 | src/cpp/util/string_ref.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1099 | src/cpp/util/time_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1100 | src/cpp/codegen/codegen_init.cc |
| 1101 | ) |
| 1102 | |
| 1103 | target_include_directories(grpc++ |
| 1104 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1105 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1106 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1107 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1108 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1109 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1110 | ) |
| 1111 | |
| 1112 | target_link_libraries(grpc++ |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1113 | ${_gRPC_BASELIB_LIBRARIES} |
| 1114 | ${_gRPC_SSL_LIBRARIES} |
| 1115 | ${_gRPC_PROTOBUF_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1116 | grpc |
| 1117 | ) |
| 1118 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1119 | foreach(_hdr |
| 1120 | include/grpc++/alarm.h |
| 1121 | include/grpc++/channel.h |
| 1122 | include/grpc++/client_context.h |
| 1123 | include/grpc++/completion_queue.h |
| 1124 | include/grpc++/create_channel.h |
| 1125 | include/grpc++/create_channel_posix.h |
| 1126 | include/grpc++/generic/async_generic_service.h |
| 1127 | include/grpc++/generic/generic_stub.h |
| 1128 | include/grpc++/grpc++.h |
| 1129 | include/grpc++/impl/call.h |
| 1130 | include/grpc++/impl/client_unary_call.h |
| 1131 | include/grpc++/impl/codegen/core_codegen.h |
| 1132 | include/grpc++/impl/grpc_library.h |
| 1133 | include/grpc++/impl/method_handler_impl.h |
| 1134 | include/grpc++/impl/rpc_method.h |
| 1135 | include/grpc++/impl/rpc_service_method.h |
| 1136 | include/grpc++/impl/serialization_traits.h |
| 1137 | include/grpc++/impl/server_builder_option.h |
| 1138 | include/grpc++/impl/server_builder_plugin.h |
| 1139 | include/grpc++/impl/server_initializer.h |
| 1140 | include/grpc++/impl/service_type.h |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 1141 | include/grpc++/resource_quota.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1142 | include/grpc++/security/auth_context.h |
| 1143 | include/grpc++/security/auth_metadata_processor.h |
| 1144 | include/grpc++/security/credentials.h |
| 1145 | include/grpc++/security/server_credentials.h |
| 1146 | include/grpc++/server.h |
| 1147 | include/grpc++/server_builder.h |
| 1148 | include/grpc++/server_context.h |
| 1149 | include/grpc++/server_posix.h |
| 1150 | include/grpc++/support/async_stream.h |
| 1151 | include/grpc++/support/async_unary_call.h |
| 1152 | include/grpc++/support/byte_buffer.h |
| 1153 | include/grpc++/support/channel_arguments.h |
| 1154 | include/grpc++/support/config.h |
| 1155 | include/grpc++/support/slice.h |
| 1156 | include/grpc++/support/status.h |
| 1157 | include/grpc++/support/status_code_enum.h |
| 1158 | include/grpc++/support/string_ref.h |
| 1159 | include/grpc++/support/stub_options.h |
| 1160 | include/grpc++/support/sync_stream.h |
| 1161 | include/grpc++/support/time.h |
| 1162 | include/grpc++/impl/codegen/async_stream.h |
| 1163 | include/grpc++/impl/codegen/async_unary_call.h |
| 1164 | include/grpc++/impl/codegen/call.h |
| 1165 | include/grpc++/impl/codegen/call_hook.h |
| 1166 | include/grpc++/impl/codegen/channel_interface.h |
| 1167 | include/grpc++/impl/codegen/client_context.h |
| 1168 | include/grpc++/impl/codegen/client_unary_call.h |
| 1169 | include/grpc++/impl/codegen/completion_queue.h |
| 1170 | include/grpc++/impl/codegen/completion_queue_tag.h |
| 1171 | include/grpc++/impl/codegen/config.h |
| 1172 | include/grpc++/impl/codegen/core_codegen_interface.h |
| 1173 | include/grpc++/impl/codegen/create_auth_context.h |
| 1174 | include/grpc++/impl/codegen/grpc_library.h |
| 1175 | include/grpc++/impl/codegen/method_handler_impl.h |
| 1176 | include/grpc++/impl/codegen/rpc_method.h |
| 1177 | include/grpc++/impl/codegen/rpc_service_method.h |
| 1178 | include/grpc++/impl/codegen/security/auth_context.h |
| 1179 | include/grpc++/impl/codegen/serialization_traits.h |
| 1180 | include/grpc++/impl/codegen/server_context.h |
| 1181 | include/grpc++/impl/codegen/server_interface.h |
| 1182 | include/grpc++/impl/codegen/service_type.h |
| 1183 | include/grpc++/impl/codegen/status.h |
| 1184 | include/grpc++/impl/codegen/status_code_enum.h |
yang-g | d558149 | 2016-09-06 14:05:53 -0700 | [diff] [blame] | 1185 | include/grpc++/impl/codegen/status_helper.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1186 | include/grpc++/impl/codegen/string_ref.h |
| 1187 | include/grpc++/impl/codegen/stub_options.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1188 | include/grpc++/impl/codegen/sync_stream.h |
| 1189 | include/grpc++/impl/codegen/time.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 1190 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 1191 | include/grpc/impl/codegen/compression_types.h |
| 1192 | include/grpc/impl/codegen/connectivity_state.h |
| 1193 | include/grpc/impl/codegen/grpc_types.h |
| 1194 | include/grpc/impl/codegen/propagation_bits.h |
| 1195 | include/grpc/impl/codegen/status.h |
| 1196 | include/grpc/impl/codegen/atm.h |
| 1197 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 1198 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 1199 | include/grpc/impl/codegen/atm_windows.h |
| 1200 | include/grpc/impl/codegen/gpr_types.h |
| 1201 | include/grpc/impl/codegen/port_platform.h |
| 1202 | include/grpc/impl/codegen/slice.h |
| 1203 | include/grpc/impl/codegen/sync.h |
| 1204 | include/grpc/impl/codegen/sync_generic.h |
| 1205 | include/grpc/impl/codegen/sync_posix.h |
| 1206 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1207 | ) |
| 1208 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1209 | get_filename_component(_path ${_path} PATH) |
| 1210 | install(FILES ${_hdr} |
| 1211 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1212 | ) |
| 1213 | endforeach() |
| 1214 | |
| 1215 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1216 | if (gRPC_INSTALL) |
| 1217 | install(TARGETS grpc++ EXPORT gRPCTargets |
| 1218 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1219 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1220 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1221 | ) |
| 1222 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1223 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1224 | |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 1225 | add_library(grpc++_cronet |
| 1226 | src/cpp/client/cronet_credentials.cc |
| 1227 | src/cpp/client/insecure_credentials.cc |
| 1228 | src/cpp/common/insecure_create_auth_context.cc |
| 1229 | src/cpp/server/insecure_server_credentials.cc |
| 1230 | src/cpp/client/channel_cc.cc |
| 1231 | src/cpp/client/client_context.cc |
| 1232 | src/cpp/client/create_channel.cc |
| 1233 | src/cpp/client/create_channel_internal.cc |
| 1234 | src/cpp/client/create_channel_posix.cc |
| 1235 | src/cpp/client/credentials_cc.cc |
| 1236 | src/cpp/client/generic_stub.cc |
| 1237 | src/cpp/common/channel_arguments.cc |
| 1238 | src/cpp/common/channel_filter.cc |
| 1239 | src/cpp/common/completion_queue_cc.cc |
| 1240 | src/cpp/common/core_codegen.cc |
Craig Tiller | 3d357d9 | 2016-10-26 20:52:03 -0700 | [diff] [blame] | 1241 | src/cpp/common/resource_quota_cc.cc |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 1242 | src/cpp/common/rpc_method.cc |
Craig Tiller | ed91324 | 2016-11-04 16:31:30 -0700 | [diff] [blame] | 1243 | src/cpp/common/version_cc.cc |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 1244 | src/cpp/server/async_generic_service.cc |
| 1245 | src/cpp/server/create_default_thread_pool.cc |
| 1246 | src/cpp/server/dynamic_thread_pool.cc |
| 1247 | src/cpp/server/server_builder.cc |
| 1248 | src/cpp/server/server_cc.cc |
| 1249 | src/cpp/server/server_context.cc |
| 1250 | src/cpp/server/server_credentials.cc |
| 1251 | src/cpp/server/server_posix.cc |
Sree Kuchibhotla | 33d5494 | 2016-10-25 10:03:52 -0700 | [diff] [blame] | 1252 | src/cpp/thread_manager/thread_manager.cc |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 1253 | src/cpp/util/byte_buffer_cc.cc |
| 1254 | src/cpp/util/slice_cc.cc |
| 1255 | src/cpp/util/status.cc |
| 1256 | src/cpp/util/string_ref.cc |
| 1257 | src/cpp/util/time_cc.cc |
| 1258 | src/cpp/codegen/codegen_init.cc |
| 1259 | ) |
| 1260 | |
| 1261 | target_include_directories(grpc++_cronet |
| 1262 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1263 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1264 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1265 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1266 | PRIVATE ${ZLIB_INCLUDE_DIR} |
| 1267 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1268 | ) |
| 1269 | |
| 1270 | target_link_libraries(grpc++_cronet |
| 1271 | ${_gRPC_BASELIB_LIBRARIES} |
| 1272 | ${_gRPC_SSL_LIBRARIES} |
| 1273 | gpr |
| 1274 | grpc_cronet |
| 1275 | ) |
| 1276 | |
| 1277 | foreach(_hdr |
| 1278 | include/grpc++/alarm.h |
| 1279 | include/grpc++/channel.h |
| 1280 | include/grpc++/client_context.h |
| 1281 | include/grpc++/completion_queue.h |
| 1282 | include/grpc++/create_channel.h |
| 1283 | include/grpc++/create_channel_posix.h |
| 1284 | include/grpc++/generic/async_generic_service.h |
| 1285 | include/grpc++/generic/generic_stub.h |
| 1286 | include/grpc++/grpc++.h |
| 1287 | include/grpc++/impl/call.h |
| 1288 | include/grpc++/impl/client_unary_call.h |
| 1289 | include/grpc++/impl/codegen/core_codegen.h |
| 1290 | include/grpc++/impl/grpc_library.h |
| 1291 | include/grpc++/impl/method_handler_impl.h |
| 1292 | include/grpc++/impl/rpc_method.h |
| 1293 | include/grpc++/impl/rpc_service_method.h |
| 1294 | include/grpc++/impl/serialization_traits.h |
| 1295 | include/grpc++/impl/server_builder_option.h |
| 1296 | include/grpc++/impl/server_builder_plugin.h |
| 1297 | include/grpc++/impl/server_initializer.h |
| 1298 | include/grpc++/impl/service_type.h |
Craig Tiller | 3d357d9 | 2016-10-26 20:52:03 -0700 | [diff] [blame] | 1299 | include/grpc++/resource_quota.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 1300 | include/grpc++/security/auth_context.h |
| 1301 | include/grpc++/security/auth_metadata_processor.h |
| 1302 | include/grpc++/security/credentials.h |
| 1303 | include/grpc++/security/server_credentials.h |
| 1304 | include/grpc++/server.h |
| 1305 | include/grpc++/server_builder.h |
| 1306 | include/grpc++/server_context.h |
| 1307 | include/grpc++/server_posix.h |
| 1308 | include/grpc++/support/async_stream.h |
| 1309 | include/grpc++/support/async_unary_call.h |
| 1310 | include/grpc++/support/byte_buffer.h |
| 1311 | include/grpc++/support/channel_arguments.h |
| 1312 | include/grpc++/support/config.h |
| 1313 | include/grpc++/support/slice.h |
| 1314 | include/grpc++/support/status.h |
| 1315 | include/grpc++/support/status_code_enum.h |
| 1316 | include/grpc++/support/string_ref.h |
| 1317 | include/grpc++/support/stub_options.h |
| 1318 | include/grpc++/support/sync_stream.h |
| 1319 | include/grpc++/support/time.h |
| 1320 | include/grpc++/impl/codegen/async_stream.h |
| 1321 | include/grpc++/impl/codegen/async_unary_call.h |
| 1322 | include/grpc++/impl/codegen/call.h |
| 1323 | include/grpc++/impl/codegen/call_hook.h |
| 1324 | include/grpc++/impl/codegen/channel_interface.h |
| 1325 | include/grpc++/impl/codegen/client_context.h |
| 1326 | include/grpc++/impl/codegen/client_unary_call.h |
| 1327 | include/grpc++/impl/codegen/completion_queue.h |
| 1328 | include/grpc++/impl/codegen/completion_queue_tag.h |
| 1329 | include/grpc++/impl/codegen/config.h |
| 1330 | include/grpc++/impl/codegen/core_codegen_interface.h |
| 1331 | include/grpc++/impl/codegen/create_auth_context.h |
| 1332 | include/grpc++/impl/codegen/grpc_library.h |
| 1333 | include/grpc++/impl/codegen/method_handler_impl.h |
| 1334 | include/grpc++/impl/codegen/rpc_method.h |
| 1335 | include/grpc++/impl/codegen/rpc_service_method.h |
| 1336 | include/grpc++/impl/codegen/security/auth_context.h |
| 1337 | include/grpc++/impl/codegen/serialization_traits.h |
| 1338 | include/grpc++/impl/codegen/server_context.h |
| 1339 | include/grpc++/impl/codegen/server_interface.h |
| 1340 | include/grpc++/impl/codegen/service_type.h |
| 1341 | include/grpc++/impl/codegen/status.h |
| 1342 | include/grpc++/impl/codegen/status_code_enum.h |
| 1343 | include/grpc++/impl/codegen/status_helper.h |
| 1344 | include/grpc++/impl/codegen/string_ref.h |
| 1345 | include/grpc++/impl/codegen/stub_options.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 1346 | include/grpc++/impl/codegen/sync_stream.h |
| 1347 | include/grpc++/impl/codegen/time.h |
| 1348 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 1349 | include/grpc/impl/codegen/compression_types.h |
| 1350 | include/grpc/impl/codegen/connectivity_state.h |
| 1351 | include/grpc/impl/codegen/grpc_types.h |
| 1352 | include/grpc/impl/codegen/propagation_bits.h |
| 1353 | include/grpc/impl/codegen/status.h |
| 1354 | include/grpc/impl/codegen/atm.h |
| 1355 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 1356 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 1357 | include/grpc/impl/codegen/atm_windows.h |
| 1358 | include/grpc/impl/codegen/gpr_types.h |
| 1359 | include/grpc/impl/codegen/port_platform.h |
| 1360 | include/grpc/impl/codegen/slice.h |
| 1361 | include/grpc/impl/codegen/sync.h |
| 1362 | include/grpc/impl/codegen/sync_generic.h |
| 1363 | include/grpc/impl/codegen/sync_posix.h |
| 1364 | include/grpc/impl/codegen/sync_windows.h |
| 1365 | ) |
| 1366 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1367 | get_filename_component(_path ${_path} PATH) |
| 1368 | install(FILES ${_hdr} |
| 1369 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1370 | ) |
| 1371 | endforeach() |
| 1372 | |
| 1373 | |
| 1374 | if (gRPC_INSTALL) |
| 1375 | install(TARGETS grpc++_cronet EXPORT gRPCTargets |
| 1376 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1377 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1378 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1379 | ) |
| 1380 | endif() |
| 1381 | |
| 1382 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1383 | add_library(grpc++_reflection |
| 1384 | src/cpp/ext/proto_server_reflection.cc |
| 1385 | src/cpp/ext/proto_server_reflection_plugin.cc |
Yuchen Zeng | 169c985 | 2016-10-14 15:58:09 -0700 | [diff] [blame] | 1386 | src/proto/grpc/reflection/v1alpha/reflection.proto |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1387 | ) |
| 1388 | |
| 1389 | target_include_directories(grpc++_reflection |
| 1390 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1391 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1392 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1393 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1394 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1395 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1396 | ) |
| 1397 | |
| 1398 | target_link_libraries(grpc++_reflection |
| 1399 | grpc++ |
| 1400 | ) |
| 1401 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1402 | foreach(_hdr |
| 1403 | include/grpc++/ext/proto_server_reflection_plugin.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1404 | ) |
| 1405 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1406 | get_filename_component(_path ${_path} PATH) |
| 1407 | install(FILES ${_hdr} |
| 1408 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1409 | ) |
| 1410 | endforeach() |
| 1411 | |
| 1412 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1413 | if (gRPC_INSTALL) |
| 1414 | install(TARGETS grpc++_reflection EXPORT gRPCTargets |
| 1415 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1416 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1417 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1418 | ) |
| 1419 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1420 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1421 | |
| 1422 | add_library(grpc++_unsecure |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 1423 | src/cpp/client/insecure_credentials.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1424 | src/cpp/common/insecure_create_auth_context.cc |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 1425 | src/cpp/server/insecure_server_credentials.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1426 | src/cpp/client/channel_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1427 | src/cpp/client/client_context.cc |
| 1428 | src/cpp/client/create_channel.cc |
| 1429 | src/cpp/client/create_channel_internal.cc |
| 1430 | src/cpp/client/create_channel_posix.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1431 | src/cpp/client/credentials_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1432 | src/cpp/client/generic_stub.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1433 | src/cpp/common/channel_arguments.cc |
Mark D. Roth | 4004ac2 | 2016-08-02 10:08:27 -0700 | [diff] [blame] | 1434 | src/cpp/common/channel_filter.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1435 | src/cpp/common/completion_queue_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1436 | src/cpp/common/core_codegen.cc |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 1437 | src/cpp/common/resource_quota_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1438 | src/cpp/common/rpc_method.cc |
Craig Tiller | ed91324 | 2016-11-04 16:31:30 -0700 | [diff] [blame] | 1439 | src/cpp/common/version_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1440 | src/cpp/server/async_generic_service.cc |
| 1441 | src/cpp/server/create_default_thread_pool.cc |
| 1442 | src/cpp/server/dynamic_thread_pool.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1443 | src/cpp/server/server_builder.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1444 | src/cpp/server/server_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1445 | src/cpp/server/server_context.cc |
| 1446 | src/cpp/server/server_credentials.cc |
| 1447 | src/cpp/server/server_posix.cc |
Sree Kuchibhotla | 8f7739b | 2016-10-13 15:12:55 -0700 | [diff] [blame] | 1448 | src/cpp/thread_manager/thread_manager.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1449 | src/cpp/util/byte_buffer_cc.cc |
| 1450 | src/cpp/util/slice_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1451 | src/cpp/util/status.cc |
| 1452 | src/cpp/util/string_ref.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 1453 | src/cpp/util/time_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1454 | src/cpp/codegen/codegen_init.cc |
| 1455 | ) |
| 1456 | |
| 1457 | target_include_directories(grpc++_unsecure |
| 1458 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1459 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1460 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1461 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1462 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1463 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1464 | ) |
| 1465 | |
| 1466 | target_link_libraries(grpc++_unsecure |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1467 | ${_gRPC_BASELIB_LIBRARIES} |
| 1468 | ${_gRPC_PROTOBUF_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1469 | gpr |
| 1470 | grpc_unsecure |
| 1471 | ) |
| 1472 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1473 | foreach(_hdr |
| 1474 | include/grpc++/alarm.h |
| 1475 | include/grpc++/channel.h |
| 1476 | include/grpc++/client_context.h |
| 1477 | include/grpc++/completion_queue.h |
| 1478 | include/grpc++/create_channel.h |
| 1479 | include/grpc++/create_channel_posix.h |
| 1480 | include/grpc++/generic/async_generic_service.h |
| 1481 | include/grpc++/generic/generic_stub.h |
| 1482 | include/grpc++/grpc++.h |
| 1483 | include/grpc++/impl/call.h |
| 1484 | include/grpc++/impl/client_unary_call.h |
| 1485 | include/grpc++/impl/codegen/core_codegen.h |
| 1486 | include/grpc++/impl/grpc_library.h |
| 1487 | include/grpc++/impl/method_handler_impl.h |
| 1488 | include/grpc++/impl/rpc_method.h |
| 1489 | include/grpc++/impl/rpc_service_method.h |
| 1490 | include/grpc++/impl/serialization_traits.h |
| 1491 | include/grpc++/impl/server_builder_option.h |
| 1492 | include/grpc++/impl/server_builder_plugin.h |
| 1493 | include/grpc++/impl/server_initializer.h |
| 1494 | include/grpc++/impl/service_type.h |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 1495 | include/grpc++/resource_quota.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1496 | include/grpc++/security/auth_context.h |
| 1497 | include/grpc++/security/auth_metadata_processor.h |
| 1498 | include/grpc++/security/credentials.h |
| 1499 | include/grpc++/security/server_credentials.h |
| 1500 | include/grpc++/server.h |
| 1501 | include/grpc++/server_builder.h |
| 1502 | include/grpc++/server_context.h |
| 1503 | include/grpc++/server_posix.h |
| 1504 | include/grpc++/support/async_stream.h |
| 1505 | include/grpc++/support/async_unary_call.h |
| 1506 | include/grpc++/support/byte_buffer.h |
| 1507 | include/grpc++/support/channel_arguments.h |
| 1508 | include/grpc++/support/config.h |
| 1509 | include/grpc++/support/slice.h |
| 1510 | include/grpc++/support/status.h |
| 1511 | include/grpc++/support/status_code_enum.h |
| 1512 | include/grpc++/support/string_ref.h |
| 1513 | include/grpc++/support/stub_options.h |
| 1514 | include/grpc++/support/sync_stream.h |
| 1515 | include/grpc++/support/time.h |
| 1516 | include/grpc++/impl/codegen/async_stream.h |
| 1517 | include/grpc++/impl/codegen/async_unary_call.h |
| 1518 | include/grpc++/impl/codegen/call.h |
| 1519 | include/grpc++/impl/codegen/call_hook.h |
| 1520 | include/grpc++/impl/codegen/channel_interface.h |
| 1521 | include/grpc++/impl/codegen/client_context.h |
| 1522 | include/grpc++/impl/codegen/client_unary_call.h |
| 1523 | include/grpc++/impl/codegen/completion_queue.h |
| 1524 | include/grpc++/impl/codegen/completion_queue_tag.h |
| 1525 | include/grpc++/impl/codegen/config.h |
| 1526 | include/grpc++/impl/codegen/core_codegen_interface.h |
| 1527 | include/grpc++/impl/codegen/create_auth_context.h |
| 1528 | include/grpc++/impl/codegen/grpc_library.h |
| 1529 | include/grpc++/impl/codegen/method_handler_impl.h |
| 1530 | include/grpc++/impl/codegen/rpc_method.h |
| 1531 | include/grpc++/impl/codegen/rpc_service_method.h |
| 1532 | include/grpc++/impl/codegen/security/auth_context.h |
| 1533 | include/grpc++/impl/codegen/serialization_traits.h |
| 1534 | include/grpc++/impl/codegen/server_context.h |
| 1535 | include/grpc++/impl/codegen/server_interface.h |
| 1536 | include/grpc++/impl/codegen/service_type.h |
| 1537 | include/grpc++/impl/codegen/status.h |
| 1538 | include/grpc++/impl/codegen/status_code_enum.h |
yang-g | d558149 | 2016-09-06 14:05:53 -0700 | [diff] [blame] | 1539 | include/grpc++/impl/codegen/status_helper.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1540 | include/grpc++/impl/codegen/string_ref.h |
| 1541 | include/grpc++/impl/codegen/stub_options.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1542 | include/grpc++/impl/codegen/sync_stream.h |
| 1543 | include/grpc++/impl/codegen/time.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 1544 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 1545 | include/grpc/impl/codegen/compression_types.h |
| 1546 | include/grpc/impl/codegen/connectivity_state.h |
| 1547 | include/grpc/impl/codegen/grpc_types.h |
| 1548 | include/grpc/impl/codegen/propagation_bits.h |
| 1549 | include/grpc/impl/codegen/status.h |
| 1550 | include/grpc/impl/codegen/atm.h |
| 1551 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 1552 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 1553 | include/grpc/impl/codegen/atm_windows.h |
| 1554 | include/grpc/impl/codegen/gpr_types.h |
| 1555 | include/grpc/impl/codegen/port_platform.h |
| 1556 | include/grpc/impl/codegen/slice.h |
| 1557 | include/grpc/impl/codegen/sync.h |
| 1558 | include/grpc/impl/codegen/sync_generic.h |
| 1559 | include/grpc/impl/codegen/sync_posix.h |
| 1560 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1561 | ) |
| 1562 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1563 | get_filename_component(_path ${_path} PATH) |
| 1564 | install(FILES ${_hdr} |
| 1565 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1566 | ) |
| 1567 | endforeach() |
| 1568 | |
| 1569 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1570 | if (gRPC_INSTALL) |
| 1571 | install(TARGETS grpc++_unsecure EXPORT gRPCTargets |
| 1572 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1573 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1574 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1575 | ) |
| 1576 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1577 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1578 | |
| 1579 | add_library(grpc_plugin_support |
| 1580 | src/compiler/cpp_generator.cc |
| 1581 | src/compiler/csharp_generator.cc |
| 1582 | src/compiler/node_generator.cc |
| 1583 | src/compiler/objective_c_generator.cc |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 1584 | src/compiler/php_generator.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1585 | src/compiler/python_generator.cc |
| 1586 | src/compiler/ruby_generator.cc |
| 1587 | ) |
| 1588 | |
| 1589 | target_include_directories(grpc_plugin_support |
| 1590 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1591 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1592 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1593 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1594 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1595 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1596 | ) |
| 1597 | |
| 1598 | target_link_libraries(grpc_plugin_support |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1599 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1600 | ) |
| 1601 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1602 | foreach(_hdr |
| 1603 | include/grpc++/impl/codegen/config_protobuf.h |
| 1604 | ) |
| 1605 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1606 | get_filename_component(_path ${_path} PATH) |
| 1607 | install(FILES ${_hdr} |
| 1608 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1609 | ) |
| 1610 | endforeach() |
| 1611 | |
| 1612 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1613 | if (gRPC_INSTALL) |
| 1614 | install(TARGETS grpc_plugin_support EXPORT gRPCTargets |
| 1615 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1616 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1617 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1618 | ) |
| 1619 | endif() |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1620 | |
| 1621 | |
| 1622 | add_library(grpc_csharp_ext |
| 1623 | src/csharp/ext/grpc_csharp_ext.c |
| 1624 | ) |
| 1625 | |
| 1626 | target_include_directories(grpc_csharp_ext |
| 1627 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1628 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1629 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1630 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1631 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1632 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1633 | ) |
| 1634 | |
| 1635 | target_link_libraries(grpc_csharp_ext |
| 1636 | grpc |
| 1637 | gpr |
| 1638 | ) |
| 1639 | |
| 1640 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1641 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1642 | if (gRPC_INSTALL) |
| 1643 | install(TARGETS grpc_csharp_ext EXPORT gRPCTargets |
| 1644 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1645 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1646 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1647 | ) |
| 1648 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1649 | |
| 1650 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1651 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 1652 | add_executable(gen_hpack_tables |
| 1653 | tools/codegen/core/gen_hpack_tables.c |
| 1654 | ) |
| 1655 | |
| 1656 | target_include_directories(gen_hpack_tables |
| 1657 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1658 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1659 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1660 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1661 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1662 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1663 | ) |
| 1664 | |
| 1665 | target_link_libraries(gen_hpack_tables |
| 1666 | gpr |
| 1667 | grpc |
| 1668 | ) |
| 1669 | |
| 1670 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1671 | if (gRPC_INSTALL) |
Nicolas "Pixel" Noble | 2069fbc | 2016-08-18 23:29:56 +0200 | [diff] [blame] | 1672 | install(TARGETS gen_hpack_tables EXPORT gRPCTargets |
| 1673 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1674 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1675 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1676 | ) |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1677 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1678 | |
| 1679 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 1680 | add_executable(gen_legal_metadata_characters |
| 1681 | tools/codegen/core/gen_legal_metadata_characters.c |
| 1682 | ) |
| 1683 | |
| 1684 | target_include_directories(gen_legal_metadata_characters |
| 1685 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1686 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1687 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1688 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1689 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1690 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1691 | ) |
| 1692 | |
| 1693 | |
| 1694 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1695 | if (gRPC_INSTALL) |
| 1696 | install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets |
| 1697 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1698 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1699 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1700 | ) |
| 1701 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1702 | |
| 1703 | |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 1704 | add_executable(gen_percent_encoding_tables |
| 1705 | tools/codegen/core/gen_percent_encoding_tables.c |
| 1706 | ) |
| 1707 | |
| 1708 | target_include_directories(gen_percent_encoding_tables |
| 1709 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1710 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1711 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1712 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1713 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1714 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1715 | ) |
| 1716 | |
| 1717 | |
| 1718 | |
Craig Tiller | 426dcde | 2016-09-07 15:43:10 -0700 | [diff] [blame] | 1719 | if (gRPC_INSTALL) |
| 1720 | install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets |
| 1721 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1722 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1723 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1724 | ) |
| 1725 | endif() |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 1726 | |
| 1727 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 1728 | add_executable(grpc_create_jwt |
| 1729 | test/core/security/create_jwt.c |
| 1730 | ) |
| 1731 | |
| 1732 | target_include_directories(grpc_create_jwt |
| 1733 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1734 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1735 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1736 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1737 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1738 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1739 | ) |
| 1740 | |
| 1741 | target_link_libraries(grpc_create_jwt |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1742 | ${_gRPC_SSL_LIBRARIES} |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 1743 | grpc |
| 1744 | gpr |
| 1745 | ) |
| 1746 | |
| 1747 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1748 | if (gRPC_INSTALL) |
| 1749 | install(TARGETS grpc_create_jwt EXPORT gRPCTargets |
| 1750 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1751 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1752 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1753 | ) |
| 1754 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1755 | |
| 1756 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 1757 | add_executable(grpc_print_google_default_creds_token |
| 1758 | test/core/security/print_google_default_creds_token.c |
| 1759 | ) |
| 1760 | |
| 1761 | target_include_directories(grpc_print_google_default_creds_token |
| 1762 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1763 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1764 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1765 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1766 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1767 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1768 | ) |
| 1769 | |
| 1770 | target_link_libraries(grpc_print_google_default_creds_token |
| 1771 | grpc |
| 1772 | gpr |
| 1773 | ) |
| 1774 | |
| 1775 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1776 | if (gRPC_INSTALL) |
| 1777 | install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets |
| 1778 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1779 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1780 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1781 | ) |
| 1782 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1783 | |
| 1784 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 1785 | add_executable(grpc_verify_jwt |
| 1786 | test/core/security/verify_jwt.c |
| 1787 | ) |
| 1788 | |
| 1789 | target_include_directories(grpc_verify_jwt |
| 1790 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1791 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1792 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1793 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1794 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1795 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1796 | ) |
| 1797 | |
| 1798 | target_link_libraries(grpc_verify_jwt |
| 1799 | grpc |
| 1800 | gpr |
| 1801 | ) |
| 1802 | |
| 1803 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1804 | if (gRPC_INSTALL) |
| 1805 | install(TARGETS grpc_verify_jwt EXPORT gRPCTargets |
| 1806 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1807 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1808 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1809 | ) |
| 1810 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1811 | |
| 1812 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1813 | add_executable(grpc_cpp_plugin |
| 1814 | src/compiler/cpp_plugin.cc |
| 1815 | ) |
| 1816 | |
| 1817 | target_include_directories(grpc_cpp_plugin |
| 1818 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1819 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1820 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1821 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1822 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1823 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1824 | ) |
| 1825 | |
| 1826 | target_link_libraries(grpc_cpp_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1827 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1828 | grpc_plugin_support |
| 1829 | ) |
| 1830 | |
| 1831 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1832 | if (gRPC_INSTALL) |
| 1833 | install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets |
| 1834 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1835 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1836 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1837 | ) |
| 1838 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1839 | |
| 1840 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1841 | add_executable(grpc_csharp_plugin |
| 1842 | src/compiler/csharp_plugin.cc |
| 1843 | ) |
| 1844 | |
| 1845 | target_include_directories(grpc_csharp_plugin |
| 1846 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1847 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1848 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1849 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1850 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1851 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1852 | ) |
| 1853 | |
| 1854 | target_link_libraries(grpc_csharp_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1855 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1856 | grpc_plugin_support |
| 1857 | ) |
| 1858 | |
| 1859 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1860 | if (gRPC_INSTALL) |
| 1861 | install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets |
| 1862 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1863 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1864 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1865 | ) |
| 1866 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1867 | |
| 1868 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1869 | add_executable(grpc_node_plugin |
| 1870 | src/compiler/node_plugin.cc |
| 1871 | ) |
| 1872 | |
| 1873 | target_include_directories(grpc_node_plugin |
| 1874 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1875 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1876 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1877 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1878 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1879 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1880 | ) |
| 1881 | |
| 1882 | target_link_libraries(grpc_node_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1883 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1884 | grpc_plugin_support |
| 1885 | ) |
| 1886 | |
| 1887 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1888 | if (gRPC_INSTALL) |
| 1889 | install(TARGETS grpc_node_plugin EXPORT gRPCTargets |
| 1890 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1891 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1892 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1893 | ) |
| 1894 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1895 | |
| 1896 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1897 | add_executable(grpc_objective_c_plugin |
| 1898 | src/compiler/objective_c_plugin.cc |
| 1899 | ) |
| 1900 | |
| 1901 | target_include_directories(grpc_objective_c_plugin |
| 1902 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1903 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1904 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1905 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1906 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1907 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1908 | ) |
| 1909 | |
| 1910 | target_link_libraries(grpc_objective_c_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1911 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1912 | grpc_plugin_support |
| 1913 | ) |
| 1914 | |
| 1915 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1916 | if (gRPC_INSTALL) |
| 1917 | install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets |
| 1918 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1919 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1920 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1921 | ) |
| 1922 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1923 | |
| 1924 | |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 1925 | add_executable(grpc_php_plugin |
| 1926 | src/compiler/php_plugin.cc |
| 1927 | ) |
| 1928 | |
| 1929 | target_include_directories(grpc_php_plugin |
| 1930 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1931 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1932 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1933 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1934 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1935 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1936 | ) |
| 1937 | |
| 1938 | target_link_libraries(grpc_php_plugin |
| 1939 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
| 1940 | grpc_plugin_support |
| 1941 | ) |
| 1942 | |
| 1943 | |
| 1944 | if (gRPC_INSTALL) |
| 1945 | install(TARGETS grpc_php_plugin EXPORT gRPCTargets |
| 1946 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1947 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1948 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1949 | ) |
| 1950 | endif() |
| 1951 | |
| 1952 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1953 | add_executable(grpc_python_plugin |
| 1954 | src/compiler/python_plugin.cc |
| 1955 | ) |
| 1956 | |
| 1957 | target_include_directories(grpc_python_plugin |
| 1958 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1959 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1960 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1961 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1962 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1963 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1964 | ) |
| 1965 | |
| 1966 | target_link_libraries(grpc_python_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1967 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1968 | grpc_plugin_support |
| 1969 | ) |
| 1970 | |
| 1971 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1972 | if (gRPC_INSTALL) |
| 1973 | install(TARGETS grpc_python_plugin EXPORT gRPCTargets |
| 1974 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1975 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1976 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1977 | ) |
| 1978 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1979 | |
| 1980 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1981 | add_executable(grpc_ruby_plugin |
| 1982 | src/compiler/ruby_plugin.cc |
| 1983 | ) |
| 1984 | |
| 1985 | target_include_directories(grpc_ruby_plugin |
| 1986 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1987 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1988 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1989 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1990 | PRIVATE ${ZLIB_ROOT_DIR} |
| 1991 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 1992 | ) |
| 1993 | |
| 1994 | target_link_libraries(grpc_ruby_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1995 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1996 | grpc_plugin_support |
| 1997 | ) |
| 1998 | |
| 1999 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 2000 | if (gRPC_INSTALL) |
| 2001 | install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets |
| 2002 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 2003 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 2004 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 2005 | ) |
| 2006 | endif() |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2007 | |
| 2008 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2009 | |
| 2010 | |
| 2011 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2012 | |
| 2013 | |
| 2014 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 2015 | if (gRPC_INSTALL) |
| 2016 | install(EXPORT gRPCTargets |
| 2017 | DESTINATION ${CMAKE_INSTALL_CMAKEDIR} |
| 2018 | NAMESPACE gRPC:: |
| 2019 | ) |
| 2020 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2021 | |
| 2022 | foreach(_config gRPCConfig gRPCConfigVersion) |
| 2023 | configure_file(tools/cmake/${_config}.cmake.in |
| 2024 | ${_config}.cmake @ONLY) |
| 2025 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake |
| 2026 | DESTINATION ${CMAKE_INSTALL_CMAKEDIR} |
| 2027 | ) |
| 2028 | endforeach() |