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