Commit 2ab32129 authored by Julian Sparber's avatar Julian Sparber

docs: fix build instructions

parent ebac978b
......@@ -11,14 +11,9 @@ libhandy = { git = "https://gitlab.gnome.org/World/Rust/libhandy-rs" }
## Build
We use [gir](https://github.com/gtk-rs/gir) to generate rust libhandy bindings. The bindings are split in two parts, sys and api.
```shell
git clone https://gitlab.gnome.org/World/Rust/libhandy-rs.git
git clone https://github.com/gtk-rs/gir.git
cd gir
git clone https://github.com/gtk-rs/gir-files
cp ../libhandy-rs/Handy-0.0.gir gir-files
cargo run --release -- -c ../libhandy-rs/handy-sys/gir-libhandy.toml -d gir-files -m sys -o ./output/libhandy-sys
cargo run --release -- -c ../libhandy-rs/handy/Gir.toml -d gir-files -o ./output/libhandy
# The generated files are in ./output
git clone --recurse https://gitlab.gnome.org/World/Rust/libhandy-rs.git
cd libhandy-rs/gir
cp ../Handy-0.0.gir ../gir-files
cargo run --release -- -c ../libhandy-sys/gir-libhandy.toml -d ../gir-files -m sys -o ../libhandy-sys
cargo run --release -- -c ../libhandy/Gir.toml -d ../gir-files -o ../libhandy
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment