summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 1b24a8c50cc75842ed59494a6ef8104f96b45744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
install_data('rygel.conf', install_dir : rygel_sysconfdir)
install_data(join_paths('icons', '128x128', 'rygel.png'), install_dir : join_paths(rygel_icondir, '128x128', 'apps'))
install_data(join_paths('icons', '120x120', 'rygel.png'), install_dir : rygel_bigicondir)
install_data(join_paths('icons', '120x120', 'rygel.jpg'), install_dir : rygel_bigicondir)
install_data(join_paths('icons', '48x48', 'rygel.png'), install_dir : rygel_smallicondir)
install_data(join_paths('icons', '48x48', 'rygel.jpg'), install_dir : rygel_smallicondir)
install_data(join_paths('icons', '32x32', 'rygel.png'), install_dir : join_paths(rygel_icondir, '32x32', 'apps'))
install_data(join_paths('icons', '48x48', 'rygel.png'), install_dir : join_paths(rygel_icondir, '48x48', 'apps'))
install_data(join_paths('icons', 'scalable', 'rygel.svg'), install_dir : join_paths(rygel_icondir, 'scalable', 'apps'))
install_data(join_paths('icons', 'scalable', 'rygel-full.svg'), install_dir : join_paths(rygel_icondir, 'scalable', 'apps'))

if (gtk.found())
  install_data('rygel-preferences.ui', install_dir : rygel_datadir)
endif

data_conf = configuration_data()
data_conf.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
data_conf.set('VERSION', meson.project_version())

configure_file(input: 'org.gnome.Rygel1.service.in',
               output: 'org.gnome.Rygel1.service',
               configuration: data_conf,
               install_dir : join_paths(
                   get_option('prefix'),
                   get_option('datadir'),
                   'dbus-1/services')
               )

systemd = dependency('systemd', required : false)
systemd_user_unit_dir = join_paths(get_option('prefix'), 'lib/systemd/user/')
if systemd.found()
    systemd_user_unit_dir = systemd.get_variable('systemduserunitdir')
endif

if not (get_option('systemd-user-units-dir') == 'off')
    if not (get_option('systemd-user-units-dir') == 'auto')
        systemd_user_unit_dir = get_option('systemd-user-units-dir')
    endif

    configure_file(input: 'rygel.service.in',
                   output: 'rygel.service',
                   configuration: data_conf,
                   install_dir : systemd_user_unit_dir)
endif

i18n.merge_file(input: 'rygel.desktop.in',
                output: 'rygel.desktop',
                po_dir : join_paths('..','po'),
                type: 'desktop',
                install : true,
                install_dir: join_paths(get_option('datadir'), 'applications'))

i18n.merge_file(input: 'rygel-preferences.desktop.in',
                output: 'rygel-preferences.desktop',
                po_dir : join_paths('..','po'),
                type: 'desktop',
                install : gtk.found(),
                install_dir: join_paths(get_option('datadir'), 'applications'))

subdir('presets')
subdir('xml')