-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmeson.build
More file actions
76 lines (60 loc) · 2.02 KB
/
meson.build
File metadata and controls
76 lines (60 loc) · 2.02 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
project('ssh-studio', 'c',
version: '1.3.1',
license: 'GPL-3.0-or-later',
meson_version: '>= 0.60.0',
default_options: [
'warning_level=2',
'buildtype=debugoptimized',
])
python = import('python')
python_installation = python.find_installation('python3', required: true)
gnome = import('gnome')
gtksource_dep = dependency('gtksourceview-5', version: '>= 5.0.0')
application_id = 'io.github.BuddySirJava.SSH-Studio'
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'ssh_studio')
i18n = import('i18n')
subdir('po')
subdir('src')
subdir('data')
if get_option('install_desktop_file')
install_data(
join_paths(meson.current_source_dir(), 'data', application_id + '.desktop'),
install_dir: join_paths(get_option('datadir'), 'applications')
)
endif
conf = configuration_data()
conf.set('PYTHON', python_installation.path())
conf.set('pkgdatadir', pkgdatadir)
configure_file(
input: 'data/ssh-studio.in',
output: 'ssh-studio',
configuration: conf,
install: true,
install_dir: get_option('bindir'),
install_mode: 'rwxr-xr-x'
)
if get_option('install_icons')
icon_sizes = ['128', '256', '512']
icon_extensions = ['png', 'png', 'png']
foreach i : range(icon_sizes.length())
size = icon_sizes[i]
ext = icon_extensions[i]
install_data(
join_paths(meson.current_source_dir(), 'data', 'media', 'icon_' + size + '.' + ext),
rename: application_id + '.' + ext,
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', size + 'x' + size, 'apps')
)
endforeach
install_data(
join_paths(meson.current_source_dir(), 'data', 'media', 'icon.svg'),
rename: application_id + '.svg',
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps')
)
endif
if get_option('install_metainfo')
install_data(
join_paths(meson.current_source_dir(), 'data', application_id + '.metainfo.xml'),
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
endif