Codebase list virt-viewer / 8e1a8b3
dist: ship .ico in tarball Some distros (a 4-letters) don't have icotool. Let's ship the .ico in the tarball. The build will fail if icoutil is not installed when building from git or when the .ico is absent. The error should be explicit. Marc-André Lureau 11 years ago
3 changed file(s) with 5 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
3737 AM_PROG_CC_C_O
3838 AC_PROG_LIBTOOL
3939
40 AC_CHECK_PROGS(ICOTOOL, [icotool], [icotool])
41
4042 AS_IF([test "x$os_win32" = "xyes"], [
4143 AC_CHECK_TOOL(WINDRES, [windres])
42 AC_CHECK_PROGS(ICOTOOL, [icotool])
4344
4445 if test -z "$WINDRES" ; then
4546 AC_MSG_ERROR("windres is required to compile virt-viewer on this platform")
46 fi
47 if test -z "$ICOTOOL" ; then
48 AC_MSG_ERROR("icotool is required to compile virt-viewer on this platform")
4947 fi
5048 ])
5149
88 %.ico: $(foreach s,$(ico_sizes),$(s)x$(s)/%.png)
99 $(AM_V_GEN)$(ICOTOOL) -c -o $@ $^
1010
11 CLEANFILES = virt-viewer.ico
11 EXTRA_DIST = virt-viewer.ico
1212
1313 -include $(top_srcdir)/git.mk
120120 EXTRA_DIST += $(desktop_DATA)
121121
122122 VIRT_VIEWER_RES = virt-viewer.rc virt-viewer.manifest
123 ICONDIR = $(top_builddir)/icons
123 ICONDIR = $(top_srcdir)/icons
124124 MANIFESTDIR = $(srcdir)
125125 EXTRA_DIST += $(VIRT_VIEWER_RES)
126126
129129 windows_cmdline_wrapper_SOURCES = windows-cmdline-wrapper.c
130130 windows_cmdline_wrapper_LDFLAGS = -lpsapi
131131
132 virt-viewer_rc.$(OBJEXT): $(VIRT_VIEWER_RES) $(top_builddir)/icons/virt-viewer.ico
132 virt-viewer_rc.$(OBJEXT): $(VIRT_VIEWER_RES) $(ICONDIR)/virt-viewer.ico
133133 $(AM_V_GEN)$(WINDRES) \
134134 -DICONDIR='\"$(ICONDIR)\"' \
135135 -DMANIFESTDIR='\"$(MANIFESTDIR)\"' \