From 740bc9b26230b05409a38608ba074f365d894995 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 26 Feb 2018 09:58:48 +0000 Subject: [PATCH] build: Fix appindicator detection logic --- SparkleShare/Linux/meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SparkleShare/Linux/meson.build b/SparkleShare/Linux/meson.build index 91e380ae..54fcd4bd 100644 --- a/SparkleShare/Linux/meson.build +++ b/SparkleShare/Linux/meson.build @@ -40,15 +40,14 @@ gio = dependency('gio-sharp-3.0') glib = dependency('glib-sharp-3.0') webkit = dependency('webkit2-sharp-4.0') notify = dependency('notify-sharp-3.0') +appindicator = dependency('appindicator3-sharp-0.1', required: get_option('ubuntu')) args = '-r:Mono.Posix' -if get_option('ubuntu') +if appindicator.found() args = [args, '-define:HAVE_APP_INDICATOR'] endif -appindicator = dependency('appindicator3-sharp-0.1', required: get_option('ubuntu')) - sparkleshare = executable('SparkleShare', dependencies: [gtk, gdk, gio, glib, webkit, notify, appindicator], link_with: [sparkles, sparkles_git],