Completely untested stuff. But it compiles.
git-svn-id: https://s.snth.net/svn/neverball/trunk@2644
78b8d119-cf0a-0410-b17c-
f493084dd1d7
putt/st_conf.o \
putt/main.o
+ifdef MINGW
+BALL_OBJS += neverball.ico.o
+PUTT_OBJS += neverputt.ico.o
+endif
+
BALL_DEPS := $(BALL_OBJS:.o=.d)
PUTT_DEPS := $(PUTT_OBJS:.o=.d)
MAPC_DEPS := $(MAPC_OBJS:.o=.d)
%.desktop : %.desktop.in
sh scripts/translate-desktop.sh < $< > $@
+%.ico.o: dist/ico/%.ico
+ echo "1 ICON \"$<\"" | $(WINDRES) -o $@
+
#------------------------------------------------------------------------------
all : $(BALL_TARG) $(PUTT_TARG) $(MAPC_TARG) sols locales desktops
void set_SDL_icon(const char *filename)
{
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(_WIN32)
SDL_Surface *icon;
if ((icon = load_surface(filename)))
free(icon->pixels);
SDL_FreeSurface(icon);
}
-#endif /* __APPLE__ */
+#endif
return;
}