2017-05-24 20:16:27 -04:00
|
|
|
service_data = configuration_data()
|
|
|
|
service_data.set('libexecdir', libexecdir)
|
|
|
|
|
|
|
|
subdir('calendar-server')
|
|
|
|
subdir('hotplug-sniffer')
|
|
|
|
subdir('st')
|
|
|
|
subdir('tray')
|
|
|
|
|
|
|
|
script_data = configuration_data()
|
|
|
|
script_data.set('bindir', bindir)
|
|
|
|
script_data.set('datadir', datadir)
|
|
|
|
script_data.set('libdir', libdir)
|
|
|
|
script_data.set('libexecdir', libexecdir)
|
|
|
|
script_data.set('pkgdatadir', pkgdatadir)
|
|
|
|
script_data.set('pkglibdir', pkglibdir)
|
|
|
|
script_data.set('PYTHON', python.path())
|
|
|
|
script_data.set('VERSION', meson.project_version())
|
|
|
|
|
2019-07-11 12:16:41 -04:00
|
|
|
script_tools = ['gnome-shell-perf-tool']
|
|
|
|
|
|
|
|
if get_option('extensions_tool')
|
|
|
|
script_tools += 'gnome-shell-extension-tool'
|
|
|
|
endif
|
|
|
|
|
|
|
|
foreach tool : script_tools
|
2017-05-24 20:16:27 -04:00
|
|
|
configure_file(
|
|
|
|
input: tool + '.in',
|
|
|
|
output: tool,
|
|
|
|
configuration: script_data,
|
|
|
|
install_dir: bindir
|
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-04-27 15:57:33 -04:00
|
|
|
install_data('gnome-shell-extension-prefs',
|
|
|
|
install_dir: bindir
|
|
|
|
)
|
|
|
|
|
2017-05-24 20:16:27 -04:00
|
|
|
gnome_shell_cflags = [
|
|
|
|
'-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
|
|
|
'-DCOGL_ENABLE_EXPERIMENTAL_API',
|
|
|
|
'-DVERSION="@0@"'.format(meson.project_version()),
|
|
|
|
'-DLOCALEDIR="@0@"'.format(localedir),
|
|
|
|
'-DDATADIR="@0@"'.format(datadir),
|
|
|
|
'-DGNOME_SHELL_LIBEXECDIR="@0@"'.format(libexecdir),
|
|
|
|
'-DGNOME_SHELL_DATADIR="@0@"'.format(pkgdatadir),
|
|
|
|
'-DGNOME_SHELL_PKGLIBDIR="@0@"'.format(pkglibdir)
|
|
|
|
]
|
|
|
|
|
|
|
|
install_rpath = ':'.join([mutter_typelibdir, pkglibdir])
|
|
|
|
|
|
|
|
gnome_shell_deps = [
|
|
|
|
gio_unix_dep,
|
|
|
|
libxml_dep,
|
|
|
|
gtk_dep,
|
|
|
|
atk_bridge_dep,
|
|
|
|
gjs_dep,
|
|
|
|
gdk_x11_dep,
|
|
|
|
clutter_dep,
|
|
|
|
cogl_pango_dep,
|
|
|
|
startup_dep,
|
|
|
|
gi_dep,
|
|
|
|
polkit_dep,
|
|
|
|
gcr_dep,
|
2018-01-17 10:56:17 -05:00
|
|
|
libsystemd_dep
|
2017-05-24 20:16:27 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
gnome_shell_deps += nm_deps
|
|
|
|
gnome_shell_deps += recorder_deps
|
|
|
|
|
2018-08-10 07:43:59 -04:00
|
|
|
tools_cflags = '-DLOCALEDIR="@0@"'.format(localedir)
|
|
|
|
tools_deps = [gio_dep, gjs_dep]
|
|
|
|
|
2018-10-04 11:21:21 -04:00
|
|
|
libshell_menu_sources = [
|
2017-05-24 20:16:27 -04:00
|
|
|
'gtkactionmuxer.h',
|
|
|
|
'gtkactionmuxer.c',
|
|
|
|
'gtkactionobservable.h',
|
|
|
|
'gtkactionobservable.c',
|
|
|
|
'gtkactionobserver.h',
|
2018-10-04 11:21:21 -04:00
|
|
|
'gtkactionobserver.c'
|
2017-05-24 20:16:27 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
libshell_menu = library('gnome-shell-menu',
|
2018-10-04 11:21:21 -04:00
|
|
|
sources: libshell_menu_sources,
|
2017-05-24 20:16:27 -04:00
|
|
|
dependencies: [gio_dep, clutter_dep],
|
|
|
|
include_directories: conf_inc,
|
2017-08-10 15:41:36 -04:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-24 20:16:27 -04:00
|
|
|
install_rpath: mutter_typelibdir,
|
|
|
|
install_dir: pkglibdir,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
2017-08-10 18:30:42 -04:00
|
|
|
libshell_menu_dep = declare_dependency(link_with: libshell_menu)
|
2017-05-24 20:16:27 -04:00
|
|
|
|
|
|
|
libshell_public_headers = [
|
|
|
|
'shell-app.h',
|
|
|
|
'shell-app-system.h',
|
|
|
|
'shell-app-usage.h',
|
2020-01-07 14:34:03 -05:00
|
|
|
'shell-blur-effect.h',
|
2017-05-24 20:16:27 -04:00
|
|
|
'shell-embedded-window.h',
|
2019-07-26 15:00:06 -04:00
|
|
|
'shell-glsl-effect.h',
|
2017-05-24 20:16:27 -04:00
|
|
|
'shell-gtk-embed.h',
|
|
|
|
'shell-global.h',
|
|
|
|
'shell-invert-lightness-effect.h',
|
|
|
|
'shell-action-modes.h',
|
|
|
|
'shell-mount-operation.h',
|
|
|
|
'shell-perf-log.h',
|
|
|
|
'shell-screenshot.h',
|
|
|
|
'shell-stack.h',
|
|
|
|
'shell-tray-icon.h',
|
|
|
|
'shell-tray-manager.h',
|
|
|
|
'shell-util.h',
|
2021-02-25 10:04:30 -05:00
|
|
|
'shell-window-preview.h',
|
2020-06-20 11:22:30 -04:00
|
|
|
'shell-window-preview-layout.h',
|
2017-05-24 20:16:27 -04:00
|
|
|
'shell-window-tracker.h',
|
|
|
|
'shell-wm.h'
|
|
|
|
]
|
|
|
|
|
|
|
|
if have_networkmanager
|
|
|
|
libshell_public_headers += 'shell-network-agent.h'
|
|
|
|
endif
|
|
|
|
|
|
|
|
libshell_private_headers = [
|
|
|
|
'shell-app-private.h',
|
2020-02-27 22:36:14 -05:00
|
|
|
'shell-app-cache-private.h',
|
2017-05-24 20:16:27 -04:00
|
|
|
'shell-app-system-private.h',
|
|
|
|
'shell-global-private.h',
|
|
|
|
'shell-window-tracker-private.h',
|
|
|
|
'shell-wm-private.h'
|
|
|
|
]
|
|
|
|
|
|
|
|
libshell_sources = [
|
|
|
|
'gnome-shell-plugin.c',
|
|
|
|
'shell-app.c',
|
|
|
|
'shell-app-system.c',
|
|
|
|
'shell-app-usage.c',
|
2020-01-07 14:34:03 -05:00
|
|
|
'shell-blur-effect.c',
|
2017-05-24 20:16:27 -04:00
|
|
|
'shell-embedded-window.c',
|
|
|
|
'shell-embedded-window-private.h',
|
|
|
|
'shell-global.c',
|
2019-07-26 15:00:06 -04:00
|
|
|
'shell-glsl-effect.c',
|
2017-05-24 20:16:27 -04:00
|
|
|
'shell-gtk-embed.c',
|
|
|
|
'shell-invert-lightness-effect.c',
|
|
|
|
'shell-keyring-prompt.c',
|
|
|
|
'shell-keyring-prompt.h',
|
|
|
|
'shell-mount-operation.c',
|
|
|
|
'shell-perf-log.c',
|
|
|
|
'shell-polkit-authentication-agent.c',
|
|
|
|
'shell-polkit-authentication-agent.h',
|
|
|
|
'shell-screenshot.c',
|
|
|
|
'shell-secure-text-buffer.c',
|
|
|
|
'shell-secure-text-buffer.h',
|
|
|
|
'shell-stack.c',
|
|
|
|
'shell-tray-icon.c',
|
|
|
|
'shell-tray-manager.c',
|
|
|
|
'shell-util.c',
|
2021-02-25 10:04:30 -05:00
|
|
|
'shell-window-preview.c',
|
2020-06-20 11:22:30 -04:00
|
|
|
'shell-window-preview-layout.c',
|
2017-05-24 20:16:27 -04:00
|
|
|
'shell-window-tracker.c',
|
|
|
|
'shell-wm.c'
|
|
|
|
]
|
|
|
|
|
|
|
|
if have_networkmanager
|
|
|
|
libshell_sources += 'shell-network-agent.c'
|
|
|
|
endif
|
|
|
|
|
2020-02-27 22:36:14 -05:00
|
|
|
libshell_private_sources = [
|
|
|
|
'shell-app-cache.c',
|
|
|
|
]
|
2017-05-24 20:16:27 -04:00
|
|
|
|
2017-08-15 15:54:48 -04:00
|
|
|
libshell_enums = gnome.mkenums_simple('shell-enum-types',
|
|
|
|
sources: libshell_public_headers
|
2017-05-24 20:16:27 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
libshell_gir_sources = [
|
|
|
|
libshell_enums,
|
|
|
|
libshell_public_headers,
|
|
|
|
libshell_sources
|
|
|
|
]
|
|
|
|
|
|
|
|
libshell_no_gir_sources = [
|
|
|
|
js_resources,
|
|
|
|
libshell_private_headers,
|
|
|
|
libshell_private_sources
|
|
|
|
]
|
|
|
|
|
|
|
|
dbus_generated = gnome.gdbus_codegen('org-gtk-application',
|
|
|
|
'org.gtk.Application.xml',
|
|
|
|
namespace: 'Shell'
|
|
|
|
)
|
|
|
|
|
2019-11-06 07:02:27 -05:00
|
|
|
dbus_generated += gnome.gdbus_codegen('switcheroo-control',
|
|
|
|
'../data/dbus-interfaces/net.hadess.SwitcherooControl.xml',
|
|
|
|
namespace: 'Shell'
|
|
|
|
)
|
|
|
|
|
2017-05-24 20:16:27 -04:00
|
|
|
libshell_no_gir_sources += dbus_generated
|
|
|
|
|
|
|
|
libshell = library('gnome-shell',
|
|
|
|
sources: libshell_gir_sources + libshell_no_gir_sources,
|
2019-11-26 13:45:29 -05:00
|
|
|
dependencies: gnome_shell_deps + [libshell_menu_dep, libst_dep, mutter_dep, gnome_desktop_dep, m_dep],
|
2017-05-24 20:16:27 -04:00
|
|
|
include_directories: [conf_inc, st_inc, include_directories('tray')],
|
|
|
|
c_args: gnome_shell_cflags,
|
2017-08-10 18:30:42 -04:00
|
|
|
link_with: [libtray],
|
2017-08-10 15:41:36 -04:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-24 20:16:27 -04:00
|
|
|
install_rpath: install_rpath,
|
|
|
|
install_dir: pkglibdir,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
2017-08-10 18:30:42 -04:00
|
|
|
libshell_dep = declare_dependency(link_with: libshell)
|
|
|
|
|
2017-05-24 20:16:27 -04:00
|
|
|
libshell_gir_includes = [
|
|
|
|
'Clutter-@0@'.format(mutter_api_version),
|
|
|
|
'ClutterX11-@0@'.format(mutter_api_version),
|
2018-09-14 17:14:33 -04:00
|
|
|
'Meta-@0@'.format(mutter_api_version),
|
|
|
|
'Gcr-3',
|
|
|
|
'PolkitAgent-1.0'
|
2017-05-24 20:16:27 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
if have_networkmanager
|
2017-10-31 06:38:20 -04:00
|
|
|
libshell_gir_includes += ['NM-1.0']
|
2017-05-24 20:16:27 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
libshell_gir_includes += [
|
|
|
|
libgvc_gir[0],
|
|
|
|
libst_gir[0]
|
|
|
|
]
|
|
|
|
|
|
|
|
gnome.generate_gir(libshell,
|
|
|
|
sources: libshell_gir_sources,
|
|
|
|
nsversion: '0.1',
|
|
|
|
namespace: 'Shell',
|
|
|
|
includes: libshell_gir_includes,
|
|
|
|
extra_args: ['--quiet'],
|
|
|
|
install_dir_gir: pkgdatadir,
|
|
|
|
install_dir_typelib: pkglibdir,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
|
|
|
executable('gnome-shell', 'main.c',
|
|
|
|
c_args: gnome_shell_cflags + [
|
|
|
|
'-DMUTTER_TYPELIB_DIR="@0@"'.format(mutter_typelibdir)
|
|
|
|
],
|
2017-08-10 19:21:40 -04:00
|
|
|
dependencies: gnome_shell_deps + [libshell_dep, libst_dep, mutter_dep],
|
2017-05-24 20:16:27 -04:00
|
|
|
include_directories: [conf_inc, st_inc, include_directories('tray')],
|
2017-08-10 15:41:36 -04:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-24 20:16:27 -04:00
|
|
|
install_rpath: install_rpath,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
|
|
|
if have_networkmanager
|
|
|
|
executable('gnome-shell-portal-helper',
|
2018-08-10 07:56:07 -04:00
|
|
|
'gnome-shell-portal-helper.c', portal_resources,
|
2018-08-10 07:43:59 -04:00
|
|
|
c_args: tools_cflags,
|
|
|
|
dependencies: tools_deps,
|
2017-05-24 20:16:27 -04:00
|
|
|
include_directories: [conf_inc],
|
|
|
|
install_dir: libexecdir,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
executable('gnome-shell-perf-helper', 'shell-perf-helper.c',
|
|
|
|
dependencies: [gtk_dep, gio_dep, m_dep],
|
|
|
|
include_directories: [conf_inc],
|
|
|
|
install_dir: libexecdir,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
|
|
|
executable('run-js-test', 'run-js-test.c',
|
2017-09-18 19:05:13 -04:00
|
|
|
dependencies: [mutter_dep, gio_dep, gi_dep, gjs_dep],
|
2017-05-24 20:16:27 -04:00
|
|
|
include_directories: [conf_inc],
|
|
|
|
link_with: libshell,
|
2017-08-10 15:41:36 -04:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-24 20:16:27 -04:00
|
|
|
)
|