文章目录
Bazel
什么是bazel
官方给出的介绍是
Build and test software of any size, quickly and reliably
一个快速可靠地构建和测试各种规模的软件.
bazel四个特点:
- Speed up your builds and tests
- one tool,multiple languages
- scalaable
- extensible to your needs
如何安装bazel
bazel的安装教程可以参考链接:https://docs.bazel.build/versions/master/install-os-x.html
install Xcode command line tools
sudo xcodebuild -license accept
download the bazel installer
这里我使用的版本是2.0.0
wget https://github.com/bazelbuild/bazel/releases/download/2.0.0/bazel-2.0.0-installer-darwin-x86_64.sh
run the installer
chmod +x bazel-2.0.0-installer-darwin-x86_64.sh
./bazel-2.0.0-installer-darwin-x86_64.sh --user
setup environment
export PATH="$PATH:$HOME/bin"
按上述步骤安装后可以看到bazel的版本
$ bazel version
Build label: 2.0.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 19 12:33:3