summaryrefslogtreecommitdiff
path: root/examples/vdpa
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-04-09 11:55:36 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-04-17 18:09:52 +0200
commitadf93ca564c73183e1c705cd7f35b98f3a660228 (patch)
tree43da96af2eb274a918071d2931ddfdab1b87a390 /examples/vdpa
parentb458c2927ab416fd7becfbc740ccfa53f0dfbdd1 (diff)
downloaddpdk-adf93ca564c73183e1c705cd7f35b98f3a660228.zip
dpdk-adf93ca564c73183e1c705cd7f35b98f3a660228.tar.gz
dpdk-adf93ca564c73183e1c705cd7f35b98f3a660228.tar.xz
build: increase readability via shortcut variables
Define variables for "is_linux", "is_freebsd" and "is_windows" to make the code shorter for comparisons and more readable. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'examples/vdpa')
-rw-r--r--examples/vdpa/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/vdpa/meson.build b/examples/vdpa/meson.build
index 2e38a06..73f129c 100644
--- a/examples/vdpa/meson.build
+++ b/examples/vdpa/meson.build
@@ -6,11 +6,11 @@
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-if host_machine.system() != 'linux'
+if not is_linux
build = false
endif
deps += 'vhost'
allow_experimental_apis = true
sources = files(
'main.c'
-) \ No newline at end of file
+)