-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
46 lines (40 loc) · 1000 Bytes
/
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 (
'services',
'vala', 'c',
version: '1.0.1'
)
gettext_name = meson.project_name () + '-plug'
gnome = import ('gnome')
i18n = import ('i18n')
add_global_arguments (
'-DGETTEXT_PACKAGE="@0@"'.format (gettext_name),
language:'c'
)
switchboard_dep = dependency ('switchboard-2.0')
polkit_dep = dependency ('polkit-gobject-1')
plug_files = files (
'src/Plug.vala',
'src/Utils.vala',
'src/Widgets/FilterBox.vala',
'src/Widgets/HelpBox.vala',
'src/Widgets/MainView.vala',
'src/Widgets/ServiceStatus.vala',
'src/Widgets/ServicesView.vala',
'src/Widgets/WaitingView.vala'
)
shared_module (
meson.project_name (),
plug_files,
dependencies: [
dependency ('gtk+-3.0'),
dependency ('gee-0.8'),
dependency ('granite'),
switchboard_dep,
polkit_dep,
meson.get_compiler ('vala').find_library ('posix')
],
install: true,
install_dir : join_paths (switchboard_dep.get_pkgconfig_variable ('plugsdir'), 'system')
)
subdir ('data')
subdir ('po')