main_sources = files('advanced-exif.cc',
'advanced-exif.h',
-'backward.h',
+'archives.cc',
+'archives.h',
'bar.cc',
+'bar.h',
'bar-comment.cc',
'bar-comment.h',
'bar-exif.cc',
'bar-exif.h',
-'bar-gps.cc',
-'bar-gps.h',
-'bar.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-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',
'md5-util.cc',
'md5-util.h',
'menu.cc',
'view-dir-tree.cc',
'view-dir-tree.h',
'view-file.h',
-'whereami.cc',
-'whereami.h',
'window.cc',
-'window.h',
-'zonedetect.cc',
-'zonedetect.h')
+'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')
subdir('icons')
subdir('pan-view')
+subdir('third-party')
subdir('ui')
subdir('view-file')
project_sources += gq_marshal_pragma
-icon_pairs = [
-'icon_tabcomp', files('ui_tabcomp.png'),
-]
-
-ui_icons_h = custom_target('ui_icons', output : 'ui_icons.h',
- command : [gdk_pixbuf_csource, '--raw', '--extern', '--build-list', icon_pairs],
- capture : true)
-
-project_sources += ui_icons_h
-
-if conf_data.has('HAVE_LCMS')
+if conf_data.get('HAVE_LCMS', 0) == 1
xxd_sh = find_program('generate-ClayRGB1998-icc-h.sh', dirs : join_paths(meson.project_source_root(), 'scripts'))
ClayRGB1998_icc_h = custom_target('ClayRGB1998',
libopenjp2_dep,
libraw_dep,
libunwind_dep,
+libwebp_dep,
lua_dep,
poppler_glib_dep,
thread_dep,