numam-dpdk/drivers/bus/vmbus/meson.build
David Marchand 84aaf06d81 bus/vmbus: make driver-only headers private
The vmbus bus interface is for drivers only.
Mark as internal and move the header in the driver headers list.

While at it, cleanup the code:
- fix indentation,
- remove unneeded reference to bus specific singleton object,
- remove unneeded list head structure type,
- reorder the definitions and macro manipulating the bus singleton object,
- remove inclusion of rte_bus.h and fix the code that relied on implicit
  inclusion,

Signed-off-by: David Marchand <david.marchand@redhat.com>
2022-09-23 16:14:34 +02:00

28 lines
572 B
Meson

# SPDX-License-Identifier: BSD-3-Clause
if is_windows
build = false
reason = 'not supported on Windows'
subdir_done()
endif
headers = files('rte_bus_vmbus.h','rte_vmbus_reg.h')
driver_sdk_headers = files('bus_vmbus_driver.h')
sources = files(
'vmbus_bufring.c',
'vmbus_channel.c',
'vmbus_common.c',
'vmbus_common_uio.c',
)
if is_linux
sources += files('linux/vmbus_bus.c',
'linux/vmbus_uio.c')
includes += include_directories('linux')
else
build = false
reason = 'only supported on Linux'
endif