This adds a configuration option in meson, if set it changes the application ID allowing for stable and development version to be run at the same time.
42 lines
1.2 KiB
Meson
42 lines
1.2 KiB
Meson
subdir('icons')
|
|
|
|
desktop_conf = configuration_data()
|
|
desktop_conf.set('icon', application_id)
|
|
i18n.merge_file ('desktop-file',
|
|
type: 'desktop',
|
|
input: configure_file(
|
|
input: files('org.gnome.Podcasts.desktop.in.in'),
|
|
output: 'org.gnome.Podcasts.desktop.in',
|
|
configuration: desktop_conf
|
|
),
|
|
output: '@0@.desktop'.format(application_id),
|
|
po_dir: podir,
|
|
install: true,
|
|
install_dir: join_paths (datadir, 'applications')
|
|
)
|
|
|
|
appdata_conf = configuration_data()
|
|
appdata_conf.set('appid', application_id)
|
|
i18n.merge_file ('appdata-file',
|
|
input: configure_file(
|
|
input: files('org.gnome.Podcasts.appdata.xml.in.in'),
|
|
output: 'org.gnome.Podcasts.appdata.xml.in',
|
|
configuration: appdata_conf
|
|
),
|
|
output: '@0@.appdata.xml'.format(application_id),
|
|
po_dir: podir,
|
|
install: true,
|
|
install_dir: join_paths (datadir, 'metainfo')
|
|
)
|
|
|
|
install_data('org.gnome.Podcasts.gschema.xml', install_dir: join_paths(datadir, 'glib-2.0', 'schemas'))
|
|
|
|
configure_file(
|
|
input: 'org.gnome.Podcasts.service.in',
|
|
output: '@0@.service'.format(application_id),
|
|
configuration: podcasts_conf,
|
|
install_dir: join_paths(datadir,'dbus-1', 'services')
|
|
)
|
|
|
|
meson.add_install_script('../../scripts/compile-gschema.py')
|