summaryrefslogtreecommitdiffstats
path: root/staslib/meson.build
blob: 1642e0f30300e74cbaee22827bfdb78b577dd476 (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
49
50
51
52
# Copyright (c) 2021, Dell Inc. or its subsidiaries.  All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# See the LICENSE file for details.
#
# This file is part of NVMe STorage Appliance Services (nvme-stas).
#
# Authors: Martin Belanger <Martin.Belanger@dell.com>
#

files_to_configure = [ 'defs.py', '__init__.py', 'stafd.idl', 'stacd.idl' ]
configured_files = []
foreach file : files_to_configure
    configured_files += configure_file(
        input: file,
        output: file,
        configuration: conf
    )
endforeach

files_to_copy = [
    'avahi.py',
    'conf.py',
    'ctrl.py',
    'gutil.py',
    'iputil.py',
    'log.py',
    'nbft.py',
    'service.py',
    'singleton.py',
    'stas.py',
    'timeparse.py',
    'trid.py',
    'udev.py',
    'version.py'
]
copied_files = []
foreach file : files_to_copy
    copied_files += configure_file(
        input: file,
        output: file,
        copy: true,
    )
endforeach

files_to_install = copied_files + configured_files
python3.install_sources(
    files_to_install,
    pure: true,
    subdir: 'staslib',
)

packages_to_lint += meson.current_build_dir()