xref: /dpdk/examples/vdpa/meson.build (revision 1b2798ee320657d7b6a2ba8ec1e1e949df62a18d)
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
9if not is_linux
10    build = false
11    subdir_done()
12endif
13
14deps += 'vhost'
15allow_experimental_apis = true
16sources = files(
17        'main.c',
18)
19cmd_h = custom_target('commands_hdr',
20        output: 'commands.h',
21        input: files('commands.list'),
22        capture: true,
23        command: [cmdline_gen_cmd, '--context-name=main_ctx', '@INPUT@']
24)
25sources += cmd_h
26