-
Notifications
You must be signed in to change notification settings - Fork 17
/
meson.build
52 lines (45 loc) · 1.58 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
47
48
49
50
51
52
project('com.github.plugarut.wingpanel-indicator-sys-monitor', 'vala', 'c')
gettext_name = meson.project_name() + '-indicator'
gnome = import('gnome')
i18n = import('i18n')
add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')], language: 'vala')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(gettext_name), language:'c')
wingpanel_dep = dependency('wingpanel-2.0')
shared_module(
meson.project_name(),
'src/Indicator.vala',
'src/Services/BackgroundManager.vala',
'src/Services/CPU.vala',
'src/Services/Net.vala',
'src/Services/Memory.vala',
'src/Services/System.vala',
'src/Services/Utils.vala',
'src/Services/Settings.vala',
'src/Widgets/PopoverWidget.vala',
'src/Widgets/MainView.vala',
'src/Widgets/MainViewRow.vala',
'src/Widgets/SettingsView.vala',
'src/Widgets/DisplayWidget.vala',
'src/Widgets/SysGraph.vala',
link_args : ['-lm', '-nostartfiles'],
name_prefix: '',
dependencies: [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('granite'),
dependency('gtk+-3.0'),
dependency('libgtop-2.0'),
wingpanel_dep
],
vala_args: [
'--vapidir=' + meson.source_root() + '/vapi/',
],
install: true,
install_dir : wingpanel_dep.get_pkgconfig_variable('indicatorsdir')
)
install_data(
'schemas/com.github.plugarut.wingpanel-indicator-sys-monitor.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
)
subdir('po')
meson.add_install_script('meson/post_install.py')