-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Reduce indirections to generate desktop files
- Loading branch information
Showing
2 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
subdir('icons') | ||
|
||
# Desktop file [input filename, output filename] | ||
desktops = [['org.gnome.Evince.desktop', | ||
'@[email protected]'.format(ev_app_id)]] | ||
|
||
if enable_previewer | ||
desktops += [['org.gnome.Evince-previewer.desktop', | ||
'@[email protected]'.format(ev_app_id)]] | ||
endif | ||
|
||
foreach desktop: desktops | ||
desktop_in = configure_file( | ||
input: desktop[0] + '.in.in', | ||
output: desktop[1] + '.in', | ||
configuration: mime_types_conf, | ||
) | ||
# Desktop files | ||
desktop_in = configure_file( | ||
input: 'org.gnome.Evince.desktop.in.in', | ||
output: 'org.gnome.Evince.desktop.in', | ||
configuration: mime_types_conf, | ||
) | ||
i18n.merge_file( | ||
type: 'desktop', | ||
input: desktop_in, | ||
output: '@[email protected]'.format(ev_app_id), | ||
po_dir: po_dir, | ||
install: true, | ||
install_dir: join_paths(ev_datadir, 'applications'), | ||
) | ||
|
||
i18n.merge_file( | ||
type: 'desktop', | ||
input: desktop_in, | ||
output: desktop[1], | ||
po_dir: po_dir, | ||
install: true, | ||
install_dir: join_paths(ev_datadir, 'applications'), | ||
) | ||
endforeach | ||
i18n.merge_file( | ||
type: 'desktop', | ||
input: 'org.gnome.Evince-previewer.desktop.in', | ||
output: '@[email protected]'.format(ev_app_id), | ||
po_dir: po_dir, | ||
install: true, | ||
install_dir: join_paths(ev_datadir, 'applications'), | ||
) | ||
|
||
# DBus service file | ||
if enable_dbus | ||
|
File renamed without changes.