-
Notifications
You must be signed in to change notification settings - Fork 22
/
meson.build
61 lines (52 loc) · 1.15 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
52
53
54
55
56
57
58
59
60
61
# gtklock
# Copyright (c) 2023 Jianhua Lu, Jovan Lanik, Zephyr Lykos
project(
'gtklock', 'c',
version : '4.0.0',
license : 'GPLv3',
default_options : ['c_std=c11']
)
version = meson.project_version().split('.')
major_version = version[0]
minor_version = version[1]
micro_version = version[2]
gtk = dependency('gtk+-3.0')
gtk_session_lock = dependency('gtk-session-lock-0')
gmodule_export = dependency('gmodule-export-2.0')
pam = dependency('pam')
dependencies = [
gtk,
gtk_session_lock,
gmodule_export,
pam,
]
subdir('po')
subdir('man')
subdir('res')
subdir('src')
gtklock_set = [
gtklock_sources,
ui_resources,
]
if import('fs').is_absolute(get_option('libdir'))
libdir = get_option('libdir')
else
libdir = get_option('prefix') / get_option('libdir')
endif
executable(
meson.project_name(),
gtklock_set,
include_directories : 'include',
dependencies : dependencies,
c_args : [
'-DLIBDIR=' + libdir,
'-DMAJOR_VERSION=' + major_version,
'-DMINOR_VERSION=' + minor_version,
'-DMICRO_VERSION=' + micro_version,
],
install : true
)
install_data(
'pam/gtklock',
install_dir : get_option('sysconfdir') / 'pam.d'
)