* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if HAVE_LIBCHAMPLAIN
-#if HAVE_LIBCHAMPLAIN_GTK
-
#include "bar-gps.h"
#include <cstring>
#include <glib-object.h>
#include <pango/pango.h>
+#include <config.h>
+
#include "bar.h"
#include "compat.h"
#include "debug.h"
g_list_free(pgd->geocode_list);
}
- static void bar_pane_gps_dnd_receive(GtkWidget *pane, GdkDragContext *,
+static void bar_pane_gps_dnd_receive(GtkWidget *pane, GdkDragContext *,
gint x, gint y,
GtkSelectionData *selection_data, guint info,
guint, gpointer)
bar_update_expander(pane);
}
-#endif // HAVE_LIBCHAMPLAIN_GTK
-#endif // HAVE_LIBCHAMPLAIN
-
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
" </layout>"
"</gq>";
-#if HAVE_LIBCHAMPLAIN
-#if HAVE_LIBCHAMPLAIN_GTK
+#if HAVE_LIBCHAMPLAIN && HAVE_LIBCHAMPLAIN_GTK
static const gchar default_config_gps[] =
"<gq>"
" <layout id = '_current_'>"
" </layout>"
"</gq>";
#endif
-#endif
static const KnownPanes known_panes[] = {
/* default sidebar */
{PANE_EXIF, "file_info", N_("File info"), default_config_file_info},
{PANE_EXIF, "location", N_("Location and GPS"), default_config_location},
{PANE_EXIF, "copyright", N_("Copyright"), default_config_copyright},
-#if HAVE_LIBCHAMPLAIN
-#if HAVE_LIBCHAMPLAIN_GTK
+#if HAVE_LIBCHAMPLAIN && HAVE_LIBCHAMPLAIN_GTK
{PANE_GPS, "gps", N_("GPS Map"), default_config_gps},
-#endif
#endif
{PANE_UNDEF, nullptr, nullptr, nullptr}
};
* Add support for marker tag 0x0000
*/
-#include <config.h>
+#include "exif.h"
-#if !HAVE_EXIV2
-
-#include <cmath>
-#include <cstdio>
-#include <cstring>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
-#include <sys/types.h>
#include <unistd.h>
+#include <cstdio>
+#include <cstring>
+
#include <glib.h>
#include <glib/gprintf.h>
-#include "exif-int.h"
-#include "jpeg-parser.h"
-
#include "debug.h"
+#include "exif-int.h"
#include "format-raw.h"
#include "intl.h"
+#include "jpeg-parser.h"
+#include "typedefs.h"
#include "ui-fileops.h"
+struct FileData;
/*
*-----------------------------------------------------------------------------
void exif_init()
{
}
-#else
-using dummy_variable = int;
-#endif
-/* not HAVE_EXIV2 */
+
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef __EXIF_H
#define __EXIF_H
+#include <glib.h>
+
#include "typedefs.h"
struct ExifData;
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if HAVE_EXIV2
-
#include "exif.h"
#include <algorithm>
#include <utility>
#include <vector>
+#include <config.h>
+
#include <exiv2/exiv2.hpp>
#include <glib.h>
#ifdef ENABLE_NLS
delete[] static_cast<const Exiv2::byte*>(buf);
}
-#endif /* HAVE_EXIV2 */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if !HAVE_EXIV2
-
#include "format-canon.h"
-#include <cstdio>
#include <cstring>
-#include <unistd.h>
#include <glib.h>
return TRUE;
}
-#else
-using dummy_variable = int;
-#endif
-/* not HAVE_EXIV2 */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef __FORMAT_CANON_H
#define __FORMAT_CANON_H
+#include <glib.h>
#include "exif-int.h"
#define FORMAT_RAW_CANON { "crw", \
FORMAT_RAW_MATCH_MAGIC, 6, "HEAPCCDR", 8, \
- FORMAT_RAW_EXIF_NONE, NULL, \
+ FORMAT_RAW_EXIF_NONE, nullptr, \
"Canon crw", format_canon_raw_crw }, \
{ "cr2", \
FORMAT_RAW_MATCH_TIFF_MAKE, 0, "Canon", 5, \
- FORMAT_RAW_EXIF_TIFF, NULL, \
+ FORMAT_RAW_EXIF_TIFF, nullptr, \
"Canon cr2", format_canon_raw_cr2 }
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if !HAVE_EXIV2
-
#include "format-fuji.h"
-#include <cstdio>
#include <cstring>
-#include <unistd.h>
#include <glib.h>
return TRUE;
}
-#else
-using dummy_variable = int;
-#endif
-/* not HAVE_EXIV2 */
+
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef __FORMAT_FUJI_H
#define __FORMAT_FUJI_H
+#include <glib.h>
#include "exif-int.h"
#define FORMAT_RAW_FUJI { "raf", \
FORMAT_RAW_MATCH_MAGIC, 0, "FUJIFILM", 8, \
- FORMAT_RAW_EXIF_JPEG, NULL, \
+ FORMAT_RAW_EXIF_JPEG, nullptr, \
"Fuji raw", format_fuji_raw }
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if !HAVE_EXIV2
-
#include "format-nikon.h"
-#include <cstdio>
#include <cstring>
-#include <unistd.h>
#include <glib.h>
return TRUE;
}
-#else
-using dummy_variable = int;
-#endif
-/* not HAVE_EXIV2 */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef __FORMAT_NIKON_H
#define __FORMAT_NIKON_H
+#include <glib.h>
#include "exif-int.h"
#define FORMAT_RAW_NIKON { "nef", \
FORMAT_RAW_MATCH_TIFF_MAKE, 0, "NIKON CORPORATION", 17, \
- FORMAT_RAW_EXIF_TIFF, NULL, \
+ FORMAT_RAW_EXIF_TIFF, nullptr, \
"Nikon raw", format_nikon_raw }
/* If your format is basically just TIFF with an embedded jpeg,
*/
#define FORMAT_RAW_PENTAX { "pef", \
FORMAT_RAW_MATCH_TIFF_MAKE, 0, "PENTAX Corporation", 18, \
- FORMAT_RAW_EXIF_TIFF, NULL, \
+ FORMAT_RAW_EXIF_TIFF, nullptr, \
"Pentax raw", format_nikon_raw }
#define FORMAT_RAW_SAMSUNG { "pef", \
FORMAT_RAW_MATCH_TIFF_MAKE, 0, "SAMSUNG TECHWIN", 15, \
- FORMAT_RAW_EXIF_TIFF, NULL, \
+ FORMAT_RAW_EXIF_TIFF, nullptr, \
"Samsung raw", format_nikon_raw }
gboolean format_nikon_makernote(ExifData *exif, guchar *tiff, guint offset,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if !HAVE_EXIV2
-
#include "format-olympus.h"
-#include <cstdio>
#include <cstring>
-#include <unistd.h>
#include <glib.h>
return TRUE;
}
-#else
-using dummy_variable = int;
-#endif
-/* not HAVE_EXIV2 */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef __FORMAT_OLYMPUS_H
#define __FORMAT_OLYMPUS_H
+#include <glib.h>
#include "exif-int.h"
#define FORMAT_RAW_OLYMPUS { "orf", \
FORMAT_RAW_MATCH_MAGIC, 0, "IIR", 3, \
- FORMAT_RAW_EXIF_IFD_II, NULL, \
+ FORMAT_RAW_EXIF_IFD_II, nullptr, \
"Olympus raw", format_olympus_raw }
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if !HAVE_EXIV2
-
#include "format-raw.h"
-#include <cstdio>
-#include <cstring>
#include <sys/mman.h>
#include <sys/stat.h>
-#include <sys/types.h>
#include <unistd.h>
+#include <cstdio>
+#include <cstring>
+
#include <glib.h>
#include "debug.h"
+#include "exif.h"
#include "format-canon.h"
#include "format-fuji.h"
#include "format-nikon.h"
return FALSE;
}
#endif
-#else
-using dummy_variable = int;
-#endif
-/* not HAVE_EXIV2 */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef __FORMAT_RAW_H
#define __FORMAT_RAW_H
+#include <glib.h>
+
#include "exif-int.h"
#ifndef __GLUA_H
#define __GLUA_H
-#include <config.h>
-
-#if HAVE_LUA
-
#include <glib.h>
struct FileData;
gchar *lua_callvalue(FileData *fd, const gchar *file, const gchar *function);
-#endif
-#endif
+#endif /* __GLUA_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
/** This is a Will Not Fix */
#pragma GCC diagnostic ignored "-Wclobbered"
-#include <config.h>
-
-#if HAVE_JPEG && !HAVE_RAW
#include "image-load-cr3.h"
#include <cstring>
return std::make_unique<ImageLoaderCr3>();
}
-#endif // HAVE_JPEG && !HAVE_RAW
-
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_CR3_H
#define IMAGE_LOAD_CR3_H
-#include <config.h>
-
-#if HAVE_JPEG && !HAVE_RAW
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_cr3();
-#endif
-#endif // IMAGE_LOAD_CR3_H
+#endif /* IMAGE_LOAD_CR3_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
/*
- * Copyright (C) 20019 - The Geeqie Team
+ * Copyright (C) 2019 - The Geeqie Team
*
* Author: Colin Clark
*
#include "image-load-djvu.h"
-#include <config.h>
-
-#if HAVE_DJVU
-
#include <cairo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib-object.h>
return std::make_unique<ImageLoaderDJVU>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_DJVU_H
#define IMAGE_LOAD_DJVU_H
-#include <config.h>
-
-#if HAVE_DJVU
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_djvu();
-#endif
-#endif
+#endif /* IMAGE_LOAD_DJVU_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#include "image-load-ffmpegthumbnailer.h"
-#include <config.h>
-
-#if HAVE_FFMPEGTHUMBNAILER
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib-object.h>
#include <glib.h>
#include <libffmpegthumbnailer/imagetypes.h>
#include <libffmpegthumbnailer/videothumbnailerc.h> //TODO Use videothumbnailer.h?
+#include <config.h>
+
#include "debug.h"
#include "filedata.h"
#include "image-load.h"
return std::make_unique<ImageLoaderFT>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_FT_H
#define IMAGE_LOAD_FT_H
-#include <config.h>
-
-#if HAVE_FFMPEGTHUMBNAILER
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_ft();
-#endif
-#endif
+#endif /* IMAGE_LOAD_FT_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#include "image-load-heif.h"
-#include <config.h>
-
-#if HAVE_HEIF
#include <vector>
#include <gdk-pixbuf/gdk-pixbuf.h>
return std::make_unique<ImageLoaderHEIF>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_HEIF_H
#define IMAGE_LOAD_HEIF_H
-#include <config.h>
-
-#if HAVE_HEIF
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_heif();
-#endif
-#endif
+#endif /* IMAGE_LOAD_HEIF_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if HAVE_J2K
-
#include "image-load-j2k.h"
#include <cstdlib>
return std::make_unique<ImageLoaderJ2K>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_J2K_H
#define IMAGE_LOAD_J2K_H
-#include <config.h>
-
-#if HAVE_J2K
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_j2k();
-#endif
-#endif
+#endif /* IMAGE_LOAD_J2K_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
/** This is a Will Not Fix */
#pragma GCC diagnostic ignored "-Wclobbered"
-#include <config.h>
-
-#if HAVE_JPEG
-
#include "image-load-jpeg.h"
#include <csetjmp>
return std::make_unique<ImageLoaderJpeg>();
}
-#endif
-
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_JPEG_H
#define IMAGE_LOAD_JPEG_H
-#include <config.h>
-
-#if HAVE_JPEG
#include <memory>
#include <gdk-pixbuf/gdk-pixbuf.h>
};
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_jpeg();
-#endif
-#endif
+#endif /* IMAGE_LOAD_JPEG_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
*
*/
-#include <config.h>
-
-#if HAVE_JPEGXL
-
#include "image-load-jpegxl.h"
#include <cstdint>
return std::make_unique<ImageLoaderJPEGXL>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_JPEGXL_H
#define IMAGE_LOAD_JPEGXL_H
-#include <config.h>
-
-#if HAVE_JPEGXL
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_jpegxl();
-#endif
-#endif
+#endif /* IMAGE_LOAD_JPEGXL_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if HAVE_PDF
#include "image-load-pdf.h"
#include <cairo.h>
return std::make_unique<ImageLoaderPDF>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_PDF_H
#define IMAGE_LOAD_PDF_H
-#include <config.h>
-
-#if HAVE_PDF
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_pdf();
-#endif
-#endif
+#endif /* IMAGE_LOAD_PDF_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if HAVE_TIFF
-
#include "image-load-tiff.h"
#include <cstddef>
return std::make_unique<ImageLoaderTiff>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_TIFF_H
#define IMAGE_LOAD_TIFF_H
-#include <config.h>
-
-#if HAVE_TIFF
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_tiff();
-#endif
-#endif
+#endif /* IMAGE_LOAD_TIFF_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if HAVE_WEBP
#include "image-load-webp.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
return std::make_unique<ImageLoaderWEBP>();
}
-#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#ifndef IMAGE_LOAD_WEBP_H
#define IMAGE_LOAD_WEBP_H
-#include <config.h>
-
-#if HAVE_WEBP
#include <memory>
struct ImageLoaderBackend;
std::unique_ptr<ImageLoaderBackend> get_image_loader_backend_webp();
-#endif
-#endif
+#endif /* IMAGE_LOAD_WEBP_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
layout_util_sync_color(lw);
layout_image_refresh(lw);
}
-#else
-static void layout_color_menu_enable_cb()
-{
-}
-#endif
-#if HAVE_LCMS
static void layout_color_menu_use_image_cb(GtkToggleAction *action, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_util_sync_color(lw);
layout_image_refresh(lw);
}
-#else
-static void layout_color_menu_use_image_cb()
-{
-}
-#endif
-#if HAVE_LCMS
static void layout_color_menu_input_cb(GtkRadioAction *action, GtkRadioAction *, gpointer data)
{
auto lw = static_cast<LayoutWindow *>(data);
layout_image_refresh(lw);
}
#else
+static void layout_color_menu_enable_cb()
+{
+}
+
+static void layout_color_menu_use_image_cb()
+{
+}
+
static void layout_color_menu_input_cb()
{
}
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <config.h>
-
-#if HAVE_LUA
-
#define _XOPEN_SOURCE
#include "glua.h"
g_free(tmp);
return data;
}
-#else
-using dummy_variable = int;
-#endif
+
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
// PIXBUF_INLINE_ICON_ZOOMFILLHOR
// PIXBUF_INLINE_ICON_ZOOMFILLVERT
-#endif // _MAIN_DEFINES_H
+#endif /* _MAIN_DEFINES_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
'bar-comment.h',
'bar-exif.cc',
'bar-exif.h',
-'bar-gps.cc',
-'bar-gps.h',
'bar-histogram.cc',
'bar-histogram.h',
'bar-keywords.cc',
'cellrenderericon.cc',
'cellrenderericon.h',
'collect.cc',
+'collect.h',
'collect-dlg.cc',
'collect-dlg.h',
-'collect.h',
'collect-io.cc',
'collect-io.h',
'collect-table.cc',
'dupe.h',
'editors.cc',
'editors.h',
-'exif.cc',
'exif-common.cc',
'exif.h',
-'exif-int.h',
-'exiv2.cc',
'filecache.cc',
'filecache.h',
'filedata.cc',
'filedata.h',
'filefilter.cc',
'filefilter.h',
-'format-canon.cc',
-'format-canon.h',
-'format-fuji.cc',
-'format-fuji.h',
-'format-nikon.cc',
-'format-nikon.h',
-'format-olympus.cc',
-'format-olympus.h',
-'format-raw.cc',
-'format-raw.h',
'fullscreen.cc',
'fullscreen.h',
-'glua.h',
'histogram.cc',
'histogram.h',
'history-list.cc',
'image.cc',
'image.h',
'image-load.cc',
+'image-load.h',
'image-load-collection.cc',
'image-load-collection.h',
-'image-load-cr3.cc',
-'image-load-cr3.h',
'image-load-dds.cc',
'image-load-dds.h',
-'image-load-djvu.cc',
-'image-load-djvu.h',
'image-load-external.cc',
'image-load-external.h',
-'image-load-ffmpegthumbnailer.cc',
-'image-load-ffmpegthumbnailer.h',
'image-load-gdk.cc',
'image-load-gdk.h',
-'image-load.h',
-'image-load-heif.cc',
-'image-load-heif.h',
-'image-load-j2k.cc',
-'image-load-j2k.h',
-'image-load-jpeg.cc',
-'image-load-jpeg.h',
-'image-load-jpegxl.cc',
-'image-load-jpegxl.h',
'image-load-libraw.cc',
'image-load-libraw.h',
-'image-load-pdf.cc',
-'image-load-pdf.h',
'image-load-psd.cc',
'image-load-psd.h',
'image-load-svgz.cc',
'image-load-svgz.h',
-'image-load-tiff.cc',
-'image-load-tiff.h',
-'image-load-webp.cc',
-'image-load-webp.h',
'image-load-zxscr.cc',
'image-load-zxscr.h',
'image-overlay.cc',
'keymap-template.cc',
'keymap-template.h',
'layout.cc',
+'layout.h',
'layout-config.cc',
'layout-config.h',
-'layout.h',
'layout-image.cc',
'layout-image.h',
'layout-util.cc',
'layout-util.h',
'logwindow.cc',
'logwindow.h',
-'lua.cc',
'main.cc',
'main.h',
'main-defines.h',
'window.cc',
'window.h')
+if conf_data.get('HAVE_DJVU', 0) == 1
+ main_sources += files(
+ 'image-load-djvu.cc',
+ 'image-load-djvu.h',
+ )
+endif
+
+if conf_data.get('HAVE_EXIV2', 0) == 1
+ main_sources += files(
+ 'exiv2.cc',
+ )
+else
+ main_sources += files(
+ 'exif.cc',
+ 'exif-int.h',
+ 'format-canon.cc',
+ 'format-canon.h',
+ 'format-fuji.cc',
+ 'format-fuji.h',
+ 'format-nikon.cc',
+ 'format-nikon.h',
+ 'format-olympus.cc',
+ 'format-olympus.h',
+ 'format-raw.cc',
+ 'format-raw.h',
+ )
+endif
+
+if conf_data.get('HAVE_FFMPEGTHUMBNAILER', 0) == 1
+ main_sources += files(
+ 'image-load-ffmpegthumbnailer.cc',
+ 'image-load-ffmpegthumbnailer.h',
+ )
+endif
+
+if conf_data.get('HAVE_HEIF', 0) == 1
+ main_sources += files(
+ 'image-load-heif.cc',
+ 'image-load-heif.h',
+ )
+endif
+
+if conf_data.get('HAVE_J2K', 0) == 1
+ main_sources += files(
+ 'image-load-j2k.cc',
+ 'image-load-j2k.h',
+ )
+endif
+
+if conf_data.get('HAVE_JPEG', 0) == 1
+ main_sources += files(
+ 'image-load-jpeg.cc',
+ 'image-load-jpeg.h',
+ )
+
+ if conf_data.get('HAVE_RAW', 0) == 0
+ main_sources += files(
+ 'image-load-cr3.cc',
+ 'image-load-cr3.h',
+ )
+ endif
+endif
+
+if conf_data.get('HAVE_JPEGXL', 0) == 1
+ main_sources += files(
+ 'image-load-jpegxl.cc',
+ 'image-load-jpegxl.h',
+ )
+endif
+
+if conf_data.get('HAVE_LIBCHAMPLAIN', 0) == 1 and conf_data.get('HAVE_LIBCHAMPLAIN_GTK', 0) == 1
+ main_sources += files(
+ 'bar-gps.cc',
+ 'bar-gps.h',
+ )
+endif
+
+if conf_data.get('HAVE_LUA', 0) == 1
+ main_sources += files(
+ 'glua.h',
+ 'lua.cc',
+ )
+endif
+
+if conf_data.get('HAVE_PDF', 0) == 1
+ main_sources += files(
+ 'image-load-pdf.cc',
+ 'image-load-pdf.h',
+ )
+endif
+
+if conf_data.get('HAVE_TIFF', 0) == 1
+ main_sources += files(
+ 'image-load-tiff.cc',
+ 'image-load-tiff.h',
+ )
+endif
+
+if conf_data.get('HAVE_WEBP', 0) == 1
+ main_sources += files(
+ 'image-load-webp.cc',
+ 'image-load-webp.h',
+ )
+endif
+
project_sources += main_sources
subdir('authors')
}
options_parse_func_push(parser_data, options_parse_leaf, nullptr, nullptr);
}
-#if HAVE_LIBCHAMPLAIN
-#if HAVE_LIBCHAMPLAIN_GTK
+#if HAVE_LIBCHAMPLAIN && HAVE_LIBCHAMPLAIN_GTK
else if (g_ascii_strcasecmp(element_name, "pane_gps") == 0)
{
/* Use this flag to determine if --disable-clutter has been issued */
options_parse_func_push(parser_data, options_parse_leaf, nullptr, nullptr);
}
}
-#endif
#endif
else if (g_ascii_strcasecmp(element_name, "pane_exif") == 0)
{