From 0770044da6d61dcbc8d9673fed8dd92460faa314 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 20 Dec 2010 19:46:07 +0000 Subject: add option to write PDFs from gm fix some compile warnings (reorder initializers, init local ptr) git-svn-id: http://skia.googlecode.com/svn/trunk@642 2bbb7eff-a529-9590-31e7-b0007b416f81 --- Makefile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dc6fd30cb6..38f28915dd 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ GPP := g++ C_INCLUDES := -Iinclude/config -Iinclude/core -Iinclude/effects -Iinclude/images -Iinclude/utils CFLAGS := -Wall -O2 CFLAGS_SSE2 = $(CFLAGS) -msse2 -LINKER_OPTS := -lpthread +LINKER_OPTS := -lpthread -lz DEFINES := -DSK_CAN_USE_FLOAT HIDE = @ @@ -24,6 +24,10 @@ endif DEFINES += -DSK_SUPPORT_LCDTEXT +ifeq ($(SKIA_PDF_SUPPORT),true) + DEFINES += -DSK_SUPPORT_PDF +endif + # start with the core (required) include src/core/core_files.mk SRC_LIST := $(addprefix src/core/, $(SOURCE)) @@ -200,6 +204,17 @@ gm: $(GM_OBJS) out/libskia.a @echo "linking gm..." $(HIDE)$(GPP) $(GM_OBJS) out/libskia.a -o out/gm/gm $(LINKER_OPTS) +SAMPLEPDF_SRCS := samplepdf.cpp + +SAMPLEPDF_SRCS := $(addprefix tools/, $(SAMPLEPDF_SRCS)) + +SAMPLEPDF_OBJS := $(SAMPLEPDF_SRCS:.cpp=.o) +SAMPLEPDF_OBJS := $(addprefix out/, $(SAMPLEPDF_OBJS)) + +samplepdf: $(SAMPLEPDF_OBJS) out/libskia.a + @echo "linking samplepdf..." + $(HIDE)$(GPP) $(SAMPLEPDF_OBJS) out/libskia.a -o out/tools/samplepdf $(LINKER_OPTS) + ############################################################################## .PHONY: all -- cgit v1.2.3