diff options
author | 2010-12-20 19:46:07 +0000 | |
---|---|---|
committer | 2010-12-20 19:46:07 +0000 | |
commit | 0770044da6d61dcbc8d9673fed8dd92460faa314 (patch) | |
tree | 922e024c9b2590dc38384c9244c2f32114c4eeb7 /Makefile | |
parent | 1f0869833933d7f672a4fc46e66078545f4c87dc (diff) |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |