1
0
mirror of https://github.com/artizirk/wdisplays.git synced 2025-12-08 17:15:13 +02:00

Add icon and desktop file

This commit is contained in:
Jason Francis
2019-12-09 17:32:55 -05:00
parent 22669edadb
commit 54b5fe7e30
9 changed files with 740 additions and 21 deletions

View File

@@ -5,3 +5,35 @@ resources = gnome.compile_resources(
source_dir : '.',
c_name : 'waydisplay_resources')
scour = find_program('scour', required: false)
icon = 'wdisplays.svg'
icondir = get_option('datadir') / 'icons' / 'hicolor' / 'scalable' / 'apps'
if scour.found()
custom_target('optimize-icon',
input: icon,
output: '@0@.svg'.format(meson.project_name()),
command: [scour,
'--enable-viewboxing',
'--enable-comment-stripping',
'--remove-descriptive-elements',
'--enable-id-stripping',
'--shorten-ids',
'--create-groups',
'--strip-xml-space',
'--strip-xml-prolog',
'--indent=none',
'--no-line-breaks',
'@INPUT@', '@OUTPUT@'],
install: true,
install_dir: icondir)
else
install_data(icon, install_dir: icondir)
endif
install_data(
configure_file(input: 'wdisplays.desktop.in',
output: '@0@.desktop'.format(meson.project_name()),
configuration: conf),
install_dir: get_option('datadir') / 'applications')