xref: /dpdk/examples/ethtool/meson.build (revision cf59165dcbadfa2a3401106a263fc8e88143e736)
1e89335c0SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
2e89335c0SBruce Richardson# Copyright(c) 2018 Intel Corporation
3e89335c0SBruce Richardson
4e89335c0SBruce Richardson# meson file, for building this example as part of a main DPDK build.
5e89335c0SBruce Richardson#
6e89335c0SBruce Richardson# To build this example as a standalone application with an already-installed
7e89335c0SBruce Richardson# DPDK instance, use 'make'
8e89335c0SBruce Richardson
955bd294cSBruce Richardsonbuild = is_linux
103495a68fSBruce Richardsonif not build
113495a68fSBruce Richardson    subdir_done()
123495a68fSBruce Richardsonendif
133495a68fSBruce Richardson
14*cf59165dSBruce Richardsonsources = files(
15*cf59165dSBruce Richardson        'lib/rte_ethtool.c',
1655bd294cSBruce Richardson        'ethtool-app/ethapp.c',
17*cf59165dSBruce Richardson        'ethtool-app/main.c',
18*cf59165dSBruce Richardson)
1955bd294cSBruce Richardsonincludes = include_directories('lib', 'ethtool-app')
2055bd294cSBruce Richardson
2155bd294cSBruce Richardsondeps += 'bus_pci'
22a8d0d473SBruce Richardsonif dpdk_conf.has('RTE_NET_IXGBE')
23a20b2c01SBruce Richardson    deps += 'net_ixgbe'
2455bd294cSBruce Richardsonendif
2555bd294cSBruce Richardson
2655bd294cSBruce Richardsonallow_experimental_apis = true
27