Skip to content

Commit

Permalink
add for loop in meson.build in icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Latesil committed Mar 14, 2021
1 parent 156be79 commit 74acae1
Showing 1 changed file with 8 additions and 44 deletions.
52 changes: 8 additions & 44 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -1,47 +1,11 @@
install_data([appname + '-24.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/24x24/apps')
)

install_data([appname + '-32.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/32x32/apps')
)

install_data([appname + '-48.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/48x48/apps')
)

install_data([appname + '-64.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/64x64/apps')
)

install_data([appname + '-96.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/96x96/apps')
)

install_data([appname + '-128.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/128x128/apps')
)

install_data([appname + '-192.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/192x192/apps')
)

install_data([appname + '-256.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/256x256/apps')
)

install_data([appname + '-512.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/512x512/apps')
)
sizes = ['24', '32', '48', '64', '96', '128', '192', '256', '512']

foreach size : sizes
install_data([appname + '-' + size + '.png'],
rename : [appname + '.png'],
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/' + size + 'x' + size + '/apps')
)
endforeach

# install_data([appname + '-symbolic.svg'],
# rename : [appname + '-symbolic.svg'],
Expand Down

0 comments on commit 74acae1

Please sign in to comment.