-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
47 lines (36 loc) · 1.29 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
project(
'meld',
version: '3.21.0',
meson_version: '>=0.47.0',
)
application_id = 'org.gnome.meld'
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
dependency('gtk+-3.0', version: '>= 3.20')
dependency('glib-2.0', version: '>= 2.48')
dependency('gtksourceview-4', version: '>= 4.0.0')
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)
meson.add_install_script('meson_post_install.py')