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
|
plugins = [
'roof-read',
'roof-build',
]
roof_common_src = [
'ufo-roof-config.c',
]
roof_plugin_src = {
'roof-read': [
'ufo-roof-read-socket.c',
'ufo-roof-read-file.c',
],
'roof-build': [
'ufo-roof-buffer.c',
],
}
# standard plugins
foreach plugin: plugins
name = ''.join(plugin.split('-'))
sources = roof_common_src + [
'ufo-@0@-task.c'.format(plugin),
]
if plugin in roof_plugin_src
sources += roof_plugin_src[plugin]
endif
shared_module(name,
'ufo-@0@-task.c'.format(plugin),
dependencies: deps,
name_prefix: 'libufofilter',
install: true,
install_dir: plugin_install_dir,
sources: sources
)
endforeach
subdir('kernels')
|