Skip to content

Commit

Permalink
Add a README.md file to show how non-bazel users how to build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-otiv committed Jan 2, 2025
1 parent f89d95d commit eb3d705
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/bazel_build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->

# Slint Bazel Build example

This shows how to build a trivial slint application in the bazel build system.

Requires you to have a bazel toolchain setup.

This example currently does NOT use the copy of slint in this repo; it pulls it in from crates.io.

It also pulls in a mostly hermetic rust toolchain, so expect the build to take considerably longer than the other examples the first time you build.

To run the example, run the following command from any subdirectory of this directory (examples/bazel_build):

```bash
bazel run //src:slint_bazel_example
```

0 comments on commit eb3d705

Please sign in to comment.