mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-22 22:03:44 +03:00
ad40386fa2
Instead of maintain a file which includes every single icon that we use from adwaita-icon-theme (adwaita-icons-needed.wxi.in), let's depend on mingw-adwaita-icon-theme directly. It reduces considerably the maintainability and the risk to have missing icons. Although, the size of the final binary gets increased from ~35MB to ~50MB. Resolves: rhbz#1301064 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
97 lines
2.3 KiB
Makefile
97 lines
2.3 KiB
Makefile
NULL =
|
|
CLEANFILES =
|
|
MANUFACTURER = Virt Manager Project
|
|
|
|
EXTRA_DIST = \
|
|
spice-xpi-client-remote-viewer \
|
|
virt-viewer.wxs.in \
|
|
$(NULL)
|
|
|
|
# this make sure those files are regenerated when they change
|
|
# (in maintainer-mode)
|
|
all-local: virt-viewer.wxs
|
|
|
|
if OS_WIN32
|
|
|
|
if HAVE_LIBVIRT
|
|
HaveLibvirt = True
|
|
else
|
|
HaveLibvirt = False
|
|
endif
|
|
|
|
if HAVE_OVIRT
|
|
HaveOVirt = True
|
|
else
|
|
HaveOVirt = False
|
|
endif
|
|
|
|
if HAVE_SPICE_GTK
|
|
HaveSpiceGtk = True
|
|
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 > $@
|
|
|
|
virt-viewer-$(WIXL_ARCH)-$(VERSION).msi: virt-viewer.wxs deps.txt
|
|
$(AM_V_GEN)DESTDIR=`mktemp -d` && \
|
|
make -C $(top_builddir) install DESTDIR=$$DESTDIR >/dev/null && \
|
|
find $$DESTDIR | wixl-heat -p $$DESTDIR$(prefix)/ \
|
|
--component-group CG.virt-viewer --var var.DESTDIR \
|
|
--directory-ref=INSTALLDIR > virt-viewer-files.wxs && \
|
|
MANUFACTURER="$(MANUFACTURER)" wixl -D SourceDir=$(prefix) \
|
|
-D DESTDIR=$$DESTDIR$(prefix) \
|
|
-D HaveSpiceGtk=$(HaveSpiceGtk) \
|
|
-D HaveGtkVnc=$(HaveGtkVnc) \
|
|
-D HaveLibvirt=$(HaveLibvirt) \
|
|
-D HaveOVirt=$(HaveOVirt) \
|
|
--arch $(WIXL_ARCH) \
|
|
-o $@ \
|
|
$< virt-viewer-files.wxs && \
|
|
rm -rf $$DESTDIR virt-viewer-files.wxs
|
|
|
|
msi: virt-viewer-$(WIXL_ARCH)-$(VERSION).msi
|
|
|
|
CLEANFILES += \
|
|
deps.txt \
|
|
virt-viewer-$(WIXL_ARCH)-$(VERSION).msi \
|
|
$(NULL)
|
|
|
|
else #!WIN32
|
|
|
|
desktopdir = $(datadir)/applications
|
|
DESKTOPFILES = remote-viewer.desktop.in
|
|
desktop_DATA = $(DESKTOPFILES:.desktop.in=.desktop)
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
|
|
MIMEFILES = virt-viewer-mime.xml.in
|
|
mimedir = $(datadir)/mime/packages
|
|
mime_DATA = virt-viewer-mime.xml
|
|
@INTLTOOL_XML_RULE@
|
|
|
|
install-data-hook:
|
|
if ENABLE_UPDATE_MIMEDB
|
|
@if $(AM_V_P); then set -x; else echo " INSTALL update-mime-database"; fi; \
|
|
$(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime";
|
|
endif
|
|
|
|
uninstall-hook:
|
|
if ENABLE_UPDATE_MIMEDB
|
|
@if $(AM_V_P); then set -x; else echo " UNINSTALL update-mime-database"; fi; \
|
|
$(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime";
|
|
endif
|
|
|
|
CLEANFILES += $(mime_DATA) $(desktop_DATA)
|
|
EXTRA_DIST += $(MIMEFILES) $(DESKTOPFILES)
|
|
|
|
endif
|
|
|
|
-include $(top_srcdir)/git.mk
|