Skip to content

Commit

Permalink
fix: set dbus to vendored for aarch64 (#118)
Browse files Browse the repository at this point in the history
* chore: set dbus as vendored for future arm64 builds

Signed-off-by: Martichou <m@rtin.fyi>

* chore: arm64 cross pre-build

Signed-off-by: Martichou <m@rtin.fyi>

---------

Signed-off-by: Martichou <m@rtin.fyi>
  • Loading branch information
Martichou committed Jul 7, 2024
1 parent b1609a5 commit 5151f99
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/legacy/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions core_lib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions core_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ path = "src/bin.rs"
[target.'cfg(target_os = "linux")'.dependencies]
bluer = { version = "0.17", features = ["full"], optional = true }

[target.'cfg(all(target_arch = "aarch64", target_os = "linux"))'.dependencies]
dbus = { version = "0.9", features = ["vendored"] }

[dependencies]
anyhow = "1.0"
arboard = "3.3"
Expand Down
4 changes: 4 additions & 0 deletions core_lib/Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.aarch64-unknown-linux-gnu]
pre-build = [
"apt update && apt install -y libprotobuf-dev protobuf-compiler",
]

0 comments on commit 5151f99

Please # to comment.