mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -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
|
@ -72,12 +72,11 @@ qga_ss.add(when: 'CONFIG_POSIX', if_true: files(
|
|||
'commands-posix.c',
|
||||
'commands-posix-ssh.c',
|
||||
))
|
||||
qga_ss.add(when: 'CONFIG_LINUX', if_true: files(
|
||||
'commands-linux.c',
|
||||
))
|
||||
qga_ss.add(when: 'CONFIG_BSD', if_true: files(
|
||||
'commands-bsd.c',
|
||||
))
|
||||
if targetos == 'linux'
|
||||
qga_ss.add(files('commands-linux.c'))
|
||||
elif targetos in bsd_oses
|
||||
qga_ss.add(files('commands-bsd.c'))
|
||||
endif
|
||||
qga_ss.add(when: 'CONFIG_WIN32', if_true: files(
|
||||
'channel-win32.c',
|
||||
'commands-win32.c',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue