-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
54 lines (46 loc) · 1.23 KB
/
meson.build
File metadata and controls
54 lines (46 loc) · 1.23 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
project('norka',
version: '0.1.0',
meson_version: '>= 1.0.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
author = 'tenderowl'
domain = 'com'
gitrepo = 'https://github.com/'+author+'/'+meson.project_name()
website = 'https://tenderowl.com'
app_id = '.'.join([domain, author, meson.project_name()])
i18n = import('i18n')
gnome = import('gnome')
pymod = import('python')
python = pymod.find_installation('python3')
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
moduledir = pkgdatadir / meson.project_name()
gnome = import('gnome')
pythondir = get_option('prefix') / python.get_install_dir()
if get_option('profile') == 'development'
profile = 'Devel'
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
else
profile = ''
version_suffix = ''
endif
app_version = meson.project_version()
subdir('bin')
subdir('data')
subdir('po')
install_subdir(
meson.project_name(),
install_dir: pythondir
)
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)