forked from elementary/greeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
38 lines (30 loc) · 934 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
project(
'io.elementary.greeter',
'vala', 'c',
version: '5.0.2',
meson_version: '>= 0.49.0'
)
gnome = import('gnome')
i18n = import('i18n')
ubuntu_patched_gsd = get_option('ubuntu-patched-gsd')
add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')], language: 'vala')
if ubuntu_patched_gsd
add_project_arguments(['--define', 'UBUNTU_PATCHED_GSD'], language: 'vala')
endif
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), 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('src')
subdir('compositor')
subdir('data')
subdir('po')
vapigen = find_program('vapigen', required: false)
if vapigen.found()
subdir('vapi')
endif