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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
panels_list += cappletname
desktop = 'gnome-@0@-panel.desktop'.format(cappletname)
desktop_in = configure_file(
input: desktop + '.in.in',
output: desktop + '.in',
configuration: desktop_conf
)
i18n.merge_file(
desktop,
type: 'desktop',
input: desktop_in,
output: desktop,
po_dir: po_dir,
install: true,
install_dir: control_center_desktopdir
)
deps = common_deps + [
libgvc_dep,
libxml_dep,
m_dep,
pulse_dep,
pulse_mainloop_dep,
dependency('gsound'),
]
cflags += [
'-DSOUND_DATA_DIR="@0@"'.format(join_paths(control_center_datadir, 'sounds')),
]
sources = files(
'cc-alert-chooser.c',
'cc-balance-slider.c',
'cc-device-combo-box.c',
'cc-fade-slider.c',
'cc-level-bar.c',
'cc-output-test-dialog.c',
'cc-profile-combo-box.c',
'cc-sound-button.c',
'cc-sound-panel.c',
'cc-speaker-test-button.c',
'cc-stream-list-box.c',
'cc-stream-row.c',
'cc-subwoofer-slider.c',
'cc-volume-slider.c',
)
resource_data = files(
'icons/audio-speaker-center-back.svg',
'icons/audio-speaker-center-back-testing.svg',
'icons/audio-speaker-center.svg',
'icons/audio-speaker-center-testing.svg',
'icons/audio-speaker-left-back.svg',
'icons/audio-speaker-left-back-testing.svg',
'icons/audio-speaker-left-side.svg',
'icons/audio-speaker-left-side-testing.svg',
'icons/audio-speaker-left.svg',
'icons/audio-speaker-left-testing.svg',
'icons/audio-speaker-mono.svg',
'icons/audio-speaker-mono-testing.svg',
'icons/audio-speaker-right-back.svg',
'icons/audio-speaker-right-back-testing.svg',
'icons/audio-speaker-right-side.svg',
'icons/audio-speaker-right-side-testing.svg',
'icons/audio-speaker-right.svg',
'icons/audio-speaker-right-testing.svg',
'icons/audio-speaker-testing.svg',
'cc-alert-chooser.ui',
'cc-balance-slider.ui',
'cc-device-combo-box.ui',
'cc-fade-slider.ui',
'cc-output-test-dialog.ui',
'cc-profile-combo-box.ui',
'cc-sound-button.ui',
'cc-sound-panel.ui',
'cc-speaker-test-button.ui',
'cc-stream-row.ui',
'cc-subwoofer-slider.ui',
'cc-volume-slider.ui',
)
sources += gnome.compile_resources(
'cc-' + cappletname + '-resources',
cappletname + '.gresource.xml',
c_name: 'cc_' + cappletname.underscorify (),
dependencies: resource_data,
export: true
)
panels_libs += static_library(
cappletname,
sources: sources,
include_directories: [top_inc, common_inc],
dependencies: deps,
c_args: cflags,
)
sound_data = files(
'sounds/bark.ogg',
'sounds/drip.ogg',
'sounds/glass.ogg',
'sounds/sonar.ogg'
)
install_data(
sound_data,
install_dir: join_paths(control_center_datadir, 'sounds', 'gnome', 'default', 'alerts')
)
|