mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
meson: remove OS definitions from config_targetos
CONFIG_DARWIN, CONFIG_LINUX and CONFIG_BSD are used in some rules, but only CONFIG_LINUX has substantial use. Convert them all to if...endif. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e7c22ff87a
commit
53e8868d69
15 changed files with 57 additions and 42 deletions
|
@ -13,8 +13,11 @@ fs_ss.add(files(
|
|||
'coth.c',
|
||||
'coxattr.c',
|
||||
))
|
||||
fs_ss.add(when: 'CONFIG_LINUX', if_true: files('9p-util-linux.c'))
|
||||
fs_ss.add(when: 'CONFIG_DARWIN', if_true: files('9p-util-darwin.c'))
|
||||
if targetos == 'darwin'
|
||||
fs_ss.add(files('9p-util-darwin.c'))
|
||||
elif targetos == 'linux'
|
||||
fs_ss.add(files('9p-util-linux.c'))
|
||||
endif
|
||||
fs_ss.add(when: 'CONFIG_XEN_BUS', if_true: files('xen-9p-backend.c'))
|
||||
system_ss.add_all(when: 'CONFIG_FSDEV_9P', if_true: fs_ss)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue