Commit 7e26afe7 authored by Iñigo Martínez's avatar Iñigo Martínez
Browse files

build: Relocate icons' directories

This patch relocates icons' files into the directories that they
are going to be installed, avoiding the need to process directories
or files individually, which makes the installation process faster.

https://bugzilla.gnome.org/show_bug.cgi?id=787638
parent c67c9a10
icon_data = [
'goa-account-facebook.png',
'goa-account-flickr.png',
'goa-account-foursquare.png',
'goa-account-google.png',
'goa-account-msn.png',
'goa-account-owncloud.png',
'goa-account.png',
'goa-account-pocket.png',
'goa-account-todoist.png'
]
icon_data_256 = ['goa-account.png']
icons = [
['16x16', icon_data],
['22x22', icon_data],
['24x24', icon_data],
['32x32', icon_data],
['48x48', icon_data],
['96x96', icon_data],
['256x256', icon_data_256]
]
foreach icon: icons
icon_dir = join_paths(goa_datadir, 'icons', 'hicolor', icon[0], 'apps')
foreach data: icon[1]
install_data(
join_paths(icon[0], data),
install_dir: icon_dir
)
endforeach
endforeach
install_subdir(
'hicolor',
install_dir: join_paths(goa_datadir, 'icons')
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment