[gnome-epub-thumbnailer] build: Port build system to meson



commit dc74b71052b27e8c3216f1b458fb853b1da3ecdc
Author: Çağatay Yiğit Şahin <cyigitsahin outlook com>
Date:   Thu Sep 29 02:31:27 2022 +0200

    build: Port build system to meson

 meson.build | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
---
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..412c563
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,24 @@
+project('gnome-epub-thumbnailer', 'c', version : '1.6')
+
+deps = [dependency('gdk-pixbuf-2.0'),
+        dependency('gio-2.0'),
+        dependency('libarchive'),
+        dependency('libxml-2.0')]
+
+add_global_arguments('-DTHUMBNAILER_RETURNS_DATA', language : 'c')
+prefix = get_option('prefix')
+bindir = prefix / get_option('bindir')
+thumbnailers_dir = prefix / get_option('datadir') / 'thumbnailers'
+
+foreach file_format : ['EPub', 'MOBI']
+  exec_name = 'gnome-@0@-thumbnailer'.format(file_format.to_lower())
+  executable(exec_name,
+             exec_name + '.c', 'gnome-thumbnailer-skeleton.c',
+             c_args : '-DTHUMBNAILER_USAGE=' + '"Thumbnail @0@ books"'.format(file_format),
+             dependencies : deps,
+             install : true)
+  configure_file(input : exec_name + '.thumbnailer.in',
+                 output : exec_name + '.thumbnailer',
+                 configuration : {'bindir' : bindir},
+                 install_dir : thumbnailers_dir)
+endforeach


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]