only build gtk resources if building gtk ui

This commit is contained in:
Alex Janka 2024-03-07 10:40:38 +11:00
parent 3534d986b8
commit 77e5632856

View file

@ -1,5 +1,8 @@
fn main() {
// actions
#[cfg(not(all(
target_os = "macos",
all(feature = "macos-ui", not(feature = "force-crossplatform-ui"))
)))]
glib_build_tools::compile_resources(
&["src/crossplatform/resources"],
"src/crossplatform/resources/resources.gresource.xml",