mirror of
https://github.com/zerotier/DesktopUI.git
synced 2026-05-22 16:26:46 -07:00
ba4918866f
libappindicator is practically unmaintained by canonical and a general transition towards the community maintained libaytana-appindicator has been going on for a while now (in ubuntu derivatives, debian : https://bugs.launchpad.net/ubuntu/+source/libayatana-appindicator/+bug/1915695 This commit switches the linux build to using the community provided `libaytana-appindicator3` and has been tested on: ubuntu, pop-os and debian.
20 lines
708 B
Rust
20 lines
708 B
Rust
#[allow(unused_assignments)]
|
|
#[allow(unused_mut)]
|
|
fn main() {
|
|
let d = env!("CARGO_MANIFEST_DIR");
|
|
println!("cargo:rustc-link-search=native={}/tray", d);
|
|
println!(
|
|
"cargo:rustc-link-search=native={}/libui-ng/build/meson-out",
|
|
d
|
|
);
|
|
println!("cargo:rustc-link-lib=static=zt_desktop_tray");
|
|
println!("cargo:rustc-link-lib=static=ui");
|
|
#[cfg(target_os = "linux")] {
|
|
println!("cargo:rustc-link-lib=dylib=gtk-3");
|
|
println!("cargo:rustc-link-lib=dylib=gdk-3");
|
|
println!("cargo:rustc-link-lib=dylib=gobject-2.0");
|
|
println!("cargo:rustc-link-lib=dylib=glib-2.0");
|
|
println!("cargo:rustc-link-lib=dylib=ayatana-appindicator3");
|
|
}
|
|
}
|