1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
executable('gdk-pixbuf-thumbnailer',
[ 'gdk-pixbuf-thumbnailer.c', 'gnome-thumbnailer-skeleton.c' ],
c_args: common_cflags + [
'-DTHUMBNAILER_RETURNS_PIXBUF',
'-DTHUMBNAILER_USAGE="Thumbnail images"',
],
dependencies: gdk_pixbuf_deps + [ gdkpixbuf_dep ],
install: true)
gdk_pixbuf_print_mime_types = executable('gdk-pixbuf-print-mime-types',
'gdk-pixbuf-print-mime-types.c',
c_args: common_cflags,
dependencies: gdk_pixbuf_deps + [ gdkpixbuf_dep ])
gen_thumbnailer = find_program('gen-thumbnailer.py')
custom_target('thumbnailer',
input: 'gdk-pixbuf-thumbnailer.thumbnailer.in',
output: 'gdk-pixbuf-thumbnailer.thumbnailer',
command: [
gen_thumbnailer,
'--printer=@0@'.format(gdk_pixbuf_print_mime_types.full_path()),
'--pixdata=@0@'.format(gdk_pixbuf_pixdata.full_path()),
'--loaders=@0@'.format(loaders_cache.full_path()),
'--bindir=@0@'.format(gdk_pixbuf_bindir),
'@INPUT@',
'@OUTPUT@',
],
depends: [
gdk_pixbuf_print_mime_types,
gdk_pixbuf_pixdata,
loaders_cache,
],
install: true,
install_dir: join_paths(gdk_pixbuf_datadir, 'thumbnailers'))
|