summaryrefslogtreecommitdiff
path: root/src/version.cc
AgeCommit message (Collapse)Author
2024-12-10Fix FLTK version for old releasesRodrigo Arias Mallo
The returned value from Fl::version() is a floating point number like 1.0303, not 10303, so we correct it to follow Fl::api_version().
2024-12-09Add git commit to the reported version with -vRodrigo Arias Mallo
When git is available, records the git commit in the dillo binary, so dillo -v reports the version and the commit. Otherwise only the release version is reported (as we do now). The commit is *always* recomputed when "make" is called. This allows switching branches, doing a dirty rebuild and still get the correct commit with "dillo -v". Using AC_INIT() doesn't update the commit when the source is already configured. Fixes: https://github.com/dillo-browser/dillo/issues/288
2024-12-08Fix version retrieval for FLTK 1.3.3 and olderRodrigo Arias Mallo
The Fl:api_version() method is not available on FLTK 1.3.3 and older, it needs to use Fl::version() instead.
2024-11-24Report if WebP is enabled and the versionRodrigo Arias Mallo
2024-11-24Print version of libraries and featuresRodrigo Arias Mallo
When reporting the version of Dillo with -v, print also the version of the libraries it is currently using, as well as the features that were enabled at build time. Notice the versions are reported by reading them at runtime, so we can detect the version loaded at run time, regardless of which version was used at link time. All features are always printed, but prefixes with + if enabled or - if disabled. This allows checking if the feature was disabled at configure time or if it is missing in that version of Dillo.