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
|
project('paprefs', 'cpp',
license: 'GPL2+',
version: '1.1',
meson_version: '>=0.40.1'
)
mailing_list = 'pulseaudio-discuss (at) lists (dot) freedesktop (dot) org'
homepage = 'http://freedesktop.org/software/pulseaudio/paprefs/'
with_lynx = get_option('lynx')
i18n = import('i18n')
gtkmm = dependency('gtkmm-3.0')
giomm = dependency('giomm-2.4', version: '>= 2.26')
sigc = dependency('sigc++-2.0')
libpulse = dependency('libpulse')
lynx = find_program('lynx', required: with_lynx)
tidy = find_program('tidy', required: false)
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
localedir = join_paths(prefix, get_option('localedir'))
datadir = join_paths(prefix, get_option('datadir'))
pkgdatadir = join_paths(datadir, meson.project_name())
conf = configuration_data()
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('GLADE_FILE', join_paths(pkgdatadir, 'paprefs.glade'))
conf.set_quoted('LOCALEDIR', localedir)
conf.set_quoted('MODDIR', libpulse.get_pkgconfig_variable('modlibexecdir'))
# Needs fixing on some borked OS
conf.set_quoted('SHREXT', '.so')
configure_file(
output : 'config.h',
configuration : conf
)
common_flags = [
'-DHAVE_CONFIG_H',
]
add_project_arguments(common_flags, language: 'cpp')
configuration_inc = include_directories('.')
subdir('src')
subdir('po')
subdir('doc')
|