forked from rbribeiro/wingpanel-indicator-dropbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
57 lines (48 loc) · 1.52 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
53
54
55
56
57
# project name and programming language
project(
'com.github.rbribeiro.wingpanel-indicator-dropbox',
'vala', 'c',
version: '0.1.0'
)
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
gettext_name = meson.project_name() + '-indicator'
gnome = import('gnome')
i18n = import('i18n')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(gettext_name), language:'c')
asresources = gnome.compile_resources(
'as-resources', 'data/com.github.rbribeiro.wingpanel-indicator-dropbox.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
wingpanel_dep = dependency('wingpanel-2.0')
shared_module(
meson.project_name(),
'src/Indicator.vala',
'src/Widgets/PopoverWidget.vala',
'src/Widgets/StatusIndicator.vala',
'src/Widgets/RecentFiles.vala',
'src/Widgets/FileEntry.vala',
'src/Widgets/FileEntryList.vala',
'src/Widgets/SearchHeader.vala',
'src/Widgets/ServiceSwitcher.vala',
'src/Services/Dropbox.vala',
'src/Services/DirMonitor.vala',
asresources,
dependencies: [
dependency('gtk+-3.0'),
dependency('granite'),
dependency('json-glib-1.0'),
# dependency('glib-2.0'),
# dependency('gio-2.0'),
wingpanel_dep
],
install: true,
install_dir: wingpanel_dep.get_pkgconfig_variable('indicatorsdir')
)
#Install our .appdata.xml file so AppCenter will see it
install_data(
join_paths('data', meson.project_name() + '.appdata.xml'),
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
subdir('icons')