skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.19k stars 62 forks source link

Enabling TUI build disables GUI build; should allow building both #533

Open salfter opened 2 years ago

salfter commented 2 years ago

Someone might want to have both versions available for different circumstances, but the build system only allows one or the other. Providing two separate ebuilds (I'm on Gentoo) didn't work either, as they try to install the same libraries, which causes conflicts.

Perhaps an additional cmake variable, ENABLE_GUI, that defaults to true and can be set to false if a TUI-only build is desired would do the trick.

skyjake commented 2 years ago

I agree the current setup is not perfect. clagrange remains a bit experimental and there may still be substantial changes. Ultimately, it should be possible to expand the main CMakeLists to allow both GUI and TUI builds in parallel, although it will require adding SEALCurses as another external library/submodule under lib.