From a05fc9c33608483b1e10d0779e3fef876849b55e Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Sat, 10 Sep 2022 16:11:43 +0200 Subject: [PATCH] improve icons meson file --- data/icons/meson.build | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/data/icons/meson.build b/data/icons/meson.build index eac6aa6..3dac0ce 100644 --- a/data/icons/meson.build +++ b/data/icons/meson.build @@ -1,28 +1,32 @@ application_id = 'io.github.vanilla-os.FirstSetup' + scalable_dir = join_paths('hicolor', 'scalable', 'apps') +symbolic_dir = join_paths('hicolor', 'symbolic') +actions_dir = join_paths(symbolic_dir, 'actions') + + install_data( join_paths(scalable_dir, ('@0@.svg').format(application_id)), install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir) ) -symbolic_dir = join_paths('hicolor', 'symbolic') + install_data( join_paths(symbolic_dir, 'apps', ('@0@-symbolic.svg').format(application_id)), install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir) ) + install_data( - join_paths(symbolic_dir, 'actions', 'vanilla-container-terminal-symbolic.svg'), + join_paths(actions_dir, 'vanilla-container-terminal-symbolic.svg'), install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'actions') ) - install_data( - join_paths(symbolic_dir, 'actions', 'vanilla-package-symbolic.svg'), + join_paths(actions_dir, 'vanilla-package-symbolic.svg'), install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'actions') ) - install_data( - join_paths(symbolic_dir, 'actions', 'vanilla-puzzle-piece-symbolic.svg'), + join_paths(actions_dir, 'vanilla-puzzle-piece-symbolic.svg'), install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'actions') )