-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
32 lines (26 loc) · 842 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
project('snapshot-explorer', ['c', 'vala'],
version: '0.1.0',
meson_version: '>= 0.51.0',
default_options: [
'warning_level=2',
],
)
vapi_dir = meson.current_source_dir() / 'vapi'
add_project_arguments(['--vapidir', vapi_dir, '--enable-experimental-non-null'],
language: 'vala')
if get_option('flatpak')
add_project_arguments('-D', 'FLATPAK', language: 'vala')
endif
i18n = import('i18n')
add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language: 'c'
)
subdir('data')
subdir('src')
subdir('po')
if get_option('enable-nautilus-extension') and get_option('flatpak')
warning('The Nautilus extension cannot run under Flatpak, skipping.')
elif get_option('enable-nautilus-extension')
subdir('nautilus')
endif
meson.add_install_script('build-aux/meson/postinstall.py')