2017-05-25 00:16:27 +00: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)
|
2021-12-23 01:40:22 +00:00
|
|
|
script_data.set('PYTHON', python.full_path())
|
2017-05-25 00:16:27 +00:00
|
|
|
script_data.set('VERSION', meson.project_version())
|
|
|
|
|
2019-07-11 16:16:41 +00: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-25 00:16:27 +00:00
|
|
|
configure_file(
|
|
|
|
input: tool + '.in',
|
|
|
|
output: tool,
|
|
|
|
configuration: script_data,
|
|
|
|
install_dir: bindir
|
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2020-04-27 19:57:33 +00:00
|
|
|
install_data('gnome-shell-extension-prefs',
|
|
|
|
install_dir: bindir
|
|
|
|
)
|
|
|
|
|
2017-05-25 00:16:27 +00: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 15:56:17 +00:00
|
|
|
libsystemd_dep
|
2017-05-25 00:16:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
gnome_shell_deps += nm_deps
|
|
|
|
|
2018-08-10 11:43:59 +00:00
|
|
|
tools_cflags = '-DLOCALEDIR="@0@"'.format(localedir)
|
|
|
|
tools_deps = [gio_dep, gjs_dep]
|
|
|
|
|
2018-10-04 15:21:21 +00:00
|
|
|
libshell_menu_sources = [
|
2017-05-25 00:16:27 +00:00
|
|
|
'gtkactionmuxer.h',
|
|
|
|
'gtkactionmuxer.c',
|
|
|
|
'gtkactionobservable.h',
|
|
|
|
'gtkactionobservable.c',
|
|
|
|
'gtkactionobserver.h',
|
2018-10-04 15:21:21 +00:00
|
|
|
'gtkactionobserver.c'
|
2017-05-25 00:16:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
libshell_menu = library('gnome-shell-menu',
|
2018-10-04 15:21:21 +00:00
|
|
|
sources: libshell_menu_sources,
|
2017-05-25 00:16:27 +00:00
|
|
|
dependencies: [gio_dep, clutter_dep],
|
|
|
|
include_directories: conf_inc,
|
2017-08-10 19:41:36 +00:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-25 00:16:27 +00:00
|
|
|
install_rpath: mutter_typelibdir,
|
|
|
|
install_dir: pkglibdir,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
2017-08-10 22:30:42 +00:00
|
|
|
libshell_menu_dep = declare_dependency(link_with: libshell_menu)
|
2017-05-25 00:16:27 +00:00
|
|
|
|
|
|
|
libshell_public_headers = [
|
|
|
|
'shell-app.h',
|
|
|
|
'shell-app-system.h',
|
|
|
|
'shell-app-usage.h',
|
2020-01-07 19:34:03 +00:00
|
|
|
'shell-blur-effect.h',
|
2017-05-25 00:16:27 +00:00
|
|
|
'shell-embedded-window.h',
|
2019-07-26 19:00:06 +00:00
|
|
|
'shell-glsl-effect.h',
|
2017-05-25 00:16:27 +00: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',
|
2021-03-02 10:47:13 +00:00
|
|
|
'shell-square-bin.h',
|
2017-05-25 00:16:27 +00:00
|
|
|
'shell-stack.h',
|
|
|
|
'shell-tray-icon.h',
|
|
|
|
'shell-tray-manager.h',
|
|
|
|
'shell-util.h',
|
2021-02-25 15:04:30 +00:00
|
|
|
'shell-window-preview.h',
|
2020-06-20 15:22:30 +00:00
|
|
|
'shell-window-preview-layout.h',
|
2017-05-25 00:16:27 +00: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-28 03:36:14 +00:00
|
|
|
'shell-app-cache-private.h',
|
2017-05-25 00:16:27 +00: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 19:34:03 +00:00
|
|
|
'shell-blur-effect.c',
|
2017-05-25 00:16:27 +00:00
|
|
|
'shell-embedded-window.c',
|
|
|
|
'shell-embedded-window-private.h',
|
|
|
|
'shell-global.c',
|
2019-07-26 19:00:06 +00:00
|
|
|
'shell-glsl-effect.c',
|
2017-05-25 00:16:27 +00: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',
|
2021-03-02 10:47:13 +00:00
|
|
|
'shell-square-bin.c',
|
2017-05-25 00:16:27 +00:00
|
|
|
'shell-stack.c',
|
|
|
|
'shell-tray-icon.c',
|
|
|
|
'shell-tray-manager.c',
|
|
|
|
'shell-util.c',
|
2021-02-25 15:04:30 +00:00
|
|
|
'shell-window-preview.c',
|
2020-06-20 15:22:30 +00:00
|
|
|
'shell-window-preview-layout.c',
|
2017-05-25 00:16:27 +00:00
|
|
|
'shell-window-tracker.c',
|
|
|
|
'shell-wm.c'
|
|
|
|
]
|
|
|
|
|
|
|
|
if have_networkmanager
|
|
|
|
libshell_sources += 'shell-network-agent.c'
|
|
|
|
endif
|
|
|
|
|
2020-02-28 03:36:14 +00:00
|
|
|
libshell_private_sources = [
|
|
|
|
'shell-app-cache.c',
|
|
|
|
]
|
2017-05-25 00:16:27 +00:00
|
|
|
|
2017-08-15 19:54:48 +00:00
|
|
|
libshell_enums = gnome.mkenums_simple('shell-enum-types',
|
|
|
|
sources: libshell_public_headers
|
2017-05-25 00:16:27 +00: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 12:02:27 +00:00
|
|
|
dbus_generated += gnome.gdbus_codegen('switcheroo-control',
|
|
|
|
'../data/dbus-interfaces/net.hadess.SwitcherooControl.xml',
|
|
|
|
namespace: 'Shell'
|
|
|
|
)
|
|
|
|
|
2017-05-25 00:16:27 +00:00
|
|
|
libshell_no_gir_sources += dbus_generated
|
|
|
|
|
|
|
|
libshell = library('gnome-shell',
|
|
|
|
sources: libshell_gir_sources + libshell_no_gir_sources,
|
2019-11-26 18:45:29 +00:00
|
|
|
dependencies: gnome_shell_deps + [libshell_menu_dep, libst_dep, mutter_dep, gnome_desktop_dep, m_dep],
|
2017-05-25 00:16:27 +00:00
|
|
|
include_directories: [conf_inc, st_inc, include_directories('tray')],
|
|
|
|
c_args: gnome_shell_cflags,
|
2017-08-10 22:30:42 +00:00
|
|
|
link_with: [libtray],
|
2017-08-10 19:41:36 +00:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-25 00:16:27 +00:00
|
|
|
install_rpath: install_rpath,
|
|
|
|
install_dir: pkglibdir,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
2017-08-10 22:30:42 +00:00
|
|
|
libshell_dep = declare_dependency(link_with: libshell)
|
|
|
|
|
2017-05-25 00:16:27 +00:00
|
|
|
libshell_gir_includes = [
|
|
|
|
'Clutter-@0@'.format(mutter_api_version),
|
2018-09-14 21:14:33 +00:00
|
|
|
'Meta-@0@'.format(mutter_api_version),
|
|
|
|
'Gcr-3',
|
|
|
|
'PolkitAgent-1.0'
|
2017-05-25 00:16:27 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if have_networkmanager
|
2017-10-31 10:38:20 +00:00
|
|
|
libshell_gir_includes += ['NM-1.0']
|
2017-05-25 00:16:27 +00: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 23:21:40 +00:00
|
|
|
dependencies: gnome_shell_deps + [libshell_dep, libst_dep, mutter_dep],
|
2017-05-25 00:16:27 +00:00
|
|
|
include_directories: [conf_inc, st_inc, include_directories('tray')],
|
2017-08-10 19:41:36 +00:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-25 00:16:27 +00:00
|
|
|
install_rpath: install_rpath,
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
|
|
|
if have_networkmanager
|
|
|
|
executable('gnome-shell-portal-helper',
|
2018-08-10 11:56:07 +00:00
|
|
|
'gnome-shell-portal-helper.c', portal_resources,
|
2018-08-10 11:43:59 +00:00
|
|
|
c_args: tools_cflags,
|
|
|
|
dependencies: tools_deps,
|
2017-05-25 00:16:27 +00: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 23:05:13 +00:00
|
|
|
dependencies: [mutter_dep, gio_dep, gi_dep, gjs_dep],
|
2017-05-25 00:16:27 +00:00
|
|
|
include_directories: [conf_inc],
|
|
|
|
link_with: libshell,
|
2017-08-10 19:41:36 +00:00
|
|
|
build_rpath: mutter_typelibdir,
|
2017-05-25 00:16:27 +00:00
|
|
|
)
|