项目
在 GitHub 查看
bazelbuild/examples
关于
Bazel 示例
开发工具实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Bazel examples and tutorials
A collection of examples of how to use the Bazel build system.
Introductory tutorials
Some tutorials under https://bazel.build/start point to code in this repository:
- C++ basics
Working examples for the C++ Bazel Tutorial - Java basics
Working examples for the Java Bazel Tutorial - Using query
Working examples for The Query quickstart
Note that tutorials for other languages may be found under other repositories:
- iOS tutorial
- Go tutorial along with sources
Example cookbook
General
Android
- Using Android Jetpack Compose
- Using Firebase Cloud Messaging
- Using the NDK
- Using Roboelectric tests and Kotlin
Java
Rust
Frontend
Rule writing
- Accessing attributes of a rule
- A rule with both explict and implicit outputs
- Creating a simple
*_testrule - Rules that change the build flags
- Rules with implicit dependencies
- Using a macro wrapper to compute an output file name
- Using aspects
- Using ctx.actions.expand_template
- Using ctx.actions.run_shell to wrap simple commands
- Using ctx.actions.run to run a tool
- Using ctx.actions.write to create a file at analysis time
- Using depsets
- Using "Make" variables in your rules
- Using mandatory providers to ensure your dependencies are of the right type
- Using runfiles
[Macro writing]
探索相关项目
加载中…