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