![]() ![]() gRPC’s cmake support provides the option to install gRPC either system-wide (not recommended) or under a directory prefix in a way that you can later easily use it with the find_package(gRPC CONFIG REQUIRED) command. In practice that means you‘ll need to install gRPC using cmake first. Target_link_libraries ( my_exe gRPC :: grpc ++)įind_package can only find software that has already been installed on your system. The canonical way to discover dependencies in CMake is the find_package command. To build gRPC C++ from source, follow the BUILDING guide. cmake has good support for crosscompiling and can be used for targeting the Android platform. It supports building on Linux, MacOS and Windows (official support) but also has a good chance of working on other platforms (no promises!). Use the http_archive bazel rule to include gRPC sourceĬmake is your best option if you cannot use bazel. ![]() determine commit SHA for the grpc release you want to use.Bazel provides fast builds and it easily handles dependencies that support bazel. Unmaintained code for these platforms may be deleted.īazel is the primary build system used by the core gRPC development team. Breakages on these platforms may go unnoticed, and the community is responsible for all maintenance. We will make our best effort to support them, and we welcome patches for such platforms, but we might need to declare bankruptcy on some issues.Ĭommunity Supported: These platforms are supported by contributions from the open source community, there is no official support for them. We test our code on these platform and have automated continuous integration tests for them.īest Effort: We do not have continous integration tests for these, but we are fairly confident that gRPC C++ would work on them. We follow the OSS Foundational C++ Support Policy to choose platforms to support. Officially Supported: These platforms are officially supported. Therefore, gRPC supports several major build systems, which should satisfy most users. In the C++ world, there's no universally accepted standard for managing project dependencies. This section describes how to add gRPC as a dependency to your C++ project. This directory contains the C++ implementation of gRPC. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |