Skip to content

Commit

Permalink
Install application icons via meson
Browse files Browse the repository at this point in the history
  • Loading branch information
Alecaddd committed Sep 20, 2024
1 parent 81abea9 commit 7c107cd
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
application_id = meson.project_name()

# Install our icons in all the required sizes
icon_sizes = ['16', '24', '32', '48', '64', '128']

foreach i : icon_sizes
install_data(
'hicolor' / i + 'x' + i / application_id + '.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i / 'apps',
rename: application_id + '.svg'
)
install_data(
'hicolor' / i + 'x' + i / application_id + '.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i + '@2' / 'apps',
rename: application_id + '.svg'
)
install_data(
'hicolor' / i + 'x' + i / application_id + '.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i / 'mimetypes',
rename: application_id + '.svg'
)
endforeach


install_data(
'hicolor/128x128/' + meson.project_name() + '.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / 'scalable' / 'apps',
rename: application_id + '.svg'
)
2 changes: 2 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ if compile_schemas.found()
compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()])
endif

subdir('icons')

0 comments on commit 7c107cd

Please sign in to comment.