#[cfg(target_os = "macos")]
mod macos_build;
fn main() {
#[cfg(target_os = "linux")]
{
println!("cargo:rerun-if-changed=native/webkit.c");
let webkit = pkg_config::Config::new()
.atleast_version("2.40")
.probe("webkit2gtk-4.1")
.expect("WebKitGTK 4.1 development headers");
cc::Build::new()
.file("native/webkit.c")
.includes(webkit.include_paths)
.compile("gent_webkit");
}
println!("cargo:rerun-if-env-changed=GENT_DESKTOP_BUILD_REVISION");
#[cfg(target_os = "macos")]
macos_build::build();
let manifest = tauri_build::AppManifest::new().commands(&["gent_bridge", "gent_board"]);
tauri_build::try_build(tauri_build::Attributes::new().app_manifest(manifest))
.expect("could not prepare Gent Desktop");
}