-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmeson.build
50 lines (40 loc) · 1.13 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
project('addwater',
version: '1.2.6',
meson_version: '>= 1.1',
default_options: [ 'warning_level=2', 'werror=false', ],
)
i18n = import('i18n')
gnome = import('gnome')
python = import('python')
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
# Get profile and if user release, disable ALL testing options
profile = get_option('profile')
if profile == 'default'
app_id = 'dev.qwery.AddWater'
mock_api = false
force_bg = false
elif profile =='development'
app_id = 'dev.qwery.AddWater.Devel'
mock_api = get_option('use-mock-api')
force_bg = get_option('force-background')
endif
conf = configuration_data({
'PYTHON' : python.find_installation('python3').full_path(),
'VERSION' : meson.project_version(),
'APP_ID' : app_id,
'PREFIX' : '/dev/qwery/AddWater',
'PROFILE': profile,
'localedir' : get_option('prefix') / get_option('localedir'),
'pkgdatadir': pkgdatadir
})
conf.set('MOCK_API', mock_api)
conf.set('FORCE_BG', force_bg)
subdir('data')
subdir('po')
subdir('src')
# subdir('build-aux')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)