forked from GNOME/meld
-
Notifications
You must be signed in to change notification settings - Fork 121
/
meson.build
58 lines (45 loc) · 1.56 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
project(
'meld',
version: '3.21.2',
meson_version: '>= 0.49.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.20')
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 = 'org.gnome.Meld@0@'.format(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_pkgconfig_variable(
'schemasdir',
define_variable: ['datadir', datadir],
default: datadir / 'glib-2.0/schemas',
)
subdir('meld')
subdir('data')
subdir('help')
subdir('po')
install_data('bin/meld', install_dir: bindir)
meson.add_install_script('meson_post_install.py', get_option('byte-compile') ? python3.get_install_dir() : '')