forked from GNOME/meld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
76 lines (61 loc) · 1.96 KB
/
meson.build
File metadata and controls
76 lines (61 loc) · 1.96 KB
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
72
73
74
75
76
project(
'meld-fourdiff',
version : '0.0.5',
meson_version : '>= 1.2.0',
license : 'GPL-2.0-or-later',
license_files : ['COPYING'],
)
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')
is_devel = get_option('profile') == 'Devel'
name_suffix = (is_devel ? ' (Development Snapshot)' : '')
resource_base_id = 'org.gnome.Meld'
application_id_no_profile = 'org.gnome.Meld'
application_id = (is_devel ? application_id_no_profile + '.Devel' : application_id_no_profile)
is_wheel = get_option('is_wheel')
prefix = get_option('prefix')
bindir = get_option('bindir')
if not is_wheel
datadir = get_option('datadir')
localedir = get_option('localedir')
else
datadir = python3.get_install_dir(pure: true, subdir: 'meld') / 'share'
localedir = datadir / 'locale'
endif
icondir = datadir / 'icons'
pkgdatadir = datadir / 'meld'
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',
)
install_data('COPYING', install_dir: pkgdatadir)
subdir('bin')
subdir('meld')
subdir('data')
if not is_wheel
# gnome.yelp() doesn't have an option to set the install dir,
# so it can't be used to install in the wheel.
subdir('help')
endif
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)