799213bfc8773400ef3b3167b826f8534a6e0690
[geeqie.git] / src / meson.build
1 # This file is a part of Geeqie project (https://www.geeqie.org/).
2 # Copyright (C) 2008 - 2022 The Geeqie Team
3 #
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.
8 #
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.
13
14 main_sources = files('advanced-exif.cc',
15 'advanced-exif.h',
16 'archives.cc',
17 'archives.h',
18 'bar.cc',
19 'bar.h',
20 'bar-comment.cc',
21 'bar-comment.h',
22 'bar-exif.cc',
23 'bar-exif.h',
24 'bar-gps.cc',
25 'bar-gps.h',
26 'bar-histogram.cc',
27 'bar-histogram.h',
28 'bar-keywords.cc',
29 'bar-keywords.h',
30 'bar-rating.cc',
31 'bar-rating.h',
32 'bar-sort.cc',
33 'bar-sort.h',
34 'cache.cc',
35 'cache.h',
36 'cache-loader.cc',
37 'cache-loader.h',
38 'cache-maint.cc',
39 'cache-maint.h',
40 'cellrenderericon.cc',
41 'cellrenderericon.h',
42 'collect.cc',
43 'collect-dlg.cc',
44 'collect-dlg.h',
45 'collect.h',
46 'collect-io.cc',
47 'collect-io.h',
48 'collect-table.cc',
49 'collect-table.h',
50 'color-man.cc',
51 'color-man.h',
52 'compat.cc',
53 'compat.h',
54 'debug.cc',
55 'debug.h',
56 'desktop-file.cc',
57 'desktop-file.h',
58 'dnd.cc',
59 'dnd.h',
60 'dupe.cc',
61 'dupe.h',
62 'editors.cc',
63 'editors.h',
64 'exif.cc',
65 'exif-common.cc',
66 'exif.h',
67 'exif-int.h',
68 'exiv2.cc',
69 'filecache.cc',
70 'filecache.h',
71 'filedata.cc',
72 'filedata.h',
73 'filefilter.cc',
74 'filefilter.h',
75 'format-canon.cc',
76 'format-canon.h',
77 'format-fuji.cc',
78 'format-fuji.h',
79 'format-nikon.cc',
80 'format-nikon.h',
81 'format-olympus.cc',
82 'format-olympus.h',
83 'format-raw.cc',
84 'format-raw.h',
85 'fullscreen.cc',
86 'fullscreen.h',
87 'glua.h',
88 'histogram.cc',
89 'histogram.h',
90 'history-list.cc',
91 'history-list.h',
92 'image.cc',
93 'image.h',
94 'image-load.cc',
95 'image-load-collection.cc',
96 'image-load-collection.h',
97 'image-load-cr3.cc',
98 'image-load-cr3.h',
99 'image-load-dds.cc',
100 'image-load-dds.h',
101 'image-load-djvu.cc',
102 'image-load-djvu.h',
103 'image-load-external.cc',
104 'image-load-external.h',
105 'image-load-ffmpegthumbnailer.cc',
106 'image-load-ffmpegthumbnailer.h',
107 'image-load-gdk.cc',
108 'image-load-gdk.h',
109 'image-load.h',
110 'image-load-heif.cc',
111 'image-load-heif.h',
112 'image-load-j2k.cc',
113 'image-load-j2k.h',
114 'image-load-jpeg.cc',
115 'image-load-jpeg.h',
116 'image-load-jpegxl.cc',
117 'image-load-jpegxl.h',
118 'image-load-libraw.cc',
119 'image-load-libraw.h',
120 'image-load-pdf.cc',
121 'image-load-pdf.h',
122 'image-load-psd.cc',
123 'image-load-psd.h',
124 'image-load-svgz.cc',
125 'image-load-svgz.h',
126 'image-load-tiff.cc',
127 'image-load-tiff.h',
128 'image-load-webp.cc',
129 'image-load-webp.h',
130 'image-load-zxscr.cc',
131 'image-load-zxscr.h',
132 'image-overlay.cc',
133 'image-overlay.h',
134 'img-view.cc',
135 'img-view.h',
136 'intl.h',
137 'jpeg-parser.cc',
138 'jpeg-parser.h',
139 'keymap-template.cc',
140 'keymap-template.h',
141 'layout.cc',
142 'layout-config.cc',
143 'layout-config.h',
144 'layout.h',
145 'layout-image.cc',
146 'layout-image.h',
147 'layout-util.cc',
148 'layout-util.h',
149 'logwindow.cc',
150 'logwindow.h',
151 'lua.cc',
152 'main.cc',
153 'main.h',
154 'main-defines.h',
155 'md5-util.cc',
156 'md5-util.h',
157 'menu.cc',
158 'menu.h',
159 'metadata.cc',
160 'metadata.h',
161 'misc.cc',
162 'misc.h',
163 'options.cc',
164 'options.h',
165 'osd.cc',
166 'osd.h',
167 'pan-view.h',
168 'pixbuf-renderer.cc',
169 'pixbuf-renderer.h',
170 'pixbuf-util.cc',
171 'pixbuf-util.h',
172 'preferences.cc',
173 'preferences.h',
174 'print.cc',
175 'print.h',
176 'rcfile.cc',
177 'rcfile.h',
178 'remote.cc',
179 'remote.h',
180 'renderer-tiles.cc',
181 'renderer-tiles.h',
182 'search-and-run.cc',
183 'search-and-run.h',
184 'search.cc',
185 'search.h',
186 'secure-save.cc',
187 'secure-save.h',
188 'shortcuts.cc',
189 'shortcuts.h',
190 'similar.cc',
191 'similar.h',
192 'slideshow.cc',
193 'slideshow.h',
194 'thumb.cc',
195 'thumb.h',
196 'thumb-standard.cc',
197 'thumb-standard.h',
198 'toolbar.cc',
199 'toolbar.h',
200 'trash.cc',
201 'trash.h',
202 'typedefs.h',
203 'ui-bookmark.cc',
204 'ui-bookmark.h',
205 'ui-fileops.cc',
206 'ui-fileops.h',
207 'ui-help.cc',
208 'ui-help.h',
209 'ui-menu.cc',
210 'ui-menu.h',
211 'ui-misc.cc',
212 'ui-misc.h',
213 'ui-pathsel.cc',
214 'ui-pathsel.h',
215 'ui-tabcomp.cc',
216 'ui-tabcomp.h',
217 'ui-tree-edit.cc',
218 'ui-tree-edit.h',
219 'ui-utildlg.cc',
220 'ui-utildlg.h',
221 'uri-utils.cc',
222 'uri-utils.h',
223 'utilops.cc',
224 'utilops.h',
225 'view-dir.cc',
226 'view-dir.h',
227 'view-dir-list.cc',
228 'view-dir-list.h',
229 'view-dir-tree.cc',
230 'view-dir-tree.h',
231 'view-file.h',
232 'window.cc',
233 'window.h')
234
235 project_sources += main_sources
236
237 subdir('authors')
238 subdir('icons')
239 subdir('pan-view')
240 subdir('third-party')
241 subdir('ui')
242 subdir('view-file')
243
244 gq_marshal = gnome.genmarshal('gq-marshal', prefix : 'gq_marshal', sources : 'gq-marshal.list')
245
246 project_sources += gq_marshal[1]
247
248 gq_marshal_pragma_sh = find_program('gq-marshal-pragma.sh', dirs : scriptsdir)
249
250 gq_marshal_pragma = custom_target('gq-marshal-pragma',
251                     input : gq_marshal[0],
252                     output : 'gq-marshal-pragma.c',
253                     command : [gq_marshal_pragma_sh, '@INPUT@', '@OUTPUT@'])
254
255 project_sources += gq_marshal_pragma
256
257 if conf_data.get('HAVE_LCMS', 0) == 1
258     xxd_sh = find_program('generate-ClayRGB1998-icc-h.sh', dirs : join_paths(meson.project_source_root(), 'scripts'))
259
260     ClayRGB1998_icc_h = custom_target('ClayRGB1998',
261                         input: 'ClayRGB1998.icc',
262                         output : 'ClayRGB1998_icc.h',
263                         command : [xxd_sh, '@INPUT@', '@OUTPUT@'])
264
265     project_sources += ClayRGB1998_icc_h
266 endif
267
268 geeqie_exe = executable('geeqie', project_sources,
269 dependencies : [
270 gtk_dep,
271 champlain_dep,
272 champlain_gtk_dep,
273 clutter_dep,
274 clutter_gtk_dep,
275 ddjvuapi_dep,
276 exiv2_dep,
277 glib_dep,
278 gspell_dep,
279 lcms_dep,
280 libarchive_dep,
281 libdw_dep,
282 libexecinfo_dep,
283 libffmpegthumbnailer_dep,
284 libheif_dep,
285 libjpeg_dep,
286 libjxl_dep,
287 libopenjp2_dep,
288 libraw_dep,
289 libunwind_dep,
290 libwebp_dep,
291 lua_dep,
292 poppler_glib_dep,
293 thread_dep,
294 tiff_dep
295 ],
296 include_directories : [configuration_inc], install : true)