From 0865c7855d99727a92706df9b5897875504eafe3 Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 24 Jan 2011 21:46:43 +0100 Subject: [PATCH] Update build for win32 with freetype. --- Makefile.win32 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile.win32 b/Makefile.win32 index e753f95eba..780be6db83 100644 --- a/Makefile.win32 +++ b/Makefile.win32 @@ -8,6 +8,7 @@ CXX = g++ HAVE_SRC = 1 HAVE_SDL = 1 HAVE_XML = 1 +HAVE_FREETYPE = 1 libsnes ?= -lsnes LIBS = @@ -35,6 +36,12 @@ ifeq ($(HAVE_XML), 1) LIBS += -lxml2 endif +ifeq ($(HAVE_FREETYPE), 1) + OBJ += gfx/fonts.o + DEFINES += -DHAVE_FREETYPE -Ifreetype2 + LIBS += -lz -lfreetype6 +endif + ifeq ($(DYNAMIC), 1) DEFINES += -DHAVE_DYNAMIC else @@ -76,6 +83,10 @@ clean: rm -f tools/*.o dist: all - zip -r ssnes-win32.zip $(TARGET) ssnes.cfg snes.dll libxml2.dll iconv.dll zlib1.dll SDL.dll libsamplerate-0.dll ssnes-joyconfig.exe + zip -r ssnes-win32.zip $(TARGET) ssnes.cfg snes.dll libxml2.dll iconv.dll zlib1.dll SDL.dll libsamplerate-0.dll freetype6.dll ssnes-joyconfig.exe + +libs: + wget https://github.com/downloads/Themaister/SSNES/SSNES-win32-libs.zip --no-check-certificate + unzip SSNES-win32-libs.zip .PHONY: all install uninstall clean dist