-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
meson.build
46 lines (35 loc) · 1.21 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
42
43
44
45
46
project(
'security-privacy',
'vala', 'c',
meson_version: '>= 0.58.0',
version: '8.0.1'
)
gnome = import('gnome')
i18n = import('i18n')
gettext_name = 'io.elementary.settings.' + meson.project_name()
prefix = get_option('prefix')
datadir = prefix / get_option('datadir')
libdir = prefix / get_option('libdir')
switchboard_dep = dependency('switchboard-3')
switchboard_plugsdir = switchboard_dep.get_variable('plugsdir', pkgconfig_define: ['libdir', libdir])
pkgdatadir = switchboard_plugsdir / 'personal'
polkit_dep = dependency('polkit-gobject-1')
polkit_actiondir = polkit_dep.get_variable('actiondir', pkgconfig_define: ['prefix', prefix])
add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(gettext_name),
'-DG_LOG_DOMAIN="@0@"'.format(gettext_name),
language:'c'
)
configuration_data = configuration_data()
configuration_data.set('PKGDATADIR', pkgdatadir)
configuration_data.set('GETTEXT_PACKAGE', gettext_name)
configuration_data.set('LOCALEDIR', prefix / get_option('localedir'))
plug_resources = gnome.compile_resources(
'plug_resources',
'data/icons.gresource.xml',
source_dir: 'data'
)
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(glib_compile_schemas: true)