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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
plugins_incs = [
top_inc,
plugins_inc
]
plugins_deps = [libtotem_dep]
plugins_cflags = common_flags + warn_flags + [
'-DG_LOG_DOMAIN="Totem"'
]
plugins_conf = configuration_data()
plugins_conf.set('GETTEXT_PACKAGE', meson.project_name())
allowed_plugins = [
'apple-trailers',
'autoload-subtitles',
'im-status',
'mpris',
'open-directory',
'opensubtitles',
'properties',
'pythonconsole',
'recent',
'rotation',
'samplepython',
'save-file',
'screensaver',
'screenshot',
'skipto',
'variable-rate',
'vimeo',
]
plugins = []
plugins_option = get_option('with-plugins')
if plugins_option != 'none'
plugins += [
'apple-trailers',
'autoload-subtitles',
'im-status',
'mpris',
'properties',
'recent',
'rotation',
'save-file',
'screensaver',
'screenshot',
'skipto',
'variable-rate',
'vimeo'
]
plugin_error = (plugins_option == 'all')
if have_python
plugins += [
'opensubtitles',
'pythonconsole',
'samplepython'
]
endif
if have_libportal
plugins += [
'open-directory'
]
endif
endif
pylint_flags = ['-d', 'C0111', '-d', 'W0511', '-d', 'F0401', '-d', 'C0326' ]
# FIXME: Move custom_target to i18n.merge_file when gettext acquires plugin support.
# http://lists.gnu.org/archive/html/bug-gettext/2017-06/msg00001.html
msgfmt_plugin_cmd = [
find_program('msgfmt'),
'--desktop',
'--keyword=Name',
'--keyword=Description',
'--template=@INPUT@',
'-d', po_dir,
'--output=@OUTPUT@'
]
foreach plugin: plugins
subdir(plugin)
endforeach
|