f-stack/dpdk/drivers/net/failsafe/meson.build

30 lines
582 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
2022-09-06 04:00:10 +00:00
if is_windows
build = false
reason = 'not supported on Windows'
subdir_done()
endif
2019-06-25 11:12:58 +00:00
cflags += '-std=gnu99'
cflags += '-D_DEFAULT_SOURCE'
cflags += '-D_XOPEN_SOURCE=700'
cflags += '-pedantic'
2020-06-18 16:55:50 +00:00
if is_linux
2022-09-06 04:00:10 +00:00
cflags += '-DLINUX'
2019-06-25 11:12:58 +00:00
else
2022-09-06 04:00:10 +00:00
cflags += '-DBSD'
2019-06-25 11:12:58 +00:00
endif
2022-09-06 04:00:10 +00:00
sources = files(
'failsafe.c',
'failsafe_args.c',
'failsafe_eal.c',
'failsafe_ether.c',
'failsafe_flow.c',
'failsafe_intr.c',
'failsafe_ops.c',
'failsafe_rxtx.c',
)