forked from elementary/greeter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
47 lines (38 loc) · 913 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
45
46
47
project(
'com.paysonwallach.portico',
'vala', 'c',
version: '5.0.4',
meson_version: '>= 0.49.0'
)
gnome = import('gnome')
i18n = import('i18n')
vapi_dir = join_paths(meson.current_source_dir(), 'vapi')
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'
)
add_project_arguments([
'-DG_LOG_DOMAIN="@0@"'.format(meson.project_name()),
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name())
],
language:'c'
)
add_project_arguments(
['--vapidir', vapi_dir],
language: 'vala'
)
subdir('src')
subdir('compositor')
subdir('data')
subdir('po')
vapigen = find_program('vapigen', required: false)
if vapigen.found()
subdir('vapi')
endif
meson.add_install_script('meson/post_install.py')