2017-05-25 00:16:27 +00:00
|
|
|
desktop_files = [
|
|
|
|
'org.gnome.Shell.desktop',
|
|
|
|
'gnome-shell-extension-prefs.desktop'
|
|
|
|
]
|
|
|
|
service_files = []
|
|
|
|
|
|
|
|
if have_networkmanager
|
|
|
|
desktop_files += 'org.gnome.Shell.PortalHelper.desktop'
|
|
|
|
service_files += 'org.gnome.Shell.PortalHelper.service'
|
|
|
|
endif
|
|
|
|
|
|
|
|
desktopconf = configuration_data()
|
|
|
|
# We substitute in bindir so it works as an autostart
|
|
|
|
# file when built in a non-system prefix
|
|
|
|
desktopconf.set('bindir', bindir)
|
2019-08-05 19:46:05 +00:00
|
|
|
desktopconf.set('systemd_hidden', have_systemd ? 'true' : 'false')
|
|
|
|
|
2017-05-25 00:16:27 +00:00
|
|
|
foreach desktop_file : desktop_files
|
|
|
|
i18n.merge_file('desktop',
|
|
|
|
input: configure_file(
|
|
|
|
input: desktop_file + '.in.in',
|
|
|
|
output: desktop_file + '.in',
|
|
|
|
configuration: desktopconf
|
|
|
|
),
|
|
|
|
output: desktop_file,
|
2019-04-26 10:33:58 +00:00
|
|
|
po_dir: po_dir,
|
2017-05-25 00:16:27 +00:00
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir,
|
|
|
|
type: 'desktop'
|
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
serviceconf = configuration_data()
|
|
|
|
serviceconf.set('libexecdir', libexecdir)
|
|
|
|
foreach service_file : service_files
|
|
|
|
configure_file(
|
|
|
|
input: service_file + '.in',
|
|
|
|
output: service_file,
|
|
|
|
configuration: serviceconf,
|
|
|
|
install_dir: servicedir
|
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
2018-09-06 14:29:26 +00:00
|
|
|
subdir('dbus-interfaces')
|
2017-05-25 00:16:27 +00:00
|
|
|
subdir('theme')
|
|
|
|
|
2018-09-06 00:04:47 +00:00
|
|
|
data_resources = [
|
|
|
|
['dbus-interfaces', []],
|
|
|
|
['osk-layouts', []],
|
|
|
|
['theme', theme_deps]
|
|
|
|
]
|
|
|
|
foreach resource : data_resources
|
|
|
|
gnome.compile_resources(
|
|
|
|
'gnome-shell-' + resource[0],
|
|
|
|
'gnome-shell-@0@.gresource.xml'.format(resource[0]),
|
|
|
|
source_dir: resource[0],
|
|
|
|
dependencies: resource[1],
|
|
|
|
gresource_bundle: true,
|
|
|
|
install: true,
|
|
|
|
install_dir: pkgdatadir
|
|
|
|
)
|
|
|
|
endforeach
|
2017-08-10 19:06:25 +00:00
|
|
|
|
2017-05-25 00:16:27 +00:00
|
|
|
perfconf = configuration_data()
|
|
|
|
perfconf.set('datadir', datadir)
|
|
|
|
configure_file(
|
|
|
|
input: 'perf-background.xml.in',
|
|
|
|
output: 'perf-background.xml',
|
|
|
|
configuration: perfconf,
|
|
|
|
install_dir: pkgdatadir
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
install_data('50-gnome-shell-system.xml', install_dir: keysdir)
|
|
|
|
|
|
|
|
|
|
|
|
schemaconf = configuration_data()
|
|
|
|
schemaconf.set('GETTEXT_PACKAGE', meson.project_name())
|
2017-08-19 08:43:38 +00:00
|
|
|
schema = configure_file(
|
2017-05-25 00:16:27 +00:00
|
|
|
input: 'org.gnome.shell.gschema.xml.in',
|
|
|
|
output: 'org.gnome.shell.gschema.xml',
|
|
|
|
configuration: schemaconf,
|
|
|
|
install_dir: schemadir
|
|
|
|
)
|
2017-08-16 19:15:48 +00:00
|
|
|
install_data('00_org.gnome.shell.gschema.override', install_dir: schemadir)
|
2017-05-25 00:16:27 +00:00
|
|
|
|
2018-07-18 17:27:29 +00:00
|
|
|
overrides_migration_conf = configuration_data()
|
|
|
|
overrides_migration_conf.set('libexecdir', libexecdir)
|
|
|
|
overrides_migration = configure_file(
|
|
|
|
input: 'gnome-shell-overrides-migration.desktop.in',
|
|
|
|
output: 'gnome-shell-overrides-migration.desktop',
|
|
|
|
configuration: overrides_migration_conf,
|
|
|
|
install_dir: autostartdir
|
|
|
|
)
|
|
|
|
|
2018-01-17 15:56:17 +00:00
|
|
|
if have_systemd
|
|
|
|
unitconf = configuration_data()
|
|
|
|
unitconf.set('bindir', bindir)
|
|
|
|
|
2019-04-19 22:21:55 +00:00
|
|
|
configure_file(
|
|
|
|
input: 'gnome-shell-x11.service.in',
|
|
|
|
output: 'gnome-shell-x11.service',
|
|
|
|
configuration: unitconf,
|
|
|
|
install_dir: systemduserunitdir
|
|
|
|
)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: 'gnome-shell-wayland.service.in',
|
|
|
|
output: 'gnome-shell-wayland.service',
|
2018-01-17 15:56:17 +00:00
|
|
|
configuration: unitconf,
|
|
|
|
install_dir: systemduserunitdir
|
|
|
|
)
|
|
|
|
|
2019-04-19 22:21:55 +00:00
|
|
|
units = files('gnome-shell-x11.target',
|
|
|
|
'gnome-shell-wayland.target',
|
|
|
|
'gnome-shell-disable-extensions.service')
|
2018-01-17 15:56:17 +00:00
|
|
|
|
|
|
|
install_data(units, install_dir: systemduserunitdir)
|
|
|
|
endif
|
|
|
|
|
2017-08-19 08:43:38 +00:00
|
|
|
# for unit tests - gnome.compile_schemas() only looks in srcdir
|
|
|
|
custom_target('compile-schemas',
|
|
|
|
input: schema,
|
|
|
|
output: 'gschemas.compiled',
|
|
|
|
command: [find_program('glib-compile-schemas'), meson.current_build_dir()],
|
|
|
|
build_by_default: true)
|
|
|
|
|
2017-05-25 00:16:27 +00:00
|
|
|
install_data('gnome-shell-overrides.convert', install_dir: convertdir)
|