在IDE Clion中阅读Envoy源码

Ubuntu

  1. 安装最新版本的 Bazel.

  1. 安装如下依赖 libtool, cmake, ninja, realpath and curl libraries separately.
sudo apt-get install \
   libtool \
   cmake \
   clang-format-7 \
   automake \
   make \
   ninja-build \
   curl \
   unzip \
   virtualenv
  1. 下载bazel-cmakelists
    执行如下命令生成CMakeLists.txt
    ./bazel-cmakelists --targets //source/exe/...

  2. 使用Clion打开envoy项目文件夹

Mac环境配置与Ubuntu类似

需要安装如下依赖

brew install coreutils wget cmake libtool go bazel automake ninja llvm@7

参考: