mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -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
|
@ -105,7 +105,9 @@ if dbus_display
|
|||
endif
|
||||
|
||||
if gtk.found()
|
||||
system_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
|
||||
if targetos == 'windows'
|
||||
system_ss.add(files('win32-kbd-hook.c'))
|
||||
endif
|
||||
|
||||
gtk_ss = ss.source_set()
|
||||
gtk_ss.add(gtk, vte, pixman, files('gtk.c'))
|
||||
|
@ -119,7 +121,9 @@ if gtk.found()
|
|||
endif
|
||||
|
||||
if sdl.found()
|
||||
system_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
|
||||
if targetos == 'windows'
|
||||
system_ss.add(files('win32-kbd-hook.c'))
|
||||
endif
|
||||
|
||||
sdl_ss = ss.source_set()
|
||||
sdl_ss.add(sdl, sdl_image, pixman, glib, files(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue