build: Clean up tools' dependencies

Simply reusing the same dependencies as gnome-shell itself not only
means that we link tons of stuff unnecessarily, but also that we
have to do the whole mutter rpath dance for nothing. Just use the
dependencies those executables actually need for a nice cleanup.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/192
This commit is contained in:
Florian Müllner 2018-08-10 13:43:59 +02:00 committed by Florian Müllner
parent dc4128c78b
commit 9cf571efbd

View File

@ -59,6 +59,9 @@ gnome_shell_deps = [
gnome_shell_deps += nm_deps
gnome_shell_deps += recorder_deps
tools_cflags = '-DLOCALEDIR="@0@"'.format(localedir)
tools_deps = [gio_dep, gjs_dep]
libshell_menu_gir_sources = [
'gtkactionmuxer.h',
'gtkactionmuxer.c',
@ -259,11 +262,9 @@ executable('gnome-shell', 'main.c',
executable('gnome-shell-extension-prefs',
'gnome-shell-extension-prefs.c', js_resources,
c_args: gnome_shell_cflags,
dependencies: gnome_shell_deps,
c_args: tools_cflags,
dependencies: tools_deps,
include_directories: [conf_inc],
build_rpath: mutter_typelibdir,
install_rpath: install_rpath,
install: true
)
@ -271,11 +272,9 @@ executable('gnome-shell-extension-prefs',
if have_networkmanager
executable('gnome-shell-portal-helper',
'gnome-shell-portal-helper.c', js_resources,
c_args: gnome_shell_cflags,
dependencies: gnome_shell_deps,
c_args: tools_cflags,
dependencies: tools_deps,
include_directories: [conf_inc],
build_rpath: mutter_typelibdir,
install_rpath: install_rpath,
install_dir: libexecdir,
install: true
)
@ -284,8 +283,6 @@ endif
executable('gnome-shell-perf-helper', 'shell-perf-helper.c',
dependencies: [gtk_dep, gio_dep, m_dep],
include_directories: [conf_inc],
build_rpath: mutter_typelibdir,
install_rpath: install_rpath,
install_dir: libexecdir,
install: true
)