Skip to content

Commit

Permalink
Manifest LibRaw support and library version
Browse files Browse the repository at this point in the history
  • Loading branch information
victoryforce committed Sep 13, 2024
1 parent 02a5e6b commit 4050087
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/common/darktable.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
#include <libheif/heif.h>
#endif

#ifdef HAVE_LIBRAW
#include <libraw/libraw_version.h>
#endif

#include "dbus.h"

#if defined(__SUNOS__)
Expand Down Expand Up @@ -755,6 +759,10 @@ void dt_start_backtumbs_crawler(void)

static char *_get_version_string(void)
{
#ifdef HAVE_LIBRAW
const char *libraw_version = LIBRAW_VERSION_STR "\n";
#endif

#ifdef USE_LUA
const char *lua_api_version = strcmp(LUA_API_VERSION_SUFFIX, "") ?
STR(LUA_API_VERSION_MAJOR) "."
Expand All @@ -768,7 +776,7 @@ static char *_get_version_string(void)
char *version = g_strdup_printf("darktable %s\nCopyright (C) 2012-%s Johannes Hanika and other contributors.\n\n"
"Compile options:\n"
" Bit depth -> %zu bit\n"
"%s%s%s\n"
"%s%s%s%s%s\n"
"See %s for detailed documentation.\n"
"See %s to report bugs.\n",
darktable_package_version,
Expand Down Expand Up @@ -853,6 +861,12 @@ char *version = g_strdup_printf("darktable %s\nCopyright (C) 2012-%s Johannes Ha
" libjxl -> DISABLED\n"
#endif

#ifdef HAVE_LIBRAW
" LibRaw -> ENABLED - Version ", libraw_version,
#else
" LibRaw -> DISABLED", "\n",
#endif

#ifdef HAVE_OPENJPEG
" OpenJPEG -> ENABLED\n"
#else
Expand Down

0 comments on commit 4050087

Please sign in to comment.