mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-04 19:08:23 +00:00
f193c9a637
From now on nautilus claims to implement the FileChooser portal. For now it's a lie. But the next few commits will make it true.
160 lines
3.9 KiB
Meson
160 lines
3.9 KiB
Meson
icondir = join_paths('icons', 'hicolor', 'scalable', 'apps')
|
|
install_data(
|
|
join_paths(icondir, 'org.gnome.Nautilus' + profile + '.svg'),
|
|
install_dir: join_paths(datadir, icondir),
|
|
rename: '@0@.svg'.format(application_id)
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
po_dir = join_paths(meson.project_source_root(), 'po')
|
|
|
|
desktop_conf = configuration_data()
|
|
|
|
desktop_conf.set('icon', application_id)
|
|
|
|
desktop = i18n.merge_file(
|
|
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),
|
|
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'
|
|
)
|
|
|
|
# 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
|
|
|
|
appdata_conf = configuration_data()
|
|
|
|
appdata_conf.set('appid', application_id)
|
|
appdata_conf.set('build-date', today)
|
|
appdata_conf.set('release-version', meson.project_version())
|
|
|
|
appdata = i18n.merge_file(
|
|
input: configure_file(
|
|
input: files('org.gnome.Nautilus.metainfo.xml.in.in'),
|
|
output: 'org.gnome.Nautilus.metainfo.xml.in',
|
|
configuration: appdata_conf
|
|
),
|
|
output: '@0@.metainfo.xml'.format(application_id),
|
|
install: true,
|
|
install_dir: join_paths(datadir, 'metainfo'),
|
|
po_dir: po_dir
|
|
)
|
|
|
|
service_conf = configuration_data()
|
|
service_conf.set('appid', application_id)
|
|
service_conf.set('bindir', join_paths(prefix, bindir))
|
|
|
|
configure_file(
|
|
input: 'org.gnome.Nautilus.service.in',
|
|
output: '@0@.service'.format(application_id),
|
|
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
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
gnome.compile_schemas(
|
|
build_by_default: true,
|
|
depend_files: 'org.gnome.nautilus.gschema.xml'
|
|
)
|
|
|
|
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()
|
|
],
|
|
depends: [
|
|
desktop,
|
|
]
|
|
)
|
|
test(
|
|
'validate-desktop-autorun-software',
|
|
desktop_file_validate,
|
|
args: [
|
|
desktop_autorun_software.full_path()
|
|
],
|
|
depends: [
|
|
desktop_autorun_software,
|
|
]
|
|
)
|
|
endif
|
|
|
|
appstreamcli = find_program('appstreamcli', required: false)
|
|
if appstreamcli.found()
|
|
test(
|
|
'validate-appdata', appstreamcli,
|
|
args: [
|
|
'validate', '--no-net', appdata.full_path()
|
|
],
|
|
depends: [
|
|
appdata,
|
|
]
|
|
)
|
|
endif
|
|
|
|
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',
|
|
)
|
|
|
|
subdir('ontology')
|
|
subdir('tracker')
|