forked from bottlesdevs/Bottles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
44 lines (37 loc) · 895 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
40
41
42
43
44
project(
'bottles',
version: '51.17',
meson_version: '>= 1.5.0',
default_options: [
'warning_level=2',
],
license: 'GPL-3.0-only'
)
APP_NAME = 'Bottles'
DEVELOPER_ID = 'com.usebottles'
BASE_ID = DEVELOPER_ID + '.' + meson.project_name()
APP_ID = BASE_ID
APP_VERSION = meson.project_version()
_version_array = APP_VERSION.split('.')
APP_MAJOR_VERSION = _version_array[0]
APP_MINOR_VERSION = _version_array[1]
PROFILE = get_option('profile')
if PROFILE == 'development'
APP_VERSION += '-' + run_command(
'git', 'rev-parse', '--short', 'HEAD',
check: true
).stdout().strip()
APP_NAME += ' (Development)'
APP_ID += '.' + 'Devel'
endif
gnome = import('gnome')
i18n = import('i18n')
localedir = get_option('localedir')
subdir('po')
subdir('bottles')
subdir('data')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)