summaryrefslogtreecommitdiffstats
path: root/src/meson.build
blob: fd41361b30a49fcba5960d1d004630a319a996a9 (plain)
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
plugins = [
    'roof-build',
    'roof-filter',
    'roof-flat-field-correct'
]

roof_common_src = [
    'ufo-roof-config.c',
]

roof_plugin_src = {
 'roof-build': [
    'hw_sched.c',
    'hw_thread.c',
    'ufo-roof-read-socket.c',
    'ufo-roof-read-file.c',
    'ufo-roof-buffer.c',
 ],
 'roof-filter': [
 ],
}

# 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')