2016-12-13 00:26:54 +01:00
|
|
|
gnome.compile_resources(
|
2017-09-16 14:15:40 +02:00
|
|
|
meson.project_name(),
|
|
|
|
meson.project_name() + '.gresource.xml',
|
|
|
|
gresource_bundle: true,
|
|
|
|
source_dir: '.',
|
2018-10-19 15:23:01 -04:00
|
|
|
install_dir: join_paths(datadir, meson.project_name()),
|
2017-09-16 14:15:40 +02:00
|
|
|
install: true
|
|
|
|
)
|
2016-12-13 00:26:54 +01:00
|
|
|
|
|
|
|
install_data(
|
2017-09-16 14:15:40 +02:00
|
|
|
meson.project_name() + '.gschema.xml',
|
2018-10-19 15:23:01 -04:00
|
|
|
install_dir : join_paths(datadir, 'glib-2.0/schemas')
|
2018-09-23 10:36:52 +00:00
|
|
|
)
|
|
|
|
|
2018-10-19 15:23:01 -04:00
|
|
|
search_service_provider_conf = configuration_data()
|
|
|
|
search_service_provider_conf.set('appid', application_id)
|
|
|
|
search_service_provider_conf.set('profile', profile)
|
2018-09-23 10:36:52 +00:00
|
|
|
configure_file(
|
2018-10-19 15:23:01 -04:00
|
|
|
configuration: search_service_provider_conf,
|
|
|
|
input: files(meson.project_name() + '.SearchProvider.service.in'),
|
|
|
|
install_dir: join_paths(datadir, 'gnome-shell', 'search-providers'),
|
|
|
|
output: '@0@.SearchProvider.service'.format(application_id)
|
2017-09-16 14:15:40 +02:00
|
|
|
)
|
|
|
|
|
2018-10-19 15:23:01 -04: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(meson.project_name() + '.SearchProvider.ini.in'),
|
|
|
|
install_dir: join_paths(datadir, 'gnome-shell', 'search-providers'),
|
|
|
|
output: '@0@.SearchProvider.ini'.format(application_id)
|
2018-09-23 10:36:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2018-10-19 15:23:01 -04:00
|
|
|
desktop_conf = configuration_data()
|
|
|
|
desktop_conf.set('icon', application_id)
|
|
|
|
desktop = i18n.merge_file(
|
|
|
|
'desktop',
|
|
|
|
input: configure_file(
|
|
|
|
input: files(meson.project_name() + '.desktop.in.in'),
|
|
|
|
output: '@0@.desktop.in'.format(application_id),
|
|
|
|
configuration: desktop_conf
|
|
|
|
),
|
|
|
|
output: '@0@.desktop'.format(application_id),
|
2018-03-16 12:49:51 +01:00
|
|
|
po_dir: join_paths(meson.source_root(), 'po'),
|
2017-09-16 14:15:40 +02:00
|
|
|
type: 'desktop',
|
|
|
|
install: true,
|
2018-10-19 15:23:01 -04:00
|
|
|
install_dir: join_paths(datadir, 'applications')
|
2017-09-16 14:15:40 +02:00
|
|
|
)
|
|
|
|
|
2018-10-19 15:23:01 -04:00
|
|
|
appdata_conf = configuration_data()
|
|
|
|
appdata_conf.set('appid', application_id)
|
|
|
|
appdata = i18n.merge_file(
|
|
|
|
'appdata',
|
|
|
|
input: configure_file(
|
|
|
|
input: files(meson.project_name() + '.appdata.xml.in.in'),
|
|
|
|
output: '@0@.appdata.xml.in'.format(application_id),
|
|
|
|
configuration: appdata_conf
|
|
|
|
),
|
|
|
|
output: '@0@.appdata.xml'.format(application_id),
|
2018-03-16 12:49:51 +01:00
|
|
|
po_dir: join_paths(meson.source_root(), 'po'),
|
2017-09-16 14:15:40 +02:00
|
|
|
install: true,
|
2018-10-19 15:23:01 -04:00
|
|
|
install_dir: join_paths(datadir, 'appdata')
|
2017-09-16 14:15:40 +02:00
|
|
|
)
|
2016-12-13 00:26:54 +01:00
|
|
|
|
|
|
|
|
2018-03-16 12:49:51 +01:00
|
|
|
desktop_file_validate = find_program('desktop-file-validate', required:false)
|
|
|
|
|
|
|
|
if desktop_file_validate.found()
|
|
|
|
test (
|
|
|
|
'Validate desktop file',
|
|
|
|
desktop_file_validate,
|
2018-10-19 15:23:01 -04:00
|
|
|
args: join_paths(meson.current_build_dir(), '@0@.desktop'.format(application_id))
|
2018-03-16 12:49:51 +01:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
2018-09-02 15:05:51 +02:00
|
|
|
appstreamcli = find_program('appstream-util', required:false)
|
2018-03-16 12:49:51 +01:00
|
|
|
|
|
|
|
if appstreamcli.found()
|
|
|
|
test (
|
|
|
|
'Validate appdata file',
|
|
|
|
appstreamcli,
|
2018-09-23 10:36:52 +00:00
|
|
|
args: [
|
|
|
|
'validate-relax',
|
2018-10-19 15:23:01 -04:00
|
|
|
join_paths(meson.current_build_dir(), '@0@.appdata.xml'.format(application_id))
|
2018-09-23 10:36:52 +00:00
|
|
|
]
|
2018-03-16 12:49:51 +01:00
|
|
|
)
|
|
|
|
endif
|
2018-09-23 15:53:08 +02:00
|
|
|
|
|
|
|
subdir('icons')
|