forked from Dirli/wingpanel-indicator-cpufreq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
39 lines (33 loc) · 904 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
project (
'powersave',
['c', 'vala'],
version: '0.0.3',
)
gettext_name = meson.project_name () + '-indicator'
i18n = import ('i18n')
add_global_arguments (
'-DGETTEXT_PACKAGE="@0@"'.format (gettext_name),
language:'c'
)
wingpanel_dep = dependency ('wingpanel')
shared_library (
meson.project_name (),
'src/Indicator.vala',
'src/Utils.vala',
'src/Widgets/PanelWidget.vala',
'src/Widgets/PopoverWidget.vala',
dependencies: [
dependency ('glib-2.0', version: '>= 2.46.0'),
dependency ('gobject-2.0'),
dependency ('granite'),
dependency ('gtk+-3.0', version: '>=3.18'),
dependency ('polkit-gobject-1'),
wingpanel_dep,
meson.get_compiler ('vala').find_library ('posix'),
],
install: true,
install_dir: wingpanel_dep.get_pkgconfig_variable ('indicatorsdir'),
)
subdir ('data')
subdir ('po')
meson.add_install_script ('meson/meson_post_install.py')