aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-11-03 09:17:48 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-31 09:11:29 +0100
commitd0cda6f461fd33c5f9b063781c63c1ce5fd3fa3b (patch)
treec48bd2a0ab0da96761a6b75cdb66cb1ed36a5090 /ui
parentcfc1a889e509ffeba6e44cca8ff626751bc4219e (diff)
downloadqemu-d0cda6f461fd33c5f9b063781c63c1ce5fd3fa3b.zip
qemu-d0cda6f461fd33c5f9b063781c63c1ce5fd3fa3b.tar.gz
qemu-d0cda6f461fd33c5f9b063781c63c1ce5fd3fa3b.tar.bz2
configure, meson: rename targetos to host_os
This variable is about the host OS, not the target. It is used a lot more since the Meson conversion, but the original sin dates back to 2003. Time to fix it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/dbus-display1.xml10
-rw-r--r--ui/meson.build8
2 files changed, 9 insertions, 9 deletions
diff --git a/ui/dbus-display1.xml b/ui/dbus-display1.xml
index f0e2fac..ce35d64 100644
--- a/ui/dbus-display1.xml
+++ b/ui/dbus-display1.xml
@@ -71,7 +71,7 @@
:dbus:iface:`org.qemu.Display1.Listener` interface.
-->
<method name="RegisterListener">
- <?if $(env.TARGETOS) == windows?>
+ <?if $(env.HOST_OS) == windows?>
<arg type="ay" name="listener" direction="in">
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
</arg>
@@ -370,7 +370,7 @@
</arg>
</method>
- <?if $(env.TARGETOS) != windows?>
+ <?if $(env.HOST_OS) != windows?>
<!--
ScanoutDMABUF:
@dmabuf: the DMABUF file descriptor.
@@ -694,7 +694,7 @@
:dbus:iface:`org.qemu.Display1.AudioOutListener` interface.
-->
<method name="RegisterOutListener">
- <?if $(env.TARGETOS) == windows?>
+ <?if $(env.HOST_OS) == windows?>
<arg type="ay" name="listener" direction="in">
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
</arg>
@@ -715,7 +715,7 @@
:dbus:iface:`org.qemu.Display1.AudioInListener` interface.
-->
<method name="RegisterInListener">
- <?if $(env.TARGETOS) == windows?>
+ <?if $(env.HOST_OS) == windows?>
<arg type="ay" name="listener" direction="in">
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
</arg>
@@ -976,7 +976,7 @@
The current handler, if any, will be replaced.
-->
<method name="Register">
- <?if $(env.TARGETOS) == windows?>
+ <?if $(env.HOST_OS) == windows?>
<arg type="ay" name="listener" direction="in">
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
</arg>
diff --git a/ui/meson.build b/ui/meson.build
index a370494..376e0d7 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -25,7 +25,7 @@ endif
system_ss.add([spice_headers, files('spice-module.c')])
system_ss.add(when: spice_protocol, if_true: files('vdagent.c'))
-if targetos == 'linux'
+if host_os == 'linux'
system_ss.add(files('input-linux.c', 'udmabuf.c'))
endif
system_ss.add(when: cocoa, if_true: files('cocoa.m'))
@@ -75,7 +75,7 @@ endif
if dbus_display
dbus_ss = ss.source_set()
env = environment()
- env.set('TARGETOS', targetos)
+ env.set('HOST_OS', host_os)
xml = custom_target('dbus-display preprocess',
input: 'dbus-display1.xml',
output: 'dbus-display1.xml',
@@ -105,7 +105,7 @@ if dbus_display
endif
if gtk.found()
- if targetos == 'windows'
+ if host_os == 'windows'
system_ss.add(files('win32-kbd-hook.c'))
endif
@@ -121,7 +121,7 @@ if gtk.found()
endif
if sdl.found()
- if targetos == 'windows'
+ if host_os == 'windows'
system_ss.add(files('win32-kbd-hook.c'))
endif