-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmeson.build
38 lines (28 loc) · 945 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
project('io.elementary.upgrade', 'vala', 'c')
add_global_arguments('-DGETTEXT_PACKAGE="' + meson.project_name() + '"', language:'c')
i18n = import('i18n')
gettext_name = meson.project_name()
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
pkgdatadir = join_paths(datadir, meson.project_name())
granite_dep = dependency('granite')
gtk_dep = dependency('gtk+-3.0')
polkit_dep = dependency('polkit-gobject-1')
posix_dep = meson.get_compiler('vala').find_library('posix')
polkit_actiondir = polkit_dep.get_pkgconfig_variable('actiondir', define_variable: ['prefix', prefix])
app_dependencies = [
granite_dep,
gtk_dep,
polkit_dep,
posix_dep,
]
daemon_dependencies = [
polkit_dep,
posix_dep,
]
configuration_data = configuration_data()
configuration_data.set('PKGDATADIR', pkgdatadir)
configuration_data.set('GETTEXT_PACKAGE', gettext_name)
subdir('data')
subdir('src')
subdir('po')