From 60e13e25743a15817f366a15f75352ec10ff8cd2 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Mon, 25 Sep 2017 11:03:08 +0200 Subject: [PATCH] meson: generate mconnect.desktop --- meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/meson.build b/meson.build index 2e5bf8d..ec14e4c 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,6 @@ project('mconnect', 'vala', 'c') +# dependencies glib_dep = dependency('glib-2.0') gobject_dep = dependency('gobject-2.0') gio_dep = dependency('gio-2.0') @@ -17,6 +18,7 @@ add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')], language: 'vala') +# binaries mconnect_src = [ 'src/mconnect/main.vala', 'src/mconnect/discovery.vala', @@ -75,3 +77,12 @@ test_mconn_crypt = executable('test-mconn-crypt', test_mconn_crypt_src, ], install: false) test('mconn-crypt', test_mconn_crypt) + +# other files +conf = configuration_data() +conf.set('bindir', + join_paths(get_option('prefix'), get_option('bindir'))) + +configure_file(output: 'mconnect.desktop', + input: 'mconnect.desktop.in', + configuration: conf)