Add documentation about Bazel

This commit is contained in:
ArthurSonzogni
2025-05-08 12:29:54 +02:00
parent 5cfed50702
commit e0622f0df8
2 changed files with 84 additions and 15 deletions

View File

@@ -103,6 +103,35 @@ make
./main
```
### Using Bazel
See [ftxui module](https://registry.bazel.build/modules/ftxui) from the Bazel
Central Registry.
See also this [starter](https://github.com/ArthurSonzogni/ftxui-bazel) project.
**Module.bazel**
```starlark
bazel_dep(
name = "ftxui",
version = "6.1.9",
)
```
**BUILD.bazel**
```starlark
cc_binary(
name = "main",
srcs = ["main.cpp"],
deps = [
# Choose one of the following:
"@ftxui//:dom",
"@ftxui//:screen",
"@ftxui//:component",
],
)
```
# List of modules. {#modules}
The project is comprised of 3 modules: