mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 06:23:42 +00:00
msi: use gtk-vnc conditionally
Only include gtk-vnc as dep when it's explicitly done in the configure.
This commit is contained in:
parent
57c4ebcaad
commit
de700d09ef
@ -34,6 +34,12 @@ else
|
||||
HaveSpiceGtk = False
|
||||
endif
|
||||
|
||||
if HAVE_GTK_VNC
|
||||
HaveGtkVnc = True
|
||||
else
|
||||
HaveGtkVnc = False
|
||||
endif
|
||||
|
||||
deps.txt:
|
||||
$(AM_V_GEN)rpm -qa | grep $(host_os) | sort | unix2dos > $@
|
||||
|
||||
@ -59,6 +65,7 @@ virt-viewer-$(WIXL_ARCH)-$(VERSION).msi: virt-viewer.wxs deps.txt
|
||||
-D DESTDIR=$$DESTDIR$(prefix) \
|
||||
-D GtkVersion=$(GTK_API_VERSION) \
|
||||
-D HaveSpiceGtk=$(HaveSpiceGtk) \
|
||||
-D HaveGtkVnc=$(HaveGtkVnc) \
|
||||
-D HaveLibvirt=$(HaveLibvirt) \
|
||||
-D HaveOVirt=$(HaveOVirt) \
|
||||
--arch $(WIXL_ARCH) \
|
||||
|
||||
@ -20,12 +20,16 @@
|
||||
<?if $(var.HaveSpiceGtk) = "True"?>
|
||||
<?require spice-gtk.wxi?>
|
||||
<?endif?>
|
||||
<?if $(var.HaveGtkVnc) = "True"?>
|
||||
<?require gtk-vnc.wxi?>
|
||||
<?endif?>
|
||||
<?else?>
|
||||
<?if $(var.HaveSpiceGtk) = "True"?>
|
||||
<?require spice-gtk3.wxi?>
|
||||
<?endif?>
|
||||
<?if $(var.HaveGtkVnc) = "True"?>
|
||||
<?require gtk-vnc2.wxi?>
|
||||
<?endif?>
|
||||
<?require adwaita-icons-needed.wxi?>
|
||||
<?endif?>
|
||||
<?if $(var.HaveLibvirt) = "True"?>
|
||||
@ -131,12 +135,16 @@
|
||||
<?if $(var.HaveSpiceGtk) = "True"?>
|
||||
<ComponentGroupRef Id="CG.spice-gtk"/>
|
||||
<?endif?>
|
||||
<ComponentGroupRef Id="CG.gtk-vnc"/>
|
||||
<?if $(var.HaveGtkVnc) = "True"?>
|
||||
<ComponentGroupRef Id="CG.gtk-vnc"/>
|
||||
<?endif?>
|
||||
<?else?>
|
||||
<?if $(var.HaveSpiceGtk) = "True"?>
|
||||
<ComponentGroupRef Id="CG.spice-gtk3"/>
|
||||
<?endif?>
|
||||
<ComponentGroupRef Id="CG.gtk-vnc2"/>
|
||||
<?if $(var.HaveGtkVnc) = "True"?>
|
||||
<ComponentGroupRef Id="CG.gtk-vnc2"/>
|
||||
<?endif?>
|
||||
<ComponentGroupRef Id="CG.adwaita-icons-needed"/>
|
||||
<?endif?>
|
||||
<?if $(var.HaveLibvirt) = "True"?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user