diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/icons/meson.build | 67 | ||||
-rw-r--r-- | data/meson.build | 33 | ||||
-rw-r--r-- | data/sounds/meson.build | 29 |
3 files changed, 129 insertions, 0 deletions
diff --git a/data/icons/meson.build b/data/icons/meson.build new file mode 100644 index 0000000..f012852 --- /dev/null +++ b/data/icons/meson.build @@ -0,0 +1,67 @@ +status_icons = [ + ['16x16', 'audio-input-microphone-high.png', 'audio-input-microphone-low.png', 'audio-input-microphone-medium.png', 'audio-input-microphone-muted.png'], + ['22x22', 'audio-input-microphone-high.png', 'audio-input-microphone-low.png', 'audio-input-microphone-medium.png', 'audio-input-microphone-muted.png'], + ['24x24', 'audio-input-microphone-high.png', 'audio-input-microphone-low.png', 'audio-input-microphone-medium.png', 'audio-input-microphone-muted.png'], + ['32x32', 'audio-input-microphone-high.png', 'audio-input-microphone-low.png', 'audio-input-microphone-medium.png', 'audio-input-microphone-muted.png'], +] + +foreach icon: status_icons + install_data( + join_paths(icon[0], 'status', icon[1]), + install_dir: join_paths(mm_iconsdir, 'hicolor', icon[0], 'status') + ) + install_data( + join_paths(icon[0], 'status', icon[2]), + install_dir: join_paths(mm_iconsdir, 'hicolor', icon[0], 'status') + ) + install_data( + join_paths(icon[0], 'status', icon[3]), + install_dir: join_paths(mm_iconsdir, 'hicolor', icon[0], 'status') + ) + install_data( + join_paths(icon[0], 'status', icon[4]), + install_dir: join_paths(mm_iconsdir, 'hicolor', icon[0], 'status') + ) +endforeach + +scalable_icons = [ + 'audio-input-microphone-high.svg', + 'audio-input-microphone-low.svg', + 'audio-input-microphone-medium.svg', + 'audio-input-microphone-muted.svg' +] + +foreach icon: scalable_icons + install_data( + join_paths('scalable', 'status', icon), + install_dir: join_paths(mm_iconsdir, 'hicolor', 'scalable', 'status') + ) +endforeach + +devices_icons = [ + 'audio-speaker-center-back.svg', + 'audio-speaker-center-back-testing.svg', + 'audio-speaker-center.svg', + 'audio-speaker-center-testing.svg', + 'audio-speaker-left-back.svg', + 'audio-speaker-left-back-testing.svg', + 'audio-speaker-left-side.svg', + 'audio-speaker-left-side-testing.svg', + 'audio-speaker-left.svg', + 'audio-speaker-left-testing.svg', + 'audio-speaker-right-back.svg', + 'audio-speaker-right-back-testing.svg', + 'audio-speaker-right-side.svg', + 'audio-speaker-right-side-testing.svg', + 'audio-speaker-right.svg', + 'audio-speaker-right-testing.svg', + 'audio-subwoofer.svg', + 'audio-subwoofer-testing.svg', +] + +foreach icon: devices_icons + install_data( + join_paths('scalable', 'devices', icon), + install_dir: join_paths(mm_iconsdir, 'hicolor', '48x48', 'devices') + ) +endforeach diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..316934a --- /dev/null +++ b/data/meson.build @@ -0,0 +1,33 @@ +po_dir = join_paths(meson.source_root(), 'po') +its_dir = join_paths(meson.source_root()) +subdir('icons') +subdir('sounds') +# .desktop file + +desktop_data = configuration_data() +desktop_data.set('VERSION', meson.project_version()) +desktop_in_file = configure_file( + input : 'mate-volume-control.desktop.in.in', + output : 'mate-volume-control.desktop.in', + configuration : desktop_data +) + +i18n.merge_file( + input : desktop_in_file, + output : 'mate-volume-control.desktop', + type : 'desktop', + po_dir : po_dir, + install : true, + install_dir : join_paths(mm_datadir, 'applications') +) + +desktop = 'mate-volume-control-status-icon.desktop' + +i18n.merge_file( + type: 'desktop', + input: desktop + '.in', + output: desktop, + po_dir: po_dir, + install: true, + install_dir: join_paths(get_option('sysconfdir'), 'xdg', 'autostart') +) diff --git a/data/sounds/meson.build b/data/sounds/meson.build new file mode 100644 index 0000000..329c4b7 --- /dev/null +++ b/data/sounds/meson.build @@ -0,0 +1,29 @@ +xml_data = configuration_data() +xml_data.set('datadir', mm_datadir) +xml_in_file = configure_file( + input : 'mate-sounds-default.xml.in.in', + output : 'mate-sounds-default.xml.in', + configuration : xml_data +) + +i18n.merge_file( + input: xml_in_file, + output: 'mate-sounds-default.xml', + po_dir: po_dir, + data_dirs: its_dir, + install: true, + install_dir: join_paths(mm_pkgdatadir, 'sounds') +) + +oggs = [ + 'bark.ogg', + 'drip.ogg', + 'glass.ogg', + 'sonar.ogg' +] +foreach ogg: oggs + install_data( + ogg, + install_dir: join_paths(mm_datadir, 'sounds', 'mate', 'default', 'alerts') + ) +endforeach |