-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathmeson.build
51 lines (43 loc) · 1.04 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
51
project(
'playerctl',
'c',
version: '2.4.1',
meson_version: '>=0.56.0'
)
release_date = 'September 21, 2021'
gnome = import('gnome')
pkgconfig = import('pkgconfig')
datadir = get_option('datadir')
bindir = get_option('bindir')
prefix = get_option('prefix')
version_conf = configuration_data()
playerctl_version = meson.project_version().split('-')[0]
version_array = playerctl_version.split('.')
playerctl_major_version = version_array[0]
version_conf.set(
'PLAYERCTL_VERSION',
meson.project_version(),
)
version_conf.set(
'PLAYERCTL_MAJOR_VERSION',
playerctl_major_version.to_int(),
)
version_conf.set(
'PLAYERCTL_MINOR_VERSION',
version_array[1].to_int(),
)
version_conf.set(
'PLAYERCTL_MICRO_VERSION',
version_array[2].to_int(),
)
version_conf.set(
'PLAYERCTL_RELEASE_DATE',
release_date,
)
gobject_dep = dependency('gobject-2.0', version: '>=2.38')
gio_dep = dependency('gio-unix-2.0')
glib_dep = dependency('glib-2.0')
bash_comp = dependency('bash-completion', required: false)
subdir('playerctl')
subdir('data')
subdir('doc')