Skip to content

Add Lensfun version to compile options display #19000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/common/darktable.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
#include <limits.h>

#include <exiv2/exv_conf.h> // for EXV_PACKAGE_VERSION
#include <lensfun.h> // for lensfun library version macros

#ifdef HAVE_GRAPHICSMAGICK
#include <magick/api.h>
Expand Down Expand Up @@ -726,6 +727,8 @@ static char *_get_version_string(void)
{
const char *exiv2_version = EXV_PACKAGE_VERSION "\n";

const char *liblensfun_version = g_strdup_printf("%d.%d.%d\n", LF_VERSION_MAJOR, LF_VERSION_MINOR, LF_VERSION_MICRO);

#ifdef HAVE_LIBRAW
const char *libraw_version = LIBRAW_VERSION_STR "\n";
#endif
Expand All @@ -746,14 +749,15 @@ char *version = g_strdup_printf(
"Copyright (C) 2012-%s Johannes Hanika and other contributors.\n\n"
"Compile options:\n"
" Bit depth -> %zu bit\n"
"%s%s%s%s%s%s%s\n"
"%s%s%s%s%s%s%s%s%s\n"
"See %s for detailed documentation.\n"
"See %s to report bugs.\n",
darktable_package_version,
darktable_last_commit_year,
CHAR_BIT * sizeof(void *),

" Exiv2 -> ", exiv2_version,
" Lensfun -> ", liblensfun_version,
#ifdef _DEBUG
" Debug -> ENABLED\n"
#else
Expand Down
Loading