diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-16 10:20:58 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-16 10:20:58 +0200 |
commit | 0d9b56ff5bbc3b263bb24d60a5d53e09e2785532 (patch) | |
tree | be9cd87ce9f41713ed2710b9b424861155a43f33 /src/meson.build | |
parent | 6c629d45711b613257d30e8d5a1527003d9c3f1f (diff) | |
parent | 657d8b8812f16b2c377e5b77ff2ffcc4046a7dce (diff) |
Updated version 3.25.1 from 'upstream/3.25.1'
with Debian dir 8914d0848d9107f42ab3763c541ef1480cee0f27
Diffstat (limited to 'src/meson.build')
-rw-r--r-- | src/meson.build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..cfda86d --- /dev/null +++ b/src/meson.build @@ -0,0 +1,34 @@ +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 + +simple_scan = executable ('simple-scan', + [ 'config.vapi', + 'book.vala', + 'book-view.vala', + 'page.vala', + 'page-view.vala', + 'simple-scan.vala', + 'scanner.vala', + 'ui.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 ) |