mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06: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:
parent
53e8868d69
commit
dc4954943d
8 changed files with 79 additions and 60 deletions
|
@ -88,8 +88,11 @@ if get_option('parallels').allowed()
|
|||
block_ss.add(files('parallels.c', 'parallels-ext.c'))
|
||||
endif
|
||||
|
||||
block_ss.add(when: 'CONFIG_WIN32', if_true: files('file-win32.c', 'win32-aio.c'))
|
||||
block_ss.add(when: 'CONFIG_POSIX', if_true: [files('file-posix.c'), coref, iokit])
|
||||
if targetos == 'windows'
|
||||
block_ss.add(files('file-win32.c', 'win32-aio.c'))
|
||||
else
|
||||
block_ss.add(files('file-posix.c'), coref, iokit)
|
||||
endif
|
||||
block_ss.add(when: libiscsi, if_true: files('iscsi-opts.c'))
|
||||
if targetos == 'linux'
|
||||
block_ss.add(files('nvme.c'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue