docs: fix build instructions
This commit is contained in:
parent
cfde6c9337
commit
a63aa5ef37
|
@ -11,12 +11,14 @@ 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 ../Handy-0.0.gir gir-files
|
||||
cargo run --release -- -c ../handy-sys/gir-libhandy.toml -d gir-files -m sys -o ../handy-sys
|
||||
cargo run --release -- -c ../handy/Gir.toml -d gir-files -o ../handy
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue