-
Notifications
You must be signed in to change notification settings - Fork 97
/
meson.build
39 lines (34 loc) · 1.23 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
project('video-downloader',
version: '0.12.18',
meson_version: '>= 0.62.0',
default_options: ['warning_level=2', 'werror=false'],
)
python_sources_for_linting = []
i18n = import('i18n')
gnome = import('gnome')
python = import('python').find_installation('python3')
python_for_linting = import('python').find_installation('python3',
modules: ['flake8'],
required: false,
)
create_gresource_aux = meson.current_source_dir() / 'build-aux' / 'meson' / 'create-gresource.py'
python_sources_for_linting += create_gresource_aux
extract_xml_aux = meson.current_source_dir() / 'build-aux' / 'meson' / 'extract-xml.py'
python_sources_for_linting += extract_xml_aux
merge_xml_aux = meson.current_source_dir() / 'build-aux' / 'meson' / 'merge-xml.py'
python_sources_for_linting += merge_xml_aux
move_aux = meson.current_source_dir() / 'build-aux' / 'meson' / 'move.py'
python_sources_for_linting += move_aux
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)
if (python_for_linting.found() and python_sources_for_linting.length() > 0)
test('Lint python sources', python_for_linting,
args: ['-m', 'flake8', python_sources_for_linting],
)
endif