Make it possible to build both non-GUI/GUI at the same time
Publié : dim. juin 25, 2017 1:45 pm
Hi, at the moment the enable-GUI (default) build will build an icas that is linked against X libraries. This is because it includes:
which pulls in graphics libraries such as FLTK.
The include should go in the other direction - xcas should include a icas.h, or something like this. Then, it would be possible to build icas without linking against graphics libraries, and at the same time build a graphics-enabled xcas, without having to run ./configure twice and compile two separate copies of libgiac.
This makes things easier for distros packagers like Debian and Gentoo, and nicer for users. We can build a non-GUI icas and a GUI xcas without messing with trying to run ./configure twice, and users have the option to not install any graphics libraries if all they need is the console version.
Code : Tout sélectionner
#include "Xcas1.h"
The include should go in the other direction - xcas should include a icas.h, or something like this. Then, it would be possible to build icas without linking against graphics libraries, and at the same time build a graphics-enabled xcas, without having to run ./configure twice and compile two separate copies of libgiac.
This makes things easier for distros packagers like Debian and Gentoo, and nicer for users. We can build a non-GUI icas and a GUI xcas without messing with trying to run ./configure twice, and users have the option to not install any graphics libraries if all they need is the console version.