xref: /openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/meson.build (revision 84f58c2d517721f46e362261a7010cee5a8bacac)
1hyp_default_busname = 'xyz.openbmc_project.Network.Hypervisor'
2
3configure_file(
4    input: 'xyz.openbmc_project.Network.Hypervisor.service.in',
5    output: 'xyz.openbmc_project.Network.Hypervisor.service',
6    configuration: {
7        'SYSTEMD_TARGET': 'multi-user.target',
8        'HYP_DEFAULT_NETWORK_BUSNAME': hyp_default_busname,
9    },
10    install: true,
11    install_dir: dependency('systemd').get_variable('systemd_system_unit_dir'),
12)
13
14hyp_src_includes = include_directories('.')
15
16hyp_networkd_lib = static_library(
17    'hyp-networkd',
18    'hyp_network_manager.cpp',
19    'hyp_sys_config.cpp',
20    'hyp_ethernet_interface.cpp',
21    implicit_include_directories: false,
22    include_directories: [src_includes, hyp_src_includes],
23    dependencies: networkd_deps,
24)
25
26executable(
27    'hyp-network-manager',
28    'hyp_network_manager_main.cpp',
29    link_with: hyp_networkd_lib,
30    implicit_include_directories: false,
31    dependencies: [networkd_dep, dependency('sdeventplus')],
32    install: true,
33    install_dir: get_option('bindir'),
34)
35