1 # This file is a part of Geeqie project (https://www.geeqie.org/).
2 # Copyright (C) 2008 - 2022 The Geeqie Team
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 main_sources = files('advanced-exif.cc',
38 'cellrenderericon.cc',
80 'image-load-collection.cc',
81 'image-load-collection.h',
84 'image-load-external.cc',
85 'image-load-external.h',
88 'image-load-libraw.cc',
89 'image-load-libraw.h',
94 'image-load-zxscr.cc',
103 'keymap-template.cc',
131 'pixbuf-renderer.cc',
198 if conf_data.get('HAVE_DJVU', 0) == 1
199 main_sources += files(
200 'image-load-djvu.cc',
205 if conf_data.get('HAVE_EXIV2', 0) == 1
206 main_sources += files(
210 main_sources += files(
226 if conf_data.get('HAVE_FFMPEGTHUMBNAILER', 0) == 1
227 main_sources += files(
228 'image-load-ffmpegthumbnailer.cc',
229 'image-load-ffmpegthumbnailer.h',
233 if conf_data.get('HAVE_HEIF', 0) == 1
234 main_sources += files(
235 'image-load-heif.cc',
240 if conf_data.get('HAVE_J2K', 0) == 1
241 main_sources += files(
247 if conf_data.get('HAVE_JPEG', 0) == 1
248 main_sources += files(
249 'image-load-jpeg.cc',
253 if conf_data.get('HAVE_RAW', 0) == 0
254 main_sources += files(
261 if conf_data.get('HAVE_JPEGXL', 0) == 1
262 main_sources += files(
263 'image-load-jpegxl.cc',
264 'image-load-jpegxl.h',
268 if conf_data.get('HAVE_LIBCHAMPLAIN', 0) == 1 and conf_data.get('HAVE_LIBCHAMPLAIN_GTK', 0) == 1
269 main_sources += files(
275 if conf_data.get('HAVE_LUA', 0) == 1
276 main_sources += files(
282 if conf_data.get('HAVE_PDF', 0) == 1
283 main_sources += files(
289 if conf_data.get('HAVE_TIFF', 0) == 1
290 main_sources += files(
291 'image-load-tiff.cc',
296 if conf_data.get('HAVE_WEBP', 0) == 1
297 main_sources += files(
298 'image-load-webp.cc',
303 project_sources += main_sources
308 subdir('third-party')
312 gq_marshal = gnome.genmarshal('gq-marshal', prefix : 'gq_marshal', sources : 'gq-marshal.list')
314 project_sources += gq_marshal[1]
316 gq_marshal_pragma_sh = find_program('gq-marshal-pragma.sh', dirs : scriptsdir)
318 gq_marshal_pragma = custom_target('gq-marshal-pragma',
319 input : gq_marshal[0],
320 output : 'gq-marshal-pragma.c',
321 command : [gq_marshal_pragma_sh, '@INPUT@', '@OUTPUT@'])
323 project_sources += gq_marshal_pragma
325 if conf_data.get('HAVE_LCMS', 0) == 1
326 xxd_sh = find_program('generate-ClayRGB1998-icc-h.sh', dirs : join_paths(meson.project_source_root(), 'scripts'))
328 ClayRGB1998_icc_h = custom_target('ClayRGB1998',
329 input: 'ClayRGB1998.icc',
330 output : 'ClayRGB1998_icc.h',
331 command : [xxd_sh, '@INPUT@', '@OUTPUT@'])
333 project_sources += ClayRGB1998_icc_h
336 geeqie_exe = executable('geeqie', project_sources,
351 libffmpegthumbnailer_dep,
364 include_directories : [configuration_inc], install : true)