-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
meson.build
61 lines (49 loc) · 1.53 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
project(
'io.elementary.greeter',
'vala', 'c',
version: '8.0.0',
meson_version: '>= 0.58.0'
)
gnome = import('gnome')
i18n = import('i18n')
vala = meson.get_compiler('vala')
conf_data = configuration_data()
conf_data.set('CONF_DIR', join_paths(get_option('sysconfdir'), 'lightdm'))
conf_data.set('GETTEXT_PACKAGE', meson.project_name())
conf_data.set('LOCALE_DIR', join_paths(get_option('prefix'), get_option('localedir')))
gsd_dir = get_option('gsd-dir')
if gsd_dir == ''
gsd_dir = join_paths(get_option('prefix'), get_option('libexecdir') + '/')
endif
message('Path to gnome-settings-daemon: ' + gsd_dir)
conf_data.set('GSD_DIR', gsd_dir)
conf_data.set('VERSION', meson.project_version())
config_header = configure_file (
input: 'config.vala.in',
output: 'config.vala',
configuration: conf_data
)
add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')], language: 'vala')
add_global_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
'-DGNOME_DESKTOP_USE_UNSTABLE_API',
language:'c'
)
greeter_resources = gnome.compile_resources(
'greeter-resources', 'data/greeter.gresource.xml',
source_dir: 'data'
)
compositor_resources = gnome.compile_resources(
'compositor-resources', 'data/compositor.gresource.xml',
source_dir: 'data'
)
subdir('protocol')
subdir('src')
subdir('compositor')
subdir('data')
subdir('po')
vapigen = find_program('vapigen', required: false)
if vapigen.found()
subdir('vapi')
endif
gnome.post_install(glib_compile_schemas: true)