-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
35 lines (28 loc) · 1.53 KB
/
meson.build
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
project('xfce4-alsa-plugin', 'vala', 'c', meson_version : '>= 0.37.0')
i18n = import('i18n')
vapi_dir = join_paths(meson.current_source_dir(), 'src/vapi')
add_project_arguments('--vapidir', vapi_dir, language : 'vala')
add_project_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language : 'c')
add_project_arguments('-DPACKAGE_NAME="@0@"'.format(meson.project_name()), language : 'c')
add_project_arguments('-DLOCALEDIR="@0@"'.format(join_paths(get_option('prefix'), get_option('localedir'))), language : 'c')
dependencies = [dependency('alsa'),
dependency('gtk+-3.0', version : '>= 3.20.0'),
dependency('libxfce4panel-2.0', version : '>= 4.13.0'),
meson.get_compiler('vala').find_library('config', dirs : vapi_dir)]
shared_library('alsa',
sources : ['src/alsamanager.vala',
'src/settings.vala',
'src/settingsdialog.vala',
'src/volumebutton.vala',
'src/volumepopup.vala',
'src/xfce4-alsa-plugin.vala'],
dependencies : dependencies,
install_dir : join_paths(get_option('libdir'), 'xfce4/panel/plugins'),
install : true)
i18n.merge_file(input : 'alsa.desktop.in',
output : 'alsa.desktop',
type : 'desktop',
po_dir : 'po',
install_dir : join_paths(get_option('datadir'), 'xfce4/panel/plugins'),
install : true)
subdir('po')