2019-06-25 11:12:58 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2018 Intel Corporation
|
|
|
|
|
|
|
|
# meson file, for building this example as part of a main DPDK build.
|
|
|
|
#
|
|
|
|
# To build this example as a standalone application with an already-installed
|
|
|
|
# DPDK instance, use 'make'
|
|
|
|
|
2019-11-23 08:13:38 +00:00
|
|
|
deps += ['power']
|
|
|
|
|
2021-02-05 08:48:47 +00:00
|
|
|
if dpdk_conf.has('RTE_NET_BNXT')
|
2022-09-06 04:00:10 +00:00
|
|
|
deps += ['net_bnxt']
|
2019-06-25 11:12:58 +00:00
|
|
|
endif
|
|
|
|
|
2021-02-05 08:48:47 +00:00
|
|
|
if dpdk_conf.has('RTE_NET_I40E')
|
2022-09-06 04:00:10 +00:00
|
|
|
deps += ['net_i40e']
|
2019-06-25 11:12:58 +00:00
|
|
|
endif
|
|
|
|
|
2021-02-05 08:48:47 +00:00
|
|
|
if dpdk_conf.has('RTE_NET_IXGBE')
|
2022-09-06 04:00:10 +00:00
|
|
|
deps += ['net_ixgbe']
|
2019-06-25 11:12:58 +00:00
|
|
|
endif
|
|
|
|
|
2021-02-05 08:48:47 +00:00
|
|
|
allow_experimental_apis = true
|
2019-06-25 11:12:58 +00:00
|
|
|
sources = files(
|
2022-09-06 04:00:10 +00:00
|
|
|
'channel_manager.c',
|
|
|
|
'channel_monitor.c',
|
|
|
|
'main.c',
|
|
|
|
'parse.c',
|
|
|
|
'power_manager.c',
|
|
|
|
'vm_power_cli.c',
|
2019-06-25 11:12:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# If we're on X86, pull in the x86 code for the branch monitor algo.
|
|
|
|
if dpdk_conf.has('RTE_ARCH_X86_64')
|
2022-09-06 04:00:10 +00:00
|
|
|
sources += files('oob_monitor_x86.c')
|
2019-06-25 11:12:58 +00:00
|
|
|
else
|
2022-09-06 04:00:10 +00:00
|
|
|
sources += files('oob_monitor_nop.c')
|
2019-06-25 11:12:58 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
opt_dep = cc.find_library('virt', required : false)
|
|
|
|
build = opt_dep.found()
|
|
|
|
ext_deps += opt_dep
|
|
|
|
|
2022-09-02 04:40:05 +00:00
|
|
|
opt_dep = dependency('jansson', required : false, method: 'pkg-config')
|
2019-06-25 11:12:58 +00:00
|
|
|
if opt_dep.found()
|
2022-09-06 04:00:10 +00:00
|
|
|
ext_deps += opt_dep
|
|
|
|
cflags += '-DUSE_JANSSON'
|
2019-06-25 11:12:58 +00:00
|
|
|
endif
|