-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
57 lines (47 loc) · 1.4 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
project(
'loupe',
'rust',
version: '48.alpha',
meson_version: '>= 0.59.0',
default_options: [
'warning_level=2',
],
)
i18n = import('i18n')
gnome = import('gnome')
dependency('gtk4', version: '>=4.15.3')
dependency('libadwaita-1', version: '>=1.6.alpha')
dependency('gweather4', version: '>=4.0.0')
# Required by glycin crate
dependency('lcms2', version: '>=2.12.0')
dependency('libseccomp', version: '>= 2.5.0')
# Optional dependencies
gtk4_x11 = dependency('gtk4-x11', required: get_option('x11'))
cargo = find_program('cargo', required: true)
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
version_suffix = ''
if get_option('profile') != 'release'
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
else
version_suffix = '-@0@'.format(vcs_tag)
endif
endif
prefix = get_option('prefix')
app_id = 'org.gnome.Loupe@0@'.format(get_option('app_id_suffix'))
profile = get_option('profile')
version = meson.project_version() + version_suffix
localedir = prefix / get_option('localedir')
bindir = prefix / get_option('bindir')
datadir = prefix / get_option('datadir')
pkgdatadir = datadir / meson.project_name()
subdir('data')
subdir('help')
subdir('src')
subdir('po')
gnome.post_install(
gtk_update_icon_cache: true,
update_desktop_database: true,
glib_compile_schemas: true,
)