examples/vhost_scsi: disable build if missing dependency
[dpdk.git] / examples / vhost_scsi / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 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 if host_machine.system() != 'linux'
10         build = false
11 endif
12
13 if not cc.has_header('virtio_scsi.h')
14         build = false
15 endif
16
17 deps += 'vhost'
18 cflags += ['-D_FILE_OFFSET_BITS=64']
19 sources = files(
20         'scsi.c', 'vhost_scsi.c'
21 )