-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
67 lines (55 loc) · 1.38 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(
'catfish',
version: '4.18.0',
meson_version: '>= 0.59.0'
)
gnome = import('gnome')
i18n = import('i18n')
python = import('python')
python3_required_modules = ['dbus', 'gi', 'pexpect']
python3 = python.find_installation(
'python3',
modules: python3_required_modules,
)
if not python3.language_version().version_compare('>= 3.7')
error('Python 3.7 or newer is required.')
endif
# Declare runtime dependency versions here to make packaging more obvious
dependency('gdk-3.0')
dependency('gdk-pixbuf-2.0')
dependency('glib-2.0')
dependency('gobject-2.0')
dependency('gtk+-3.0', version: '>= 3.10.0')
dependency('libxfconf-0')
dependency('pango')
dependency('zeitgeist-2.0', required: false)
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
datadir = prefix / get_option('datadir')
pkgdatadir = datadir / meson.project_name()
subdir('bin')
subdir('catfish')
subdir('catfish_lib')
subdir('data')
subdir('po')
desktop_file = i18n.merge_file(
input: 'org.xfce.Catfish.desktop.in',
output: '@BASENAME@',
type: 'desktop',
po_dir: meson.project_source_root() / 'po',
install: true,
install_dir: datadir / 'applications',
)
install_man('catfish.1')
doc_files = [
'NEWS',
'README.md',
]
install_data(
doc_files,
install_dir: datadir / 'doc' / meson.project_name(),
)
gnome.post_install(
gtk_update_icon_cache: true,
update_desktop_database: true,
)