-
Notifications
You must be signed in to change notification settings - Fork 270
/
meson.build
61 lines (49 loc) · 1.59 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
project(
'meld',
version: '3.22.0',
meson_version: '>= 1.2.0',
)
python = import('python')
i18n = import('i18n')
gnome = import('gnome')
python3 = python.find_installation('python3')
if not python3.found()
error('Python 3 is required to build and use Meld')
endif
# These requirements are kept in both `bin/meld` and `meson.build`. If you
# update one, update the other.
dependency('python3', version : '>= 3.6')
dependency('gtk+-3.0', version: '>= 3.22')
dependency('glib-2.0', version: '>= 2.48')
dependency('gtksourceview-4', version: '>= 4.0.0')
dependency('pygobject-3.0', version: '>= 3.30')
dependency('py3cairo', version: '>= 1.15.0')
profile = get_option('profile')
name_suffix = (profile == 'Devel' ? ' (Development Snapshot)' : '')
resource_base_id = 'org.gnome.Meld'
application_id_no_profile = 'org.gnome.Meld'
application_id = (profile == 'Devel' ? application_id_no_profile + '.' + profile : application_id_no_profile)
prefix = get_option('prefix')
bindir = get_option('bindir')
datadir = get_option('datadir')
localedir = get_option('localedir')
mandir = get_option('mandir')
icondir = datadir / 'icons'
pkgdatadir = datadir / meson.project_name()
itsdir = meson.current_source_dir() / 'gettext'
podir = meson.current_source_dir() / 'po'
gio_schemasdir = dependency('gio-2.0').get_variable(
pkgconfig: 'schemasdir',
pkgconfig_define: ['datadir', datadir],
default_value: datadir / 'glib-2.0/schemas',
)
subdir('bin')
subdir('meld')
subdir('data')
subdir('help')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)