examples/power: fix FreeBSD meson lib dependency
[dpdk.git] / examples / vm_power_manager / guest_cli / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
3
4 # meson file, for building this example as part of a main DPDK build.
5 #
6 # To build this example as a standalone application with an already-installed
7 # DPDK instance, use 'make'
8
9 # Setting the name here because the default name will conflict with the
10 # vm_power_manager app because of the way the directories are parsed.
11 name = 'guest_cli'
12
13 if not dpdk_conf.has('RTE_LIBRTE_POWER')
14         build = false
15         subdir_done()
16 endif
17
18 deps += ['power']
19
20 sources = files(
21         'main.c', 'parse.c', 'vm_power_cli_guest.c'
22 )
23
24 opt_dep = cc.find_library('virt', required : false)
25 build = opt_dep.found()
26 ext_deps += opt_dep