1# This file is part of GNOME Twitch - 'Enjoy Twitch on your GNU/Linux desktop'
2# Copyright © 2017 Vincent Szolnoky <vinszent@vinszent.com>
3#
4# GNOME Twitch is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# GNOME Twitch is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with GNOME Twitch. If not, see <http://www.gnu.org/licenses/>.
16
17datadir = get_option('datadir')
18
19if (host_machine.system() != 'windows')
20  i18n = import('i18n')
21
22  i18n.merge_file(
23    input : 'com.vinszent.GnomeTwitch.desktop.in',
24    output : 'com.vinszent.GnomeTwitch.desktop',
25    po_dir : '../po',
26    type : 'desktop',
27    install : true,
28    install_dir : join_paths(datadir, 'applications'))
29
30  i18n.merge_file(
31    input : 'com.vinszent.GnomeTwitch.appdata.xml.in',
32    output : 'com.vinszent.GnomeTwitch.appdata.xml',
33    po_dir : '../po',
34    install : true,
35    install_dir : join_paths(datadir, 'metainfo'))
36endif
37
38icondir = join_paths(datadir, 'icons', 'hicolor')
39icon_sizes = ['16x16', '24x24', '32x32', '48x48', '256x256', '512x512']
40
41foreach size : icon_sizes
42  install_data('icons/hicolor/@0@/apps/com.vinszent.GnomeTwitch.png'.format(size),
43    install_dir : join_paths(icondir, size, 'apps'))
44endforeach
45
46install_data('icons/hicolor/scalable/apps/com.vinszent.GnomeTwitch.svg',
47  install_dir : 'share/icons/hicolor/scalable/apps')
48
49install_data('icons/hicolor/scalable/apps/com.vinszent.GnomeTwitch-symbolic.svg',
50  install_dir : 'share/icons/hicolor/symbolic/apps')
51
52install_data('com.vinszent.GnomeTwitch.gschema.xml',
53  install_dir : join_paths(datadir, 'glib-2.0/schemas/'))
54