mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
meson: remove CONFIG_POSIX and CONFIG_WIN32 from config_targetos
For consistency with other OSes, use if...endif for rules that are target-independent. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@ -12,20 +12,22 @@ chardev_ss.add(files(
|
||||
'char-udp.c',
|
||||
'char.c',
|
||||
))
|
||||
chardev_ss.add(when: 'CONFIG_POSIX', if_true: [files(
|
||||
'char-fd.c',
|
||||
'char-pty.c',
|
||||
), util])
|
||||
if targetos in ['linux', 'gnu/kfreebsd', 'freebsd', 'dragonfly']
|
||||
chardev_ss.add(files('char-parallel.c'))
|
||||
if targetos == 'windows'
|
||||
chardev_ss.add(files(
|
||||
'char-console.c',
|
||||
'char-win-stdio.c',
|
||||
'char-win.c',
|
||||
))
|
||||
else
|
||||
chardev_ss.add(files(
|
||||
'char-fd.c',
|
||||
'char-pty.c',
|
||||
), util)
|
||||
if targetos in ['linux', 'gnu/kfreebsd', 'freebsd', 'dragonfly']
|
||||
chardev_ss.add(files('char-parallel.c'))
|
||||
endif
|
||||
endif
|
||||
|
||||
chardev_ss.add(when: 'CONFIG_WIN32', if_true: files(
|
||||
'char-console.c',
|
||||
'char-win-stdio.c',
|
||||
'char-win.c',
|
||||
))
|
||||
|
||||
chardev_ss = chardev_ss.apply(config_targetos, strict: false)
|
||||
|
||||
system_ss.add(files(
|
||||
|
Reference in New Issue
Block a user