-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
executable file
·45 lines (37 loc) · 1 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
project('flow', version: '0.1.0',)
fs = import('fs')
profile = get_option('profile')
app_name = 'Flow'
app_id = 'com.github.essmehdi.flow'
v_suffix = ''
if profile == 'development'
app_name = app_name + ' (Devel)'
app_id = app_id + '.devel'
if fs.is_dir('.git')
git_rev = run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip()
if git_rev != ''
v_suffix = '-@0@'.format(git_rev)
endif
endif
endif
pymod = import('python')
pymod.find_installation('python3')
dependency('gtk4')
dependency('libadwaita-1')
dependency('libcurl')
# Separate release data from devel data
suffix = ''
if profile == 'development'
suffix = '-devel'
endif
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name() + suffix)
moduledir = join_paths(pkgdatadir, 'flow')
subdir('resources')
subdir('flow')
subdir('extension')
subdir('po')
import('gnome').post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true
)