build: Fix appindicator detection logic
This commit is contained in:
parent
521e83e2a4
commit
740bc9b262
|
@ -40,15 +40,14 @@ gio = dependency('gio-sharp-3.0')
|
||||||
glib = dependency('glib-sharp-3.0')
|
glib = dependency('glib-sharp-3.0')
|
||||||
webkit = dependency('webkit2-sharp-4.0')
|
webkit = dependency('webkit2-sharp-4.0')
|
||||||
notify = dependency('notify-sharp-3.0')
|
notify = dependency('notify-sharp-3.0')
|
||||||
|
appindicator = dependency('appindicator3-sharp-0.1', required: get_option('ubuntu'))
|
||||||
|
|
||||||
args = '-r:Mono.Posix'
|
args = '-r:Mono.Posix'
|
||||||
|
|
||||||
if get_option('ubuntu')
|
if appindicator.found()
|
||||||
args = [args, '-define:HAVE_APP_INDICATOR']
|
args = [args, '-define:HAVE_APP_INDICATOR']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
appindicator = dependency('appindicator3-sharp-0.1', required: get_option('ubuntu'))
|
|
||||||
|
|
||||||
sparkleshare = executable('SparkleShare',
|
sparkleshare = executable('SparkleShare',
|
||||||
dependencies: [gtk, gdk, gio, glib, webkit, notify, appindicator],
|
dependencies: [gtk, gdk, gio, glib, webkit, notify, appindicator],
|
||||||
link_with: [sparkles, sparkles_git],
|
link_with: [sparkles, sparkles_git],
|
||||||
|
|
Loading…
Reference in a new issue