summaryrefslogtreecommitdiff
path: root/netplan/meson.build
blob: 1313cb40ebad6e19b87963b55ad4cf871129f717 (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
install_data('../src/netplan.script')
install_symlink(
    'netplan',
    pointing_to: '../share/netplan/netplan.script',
    install_dir: get_option('sbindir'))

netplan_sources = files(
    '__init__.py',
    '_features.py',
    'configmanager.py',
    'terminal.py')

cli_sources = files(
    'cli/__init__.py',
    'cli/core.py',
    'cli/ovs.py',
    'cli/sriov.py',
    'cli/utils.py')

commands_sources = files(
    'cli/commands/__init__.py',
    'cli/commands/apply.py',
    'cli/commands/generate.py',
    'cli/commands/get.py',
    'cli/commands/info.py',
    'cli/commands/ip.py',
    'cli/commands/migrate.py',
    'cli/commands/set.py',
    'cli/commands/try_command.py')

netplan_module = join_paths(get_option('datadir'), meson.project_name(), 'netplan')
install_data(netplan_sources, install_dir: netplan_module)
install_data(cli_sources, install_dir: join_paths(netplan_module, 'cli'))
install_data(commands_sources, install_dir: join_paths(netplan_module, 'cli', 'commands'))