2018-09-14 05:12:34 +00:00
|
|
|
icondir = join_paths('icons', 'hicolor', 'scalable', 'apps')
|
|
|
|
install_data(
|
2019-10-13 15:51:35 +00:00
|
|
|
join_paths(icondir, 'org.gnome.Nautilus' + profile + '.svg'),
|
2018-09-14 05:12:34 +00:00
|
|
|
install_dir: join_paths(datadir, icondir),
|
|
|
|
rename: '@0@.svg'.format(application_id)
|
|
|
|
)
|
2018-03-16 15:24:11 +00:00
|
|
|
|
2018-04-28 17:15:35 +00:00
|
|
|
icondir = join_paths('icons', 'hicolor', 'symbolic', 'apps')
|
|
|
|
|
|
|
|
install_data(
|
|
|
|
join_paths(icondir, 'org.gnome.Nautilus-symbolic.svg'),
|
|
|
|
install_dir: join_paths(datadir, icondir),
|
|
|
|
rename: '@0@-symbolic.svg'.format(application_id)
|
2017-12-13 18:13:54 +00:00
|
|
|
)
|
|
|
|
|
2022-02-18 16:03:14 +00:00
|
|
|
po_dir = join_paths(meson.project_source_root(), 'po')
|
2017-12-13 18:13:54 +00:00
|
|
|
|
2018-03-16 15:24:11 +00:00
|
|
|
desktop_conf = configuration_data()
|
|
|
|
|
|
|
|
desktop_conf.set('icon', application_id)
|
|
|
|
|
2017-12-13 18:13:54 +00:00
|
|
|
desktop = i18n.merge_file(
|
2018-03-16 15:24:11 +00:00
|
|
|
input: configure_file(
|
|
|
|
input: files('org.gnome.Nautilus.desktop.in.in'),
|
|
|
|
output: 'org.gnome.Nautilus.desktop.in',
|
|
|
|
configuration: desktop_conf
|
|
|
|
),
|
|
|
|
output: '@0@.desktop'.format(application_id),
|
2017-12-13 18:13:54 +00:00
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir,
|
|
|
|
po_dir: po_dir,
|
|
|
|
type: 'desktop'
|
|
|
|
)
|
|
|
|
|
|
|
|
desktop_autorun_software = i18n.merge_file(
|
|
|
|
input: 'nautilus-autorun-software.desktop.in',
|
|
|
|
output: 'nautilus-autorun-software.desktop',
|
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir,
|
|
|
|
po_dir: po_dir,
|
|
|
|
type: 'desktop'
|
|
|
|
)
|
|
|
|
|
2024-01-09 16:38:15 +00:00
|
|
|
# get current date, used as build date for snapshots between releases
|
|
|
|
today = 'unknown'
|
|
|
|
date = find_program('date', required: false)
|
|
|
|
if date.found()
|
|
|
|
r = run_command(date, '-I')
|
|
|
|
if r.returncode() == 0
|
|
|
|
today = r.stdout().strip()
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-03-16 15:24:11 +00:00
|
|
|
appdata_conf = configuration_data()
|
|
|
|
|
|
|
|
appdata_conf.set('appid', application_id)
|
2024-01-09 16:38:15 +00:00
|
|
|
appdata_conf.set('build-date', today)
|
2023-10-05 06:26:07 +00:00
|
|
|
appdata_conf.set('release-version', meson.project_version())
|
2018-03-16 15:24:11 +00:00
|
|
|
|
2017-12-13 18:13:54 +00:00
|
|
|
appdata = i18n.merge_file(
|
2018-03-16 15:24:11 +00:00
|
|
|
input: configure_file(
|
2024-01-09 16:45:38 +00:00
|
|
|
input: files('org.gnome.Nautilus.metainfo.xml.in.in'),
|
|
|
|
output: 'org.gnome.Nautilus.metainfo.xml.in',
|
2018-03-16 15:24:11 +00:00
|
|
|
configuration: appdata_conf
|
|
|
|
),
|
2024-01-09 16:45:38 +00:00
|
|
|
output: '@0@.metainfo.xml'.format(application_id),
|
2017-12-13 18:13:54 +00:00
|
|
|
install: true,
|
2018-01-30 17:30:08 +00:00
|
|
|
install_dir: join_paths(datadir, 'metainfo'),
|
2017-12-13 18:13:54 +00:00
|
|
|
po_dir: po_dir
|
|
|
|
)
|
|
|
|
|
|
|
|
service_conf = configuration_data()
|
2018-03-16 15:24:11 +00:00
|
|
|
service_conf.set('appid', application_id)
|
2017-12-13 18:13:54 +00:00
|
|
|
service_conf.set('bindir', join_paths(prefix, bindir))
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: 'org.gnome.Nautilus.service.in',
|
2018-03-16 15:24:11 +00:00
|
|
|
output: '@0@.service'.format(application_id),
|
2017-12-13 18:13:54 +00:00
|
|
|
configuration: service_conf,
|
|
|
|
install_dir: servicedir
|
|
|
|
)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: 'org.freedesktop.FileManager1.service.in',
|
|
|
|
output: 'org.freedesktop.FileManager1.service',
|
|
|
|
configuration: service_conf,
|
|
|
|
install_dir: servicedir
|
|
|
|
)
|
|
|
|
|
2018-03-16 15:24:11 +00:00
|
|
|
search_provider_conf = configuration_data()
|
|
|
|
|
|
|
|
search_provider_conf.set('appid', application_id)
|
|
|
|
search_provider_conf.set('profile', profile)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
configuration: search_provider_conf,
|
|
|
|
input: files('org.gnome.Nautilus.search-provider.ini.in'),
|
|
|
|
install_dir: join_paths(datadir, 'gnome-shell', 'search-providers'),
|
|
|
|
output: '@0@.search-provider.ini'.format(application_id)
|
2017-12-13 18:13:54 +00:00
|
|
|
)
|
|
|
|
|
2018-03-24 16:02:49 +00:00
|
|
|
gnome.compile_schemas(
|
|
|
|
build_by_default: true,
|
|
|
|
depend_files: 'org.gnome.nautilus.gschema.xml'
|
|
|
|
)
|
|
|
|
|
2017-12-13 18:13:54 +00:00
|
|
|
install_data(
|
|
|
|
'org.gnome.nautilus.gschema.xml',
|
|
|
|
install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
|
|
|
|
)
|
|
|
|
|
|
|
|
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
|
|
|
if desktop_file_validate.found()
|
|
|
|
test(
|
|
|
|
'validate-desktop',
|
|
|
|
desktop_file_validate,
|
|
|
|
args: [
|
|
|
|
desktop.full_path()
|
2021-04-21 08:18:55 +00:00
|
|
|
],
|
|
|
|
depends: [
|
|
|
|
desktop,
|
2017-12-13 18:13:54 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
test(
|
|
|
|
'validate-desktop-autorun-software',
|
|
|
|
desktop_file_validate,
|
|
|
|
args: [
|
|
|
|
desktop_autorun_software.full_path()
|
2021-04-21 08:18:55 +00:00
|
|
|
],
|
|
|
|
depends: [
|
|
|
|
desktop_autorun_software,
|
2017-12-13 18:13:54 +00:00
|
|
|
]
|
|
|
|
)
|
2017-08-10 10:20:43 +00:00
|
|
|
endif
|
|
|
|
|
2023-12-21 19:47:23 +00:00
|
|
|
appstreamcli = find_program('appstreamcli', required: false)
|
|
|
|
if appstreamcli.found()
|
2017-12-13 18:13:54 +00:00
|
|
|
test(
|
2023-12-21 19:47:23 +00:00
|
|
|
'validate-appdata', appstreamcli,
|
2017-12-13 18:13:54 +00:00
|
|
|
args: [
|
2023-12-21 19:47:23 +00:00
|
|
|
'validate', '--no-net', appdata.full_path()
|
2021-04-21 08:18:55 +00:00
|
|
|
],
|
|
|
|
depends: [
|
|
|
|
appdata,
|
2017-12-13 18:13:54 +00:00
|
|
|
]
|
|
|
|
)
|
2017-08-10 10:20:43 +00:00
|
|
|
endif
|
2020-05-02 14:46:28 +00:00
|
|
|
|
2024-04-20 10:51:51 +00:00
|
|
|
portal_impl_conf = configuration_data()
|
|
|
|
portal_impl_conf.set('appid', application_id)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: 'nautilus.portal.in',
|
|
|
|
output: 'nautilus.portal',
|
|
|
|
configuration: portal_impl_conf,
|
|
|
|
install_dir: datadir / 'xdg-desktop-portal' / 'portals',
|
|
|
|
)
|
|
|
|
|
2020-05-02 14:46:28 +00:00
|
|
|
subdir('ontology')
|
2020-08-01 15:25:27 +00:00
|
|
|
subdir('tracker')
|