forked from GNOME/meld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
67 lines (54 loc) · 1.9 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
project(
'meld',
version: '3.21.0',
meson_version: '>=0.47.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')
if get_option('profile') == 'Devel'
name_suffix = ' (Development Snapshot)'
profile = 'Devel'
else
name_suffix = ''
profile = ''
endif
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 = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
libexecdir = join_paths(prefix, get_option('libexecdir'))
localedir = join_paths(prefix, get_option('localedir'))
mandir = join_paths(prefix, get_option('mandir'))
appdatadir = join_paths(datadir, 'metainfo')
desktopdir = join_paths(datadir, 'applications')
icondir = join_paths(datadir, 'icons')
mimedatadir = join_paths(datadir, 'mime', 'packages')
pkgdatadir = join_paths(datadir, meson.project_name())
schemadir = join_paths(datadir, 'glib-2.0', 'schemas')
itsdir = join_paths(meson.current_source_dir(), 'gettext')
podir = join_paths(meson.current_source_dir(), 'po')
subdir('meld')
subdir('data')
subdir('help')
subdir('po')
install_data('bin/meld', install_dir: bindir)
if get_option('byte-compile')
meson.add_install_script('meson_post_install.py', python3.get_install_dir())
else
meson.add_install_script('meson_post_install.py')
endif