Skip to content

Commit

Permalink
pub glib-build-tools behind gtk feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Apr 15, 2024
1 parent e537cdb commit 36855a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ 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"]
wayland = ["dep:wayland-client", "dep:wayland-protocols", "dep:wayland-protocols-wlr", "dep:wayland-protocols-misc" ]
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"]
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
fn main() {
// composite_templates
#[cfg(feature = "gtk")]
glib_build_tools::compile_resources(
&["resources"],
"resources/resources.gresource.xml",
Expand Down

0 comments on commit 36855a1

Please sign in to comment.