summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorVictor A. Santos <[email protected]>2020-04-21 11:57:33 -0300
committerraveit65 <[email protected]>2020-09-03 13:19:56 +0200
commit69870bbbbebbd7ecc113b80da96d6dc5d29ee467 (patch)
tree26e6652e420f79d209dbe1e0fee75e7780a3d42b /data
parent1db4b409322e559a3d3a03677dd482a0613f3b29 (diff)
downloadmate-power-manager-69870bbbbebbd7ecc113b80da96d6dc5d29ee467.tar.bz2
mate-power-manager-69870bbbbebbd7ecc113b80da96d6dc5d29ee467.tar.xz
Meson Project: Use foreach for install icons
Diffstat (limited to 'data')
-rw-r--r--data/icons/meson.build101
1 files changed, 52 insertions, 49 deletions
diff --git a/data/icons/meson.build b/data/icons/meson.build
index 889731f..55dc16e 100644
--- a/data/icons/meson.build
+++ b/data/icons/meson.build
@@ -2,55 +2,58 @@ actioniconsdir_path = join_paths(pkgdatadir_path, 'icons', 'hicolor')
appiconsdir_path = join_paths(datadir_path, 'icons', 'hicolor')
statusiconsdir_path = join_paths(pkgdatadir_path, 'icons', 'hicolor')
+action_images = [
+ 'gpm-hibernate.png',
+ 'gpm-suspend.png'
+]
+
+app_images = [
+ 'mate-brightness-applet.png',
+ 'mate-inhibit-applet.png',
+ 'mate-power-manager.png',
+ 'mate-power-statistics.png'
+]
+
+status_images = [
+ 'gpm-ac-adapter.png', 'gpm-keyboard-080.png', 'gpm-battery-000-charging.png',
+ 'gpm-keyboard-100.png', 'gpm-battery-000.png', 'gpm-mouse-000.png',
+ 'gpm-battery-020-charging.png', 'gpm-mouse-020.png', 'gpm-battery-020.png',
+ 'gpm-mouse-040.png', 'gpm-battery-040-charging.png', 'gpm-mouse-060.png',
+ 'gpm-battery-040.png', 'gpm-mouse-080.png', 'gpm-battery-060-charging.png',
+ 'gpm-mouse-100.png', 'gpm-battery-060.png', 'gpm-phone-000.png',
+ 'gpm-battery-080-charging.png', 'gpm-phone-020.png', 'gpm-battery-080.png',
+ 'gpm-phone-040.png', 'gpm-battery-100-charging.png', 'gpm-phone-060.png',
+ 'gpm-battery-100.png', 'gpm-phone-080.png', 'gpm-battery-charged.png',
+ 'gpm-phone-100.png', 'gpm-battery-empty.png', 'gpm-ups-000-charging.png',
+ 'gpm-battery-missing.png', 'gpm-ups-000.png', 'gpm-brightness-kbd-disabled.png',
+ 'gpm-ups-020-charging.png','gpm-brightness-kbd-invalid.png', 'gpm-ups-020.png',
+ 'gpm-brightness-kbd.png', 'gpm-ups-040-charging.png', 'gpm-brightness-lcd-disabled.png',
+ 'gpm-ups-040.png', 'gpm-brightness-lcd-invalid.png', 'gpm-ups-060-charging.png',
+ 'gpm-brightness-lcd.png', 'gpm-ups-060.png', 'gpm-inhibit-invalid.png', 'gpm-ups-080-charging.png',
+ 'gpm-inhibit.png', 'gpm-ups-080.png', 'gpm-keyboard-000.png', 'gpm-ups-100-charging.png',
+ 'gpm-keyboard-020.png', 'gpm-ups-100.png', 'gpm-keyboard-040.png', 'gpm-ups-missing.png',
+ 'gpm-keyboard-060.png'
+]
+
foreach s: ['16x16', '22x22', '24x24', '32x32', '48x48', '64x64', '96x96', '128x128', '256x256']
- install_data(
- [
- join_paths(s, 'actions', 'gpm-hibernate.png'),
- join_paths(s, 'actions', 'gpm-suspend.png'),
- ],
- install_dir: join_paths(actioniconsdir_path, s, 'actions')
- )
+ foreach image: action_images
+ install_data(
+ join_paths(s, 'actions', image),
+ install_dir: join_paths(actioniconsdir_path, s, 'actions')
+ )
+ endforeach
+
+ foreach image: app_images
+ install_data(
+ join_paths(s, 'apps', image),
+ install_dir: join_paths(appiconsdir_path, s, 'apps')
+ )
+ endforeach
- install_data(
- [
- join_paths(s, 'apps', 'mate-brightness-applet.png'),
- join_paths(s, 'apps', 'mate-inhibit-applet.png'),
- join_paths(s, 'apps', 'mate-power-manager.png'),
- join_paths(s, 'apps', 'mate-power-statistics.png'),
- ],
- install_dir: join_paths(appiconsdir_path, s, 'apps')
- )
- install_data(
- [
- join_paths(s, 'status', 'gpm-ac-adapter.png'), join_paths(s, 'status', 'gpm-keyboard-080.png'),
- join_paths(s, 'status', 'gpm-battery-000-charging.png'), join_paths(s, 'status', 'gpm-keyboard-100.png'),
- join_paths(s, 'status', 'gpm-battery-000.png'), join_paths(s, 'status', 'gpm-mouse-000.png'),
- join_paths(s, 'status', 'gpm-battery-020-charging.png'), join_paths(s, 'status', 'gpm-mouse-020.png'),
- join_paths(s, 'status', 'gpm-battery-020.png'), join_paths(s, 'status', 'gpm-mouse-040.png'),
- join_paths(s, 'status', 'gpm-battery-040-charging.png'), join_paths(s, 'status', 'gpm-mouse-060.png'),
- join_paths(s, 'status', 'gpm-battery-040.png'), join_paths(s, 'status', 'gpm-mouse-080.png'),
- join_paths(s, 'status', 'gpm-battery-060-charging.png'), join_paths(s, 'status', 'gpm-mouse-100.png'),
- join_paths(s, 'status', 'gpm-battery-060.png'), join_paths(s, 'status', 'gpm-phone-000.png'),
- join_paths(s, 'status', 'gpm-battery-080-charging.png'), join_paths(s, 'status', 'gpm-phone-020.png'),
- join_paths(s, 'status', 'gpm-battery-080.png'), join_paths(s, 'status', 'gpm-phone-040.png'),
- join_paths(s, 'status', 'gpm-battery-100-charging.png'), join_paths(s, 'status', 'gpm-phone-060.png'),
- join_paths(s, 'status', 'gpm-battery-100.png'), join_paths(s, 'status', 'gpm-phone-080.png'),
- join_paths(s, 'status', 'gpm-battery-charged.png'), join_paths(s, 'status', 'gpm-phone-100.png'),
- join_paths(s, 'status', 'gpm-battery-empty.png'), join_paths(s, 'status', 'gpm-ups-000-charging.png'),
- join_paths(s, 'status', 'gpm-battery-missing.png'), join_paths(s, 'status', 'gpm-ups-000.png'),
- join_paths(s, 'status', 'gpm-brightness-kbd-disabled.png'), join_paths(s, 'status', 'gpm-ups-020-charging.png'),
- join_paths(s, 'status', 'gpm-brightness-kbd-invalid.png'), join_paths(s, 'status', 'gpm-ups-020.png'),
- join_paths(s, 'status', 'gpm-brightness-kbd.png'), join_paths(s, 'status', 'gpm-ups-040-charging.png'),
- join_paths(s, 'status', 'gpm-brightness-lcd-disabled.png'), join_paths(s, 'status', 'gpm-ups-040.png'),
- join_paths(s, 'status', 'gpm-brightness-lcd-invalid.png'), join_paths(s, 'status', 'gpm-ups-060-charging.png'),
- join_paths(s, 'status', 'gpm-brightness-lcd.png'), join_paths(s, 'status', 'gpm-ups-060.png'),
- join_paths(s, 'status', 'gpm-inhibit-invalid.png'), join_paths(s, 'status', 'gpm-ups-080-charging.png'),
- join_paths(s, 'status', 'gpm-inhibit.png'), join_paths(s, 'status', 'gpm-ups-080.png'),
- join_paths(s, 'status', 'gpm-keyboard-000.png'), join_paths(s, 'status', 'gpm-ups-100-charging.png'),
- join_paths(s, 'status', 'gpm-keyboard-020.png'), join_paths(s, 'status', 'gpm-ups-100.png'),
- join_paths(s, 'status', 'gpm-keyboard-040.png'), join_paths(s, 'status', 'gpm-ups-missing.png'),
- join_paths(s, 'status', 'gpm-keyboard-060.png'),
- ],
- install_dir: join_paths(statusiconsdir_path, s, 'status')
- )
+ foreach image: status_images
+ install_data(
+ join_paths(s, 'status', image),
+ install_dir: join_paths(statusiconsdir_path, s, 'status')
+ )
+ endforeach
endforeach