summaryrefslogtreecommitdiff
path: root/src/meson.build
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 11:36:54 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 11:36:54 +0100
commitcebf725978b32756700671a646aaed9677f6f219 (patch)
tree8aad7e2e09ba66c6ab36da556f7b8265b31898a6 /src/meson.build
parent13eec502b99e47e9910b5610869236698e1a8a13 (diff)
parenta632195d632be90e0da0ed0eef4b0987ed4bea6c (diff)
Merge branch 'release/3.26.2-1'3.26.2-1
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..9e40e42
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,41 @@
+resources = gnome.compile_resources ('resources', 'simple-scan.gresource.xml',
+ source_dir: '.',
+ c_name: 'resources')
+
+vala_args = [ '--pkg=posix', '--vapidir=' + meson.current_source_dir () ]
+dependencies = [ glib_dep, gtk_dep, zlib_dep, cairo_dep, gdk_pixbuf_dep, gusb_dep, sane_dep ]
+if colord_dep.found ()
+ vala_args += [ '-D', 'HAVE_COLORD' ]
+ dependencies += colord_dep
+endif
+if packagekit_dep.found ()
+ vala_args += [ '-D', 'HAVE_PACKAGEKIT' ]
+ dependencies += packagekit_dep
+endif
+if webp_dep.found () and (not colord_dep.found () or webpmux_dep.found ()) # Webpmux only required if colord
+ vala_args += [ '-D', 'HAVE_WEBP' ]
+ dependencies += [ webp_dep, webpmux_dep ]
+endif
+
+simple_scan = executable ('simple-scan',
+ [ 'config.vapi',
+ 'app-window.vala',
+ 'authorize-dialog.vala',
+ 'book.vala',
+ 'book-view.vala',
+ 'page.vala',
+ 'page-view.vala',
+ 'preferences-dialog.vala',
+ 'simple-scan.vala',
+ 'scanner.vala',
+ 'screensaver.vala',
+ 'autosave-manager.vala' ] + resources,
+ dependencies: dependencies,
+ vala_args: vala_args,
+ c_args: [ '-DVERSION="@0@"'.format (meson.project_version ()),
+ '-DGETTEXT_PACKAGE="simple-scan"',
+ '-DLOCALE_DIR="@0@"'.format (localedir),
+ '-DICON_DIR="@0@"'.format (icondir),
+ '-DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE' ],
+ link_args: [ '-lm' ],
+ install: true )