-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
meson.build
71 lines (59 loc) · 1.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
project(
'slingshot',
'vala', 'c',
version : '8.0.0',
meson_version: '>=0.58.0'
)
i18n = import('i18n')
gnome = import('gnome')
add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
language: 'c'
)
asresources = gnome.compile_resources(
'as-resources', 'data/icons.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
prefix = get_option('prefix')
datadir = prefix / get_option('datadir')
libdir = prefix / get_option('libdir')
add_project_arguments(
'-DPKGDATADIR="@0@"'.format(libdir / 'wingpanel'),
language: 'c'
)
pluginsdir = libdir / 'io.elementary.wingpanel.applications-menu'
add_project_arguments(
'-DPLUGINSDIR="@0@"'.format(pluginsdir),
language: 'c'
)
glib_dep = dependency('glib-2.0')
gee_dep = dependency('gee-0.8')
gio_dep = dependency('gio-2.0')
gtk_dep = dependency('gtk+-3.0')
granite_dep = dependency('granite', version: '>=6.1.0')
gobject_dep = dependency('gobject-2.0')
libsoup_dep = dependency('libsoup-2.4')
gio_unix_dep = dependency('gio-unix-2.0')
json_glib_dep = dependency('json-glib-1.0')
switchboard_dep = dependency('switchboard-3')
libhandy_dep = dependency('libhandy-1', version: '>= 0.83.0')
wingpanel_dep = dependency('wingpanel', version: '>=2.1.0')
posix_dep = meson.get_compiler('vala').find_library('posix')
zeitgeist_dep = []
if get_option('with-zeitgeist')
zeitgeist_dep = dependency('zeitgeist-2.0')
add_project_arguments('--define=HAVE_ZEITGEIST', language: 'vala')
endif
config_data = configuration_data()
config_data.set_quoted('LOCALEDIR', prefix / get_option('localedir'))
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_file = configure_file(
input: 'src/Config.vala.in',
output: '@BASENAME@',
configuration: config_data
)
subdir('src')
subdir('data')
subdir('po')
gnome.post_install(glib_compile_schemas: true)