cleanup dependencies
This commit is contained in:
parent
9fd83b108c
commit
bc9f3c3c49
@ -1,37 +1,55 @@
|
|||||||
|
glib_dep = dependency('glib-2.0')
|
||||||
|
gtk_dep = dependency('gtk+-3.0', version: '>=3.10.0')
|
||||||
|
|
||||||
|
gio_unix_dep = dependency('gio-unix-2.0')
|
||||||
|
if not always_authenticated
|
||||||
|
polkit_gobject_dep = dependency('polkit-gobject-1')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if build_gui
|
||||||
|
gobject_dep = dependency('gobject-2.0')
|
||||||
|
gmodule_dep = dependency('gmodule-2.0') # gmodule-export-2.0 is needed to connect the handlers from glade ui
|
||||||
|
|
||||||
|
if build_tray
|
||||||
|
appindicator_dep = dependency('appindicator3-0.1')
|
||||||
|
libnotify_dep = dependency('libnotify')
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
server_dependencies = [
|
server_dependencies = [
|
||||||
dependency('glib-2.0'),
|
glib_dep,
|
||||||
dependency('gio-unix-2.0'),
|
gio_unix_dep,
|
||||||
dependency('gtk+-3.0', version: '>=3.10.0'),
|
gtk_dep,
|
||||||
meson.get_compiler('c').find_library('m', required: true),
|
meson.get_compiler('c').find_library('m', required: true),
|
||||||
meson.get_compiler('vala').find_library('posix')
|
meson.get_compiler('vala').find_library('posix')
|
||||||
]
|
]
|
||||||
|
|
||||||
# if not always authenticated then polkit will be used for authentication
|
# if not always authenticated then polkit will be used for authentication
|
||||||
if not always_authenticated
|
if not always_authenticated
|
||||||
server_dependencies += [dependency('polkit-gobject-1')]
|
server_dependencies += [polkit_gobject_dep]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if build_cli
|
if build_cli
|
||||||
cli_dependencies = [
|
cli_dependencies = [
|
||||||
dependency('glib-2.0'),
|
glib_dep,
|
||||||
dependency('gtk+-3.0', version: '>=3.10.0'),
|
gtk_dep,
|
||||||
meson.get_compiler('c').find_library('m', required: true)
|
meson.get_compiler('c').find_library('m', required: true)
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if build_gui
|
if build_gui
|
||||||
gui_dependencies = [
|
gui_dependencies = [
|
||||||
dependency('glib-2.0'),
|
glib_dep,
|
||||||
dependency('gobject-2.0'),
|
gobject_dep,
|
||||||
dependency('gtk+-3.0', version: '>=3.10.0'),
|
gtk_dep,
|
||||||
dependency('gmodule-2.0', version: '>=2.0') # gmodule-export-2.0 is needed to connect the handlers from glade ui
|
gmodule_dep # gmodule-export-2.0 is needed to connect the handlers from glade ui
|
||||||
]
|
]
|
||||||
|
|
||||||
if build_tray
|
if build_tray
|
||||||
tray_dependencies = [
|
tray_dependencies = [
|
||||||
dependency('appindicator3-0.1'),
|
appindicator_dep,
|
||||||
dependency('gtk+-3.0', version: '>=3.10.0'),
|
gtk_dep,
|
||||||
dependency('libnotify')
|
libnotify_dep
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user