From 36855a1a1767f4a777bad580d5a76fec1be5d9d1 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Mon, 15 Apr 2024 10:14:48 +0200 Subject: [PATCH] pub glib-build-tools behind gtk feature flag --- Cargo.toml | 4 ++-- build.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f09c21c1..d6bf0190 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,7 @@ windows = { version = "0.54.0", features = [ ] } [build-dependencies] -glib-build-tools = "0.19.0" +glib-build-tools = { version = "0.19.0", optional = true } [features] default = ["wayland", "x11", "xdg_desktop_portal", "libei", "gtk"] @@ -70,4 +70,4 @@ wayland = ["dep:wayland-client", "dep:wayland-protocols", "dep:wayland-protocols x11 = ["dep:x11"] xdg_desktop_portal = ["dep:ashpd"] libei = ["dep:reis", "dep:ashpd"] -gtk = ["dep:gtk", "dep:adw", "dep:async-channel"] +gtk = ["dep:gtk", "dep:adw", "dep:async-channel", "dep:glib-build-tools"] diff --git a/build.rs b/build.rs index bf1a701a..e3a7e577 100644 --- a/build.rs +++ b/build.rs @@ -1,5 +1,6 @@ fn main() { // composite_templates + #[cfg(feature = "gtk")] glib_build_tools::compile_resources( &["resources"], "resources/resources.gresource.xml",