summaryrefslogtreecommitdiff
path: root/thumbnailer
diff options
context:
space:
mode:
Diffstat (limited to 'thumbnailer')
-rw-r--r--thumbnailer/eom-thumbnailer.c2
-rw-r--r--thumbnailer/meson.build15
2 files changed, 16 insertions, 1 deletions
diff --git a/thumbnailer/eom-thumbnailer.c b/thumbnailer/eom-thumbnailer.c
index dee7b82..7abc48f 100644
--- a/thumbnailer/eom-thumbnailer.c
+++ b/thumbnailer/eom-thumbnailer.c
@@ -1,6 +1,6 @@
/* gcc eom-thumbnailer.c `pkg-config --cflags --libs glib-2.0 gio-2.0 MagickWand` -lm -o eom-thumbnailer */
/*
- * Copyright (C) 2020 MATE developers
+ * Copyright (C) 2020-2021 MATE developers
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/thumbnailer/meson.build b/thumbnailer/meson.build
new file mode 100644
index 0000000..ac4b412
--- /dev/null
+++ b/thumbnailer/meson.build
@@ -0,0 +1,15 @@
+if not get_option('gdk-pixbuf-thumbnailer')
+ thumbnailer = executable(
+ 'eom-thumbnailer',
+ sources: [
+ 'eom-thumbnailer.c',
+ ],
+ dependencies: [all_deps, magick],
+ include_directories: top_inc,
+ install: true,
+ )
+endif
+
+thumbnailerdir = datadir / 'thumbnailers'
+thumbnailerfile = configure_file(input: 'eom-thumbnailer.thumbnailer.in', configuration: pkg_info, output: 'eom-thumbnailer.thumbnailer')
+install_data(thumbnailerfile, install_dir: thumbnailerdir)