Back to Ftxui

Installation Bazel

doc/installation_bazel.md

6.1.9812 B
Original Source

@page installation_bazel Bazel

FTXUI can be integrated into your project using Bazel with Bzlmod (Bazel modules).

The library is registered in the Bazel Central Registry

MODULE.bazel

starlark
bazel_dep(name = "ftxui", version = "6.1.9")

BUILD.bazel

starlark
cc_binary(
    name = "main",
    srcs = ["main.cpp"],
    deps = [
        "@ftxui//:component",
        "@ftxui//:dom",
        "@ftxui//:screen",
    ],
)

Starter Project

You can use the official Bazel starter project for a minimal working setup:

<div class="section_buttons">
Previous
Getting Started
</div>