-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
39 lines (32 loc) · 1015 Bytes
/
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
project('stox', 'rust',
version : '0.1',
default_options : ['warning_level=3'])
gnome = import('gnome')
i18n = import('i18n')
gtk4 = dependency('gtk4')
cargo = find_program('cargo', required: true)
desktop_file_validate = find_program('desktop-file-validate', required: false)
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
localedir = prefix / get_option('localedir')
datadir = prefix / get_option('datadir')
iconsdir = datadir / 'icons'
pkgdatadir = datadir / meson.project_name()
podir = meson.project_source_root () / 'po'
gettext_package = meson.project_name()
if get_option('profile') == 'development'
profile = 'Devel'
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
else
version_suffix = '-@0@'.format (vcs_tag)
endif
else
profile = ''
version_suffix = ''
endif
subdir('data')
subdir('po')
subdir('src')