exo is one of the very few remaining dependencies on gtk2 on my system. From what I can see, only libexo-1 actually depends on gtk2 and there's nothing on my machine depending on libexo-1. For that reason it would be great to optionally disable building libexo-1 and get rid of the gtk2 dependency
Created attachment 8294 wip Not sure if we should bump libexo_version_api to 2.
I successfully built with your patch using ./autogen.sh && ./configure --disable-gtk2 --enable-maintainer-mode && make and only get libexo-2 Haven't actually installed it as I'm not sure how to best do that without making my system package manager angry, but I can't see why it would fail if it compiled ok
Andre Miranda referenced this bugreport in commit 2097708c789a11b98e40a4aa49adc803613d57c0 Allow libexo-1 to be disabled (bug #15138) https://git.xfce.org/xfce/exo/commit?id=2097708c789a11b98e40a4aa49adc803613d57c0
Thanks for the patch Andre! I made a small adjustment to make it build correctly when GTK2 is enabled, GTK_CFLAGS -> GTK2_CFLAGS GTK_LIBS -> GTK2_LIBS I don't think the API version needs to be bumped for this change.