-
Notifications
You must be signed in to change notification settings - Fork 31
/
meson.build
41 lines (34 loc) · 1.04 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
36
37
38
39
40
41
project('cpupower-gui',
version: '1.0.0',
meson_version: '>= 0.58.0',
default_options: ['warning_level=2',
'systemddir=/usr/lib/systemd',
'pkla=false',
'use_libexec=false',
],
)
i18n = import('i18n')
application_id = 'org.rnd2.cpupower_gui'
name = meson.project_name()
conf = configuration_data()
conf.set_quoted('GETTEXT_PACKAGE', 'cpupower-gui')
conf.set_quoted('APPLICATION_ID', application_id)
# Common paths
prefix = get_option('prefix')
libexecdir = get_option('libexecdir')
libdir = get_option('libdir')
pkglibdir = join_paths(prefix, get_option('libdir'), name)
dbus_dir = join_paths(get_option('datadir'), 'dbus-1')
systemd_dir = get_option('systemddir')
pkgdatadir = join_paths(prefix, get_option('datadir'), name)
moduledir = join_paths(pkgdatadir, 'cpupower_gui')
use_libexec = get_option('use_libexec')
if use_libexec
helperdir = prefix / libexecdir / name
else
helperdir = prefix / libdir / name
endif
subdir('cpupower_gui')
subdir('data')
subdir('po')
meson.add_install_script('build-aux/meson/postinstall.py')