841dfdd06d
Implement terminal handling, input polling, and vdprintf() for Windows. Because Windows I/O model differs fundamentally from Unix and there is no concept of character device, polling is simulated depending on the underlying input device. Supporting non-terminal input is useful for automated testing. Windows emulation of VT100 uses "ESC [ E" for newline instead of standard "ESC E", so add a workaround. Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
35 lines
742 B
Meson
35 lines
742 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
sources = files('cmdline.c',
|
|
'cmdline_cirbuf.c',
|
|
'cmdline_parse.c',
|
|
'cmdline_parse_etheraddr.c',
|
|
'cmdline_parse_ipaddr.c',
|
|
'cmdline_parse_num.c',
|
|
'cmdline_parse_portlist.c',
|
|
'cmdline_parse_string.c',
|
|
'cmdline_rdline.c',
|
|
'cmdline_socket.c',
|
|
'cmdline_vt100.c')
|
|
|
|
headers = files('cmdline.h',
|
|
'cmdline_parse.h',
|
|
'cmdline_parse_num.h',
|
|
'cmdline_parse_ipaddr.h',
|
|
'cmdline_parse_etheraddr.h',
|
|
'cmdline_parse_string.h',
|
|
'cmdline_rdline.h',
|
|
'cmdline_vt100.h',
|
|
'cmdline_socket.h',
|
|
'cmdline_cirbuf.h',
|
|
'cmdline_parse_portlist.h')
|
|
|
|
if is_windows
|
|
sources += files('cmdline_os_windows.c')
|
|
else
|
|
sources += files('cmdline_os_unix.c')
|
|
endif
|
|
|
|
deps += ['net']
|