Hi all,
What's the recommended way in Introjucer to export two different targets with different Juce module settings?
Specifically: I have a program that I want to build as a GUI application or as a command-line tool. In the GUI case, I need OpenGL and the Juce GUI modules. In the command-line case, I don't want dependencies on any of those things so it can compile straightforwardly even without X11. I am fine for this decision to be made at compile time, I don't need a single executable that does both.
In my code, I set an #ifdef which disables the GUI and enables command-line input. This is fine and I can build both ways. However, Introjucer does not appear to let me choose different module settings for different exporters. Creating two .jucer files in the same directory creates conflicts.
What's the best, most maintainable solution? Is there a way to do this within one Introjucer project, or should I maintain two separate directories and two Introjucer projects? (Apologies if this has been answered elsewhere, couldn't find a good answer in previous posts.)
Thanks, Andrew