aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-09-24 22:25:30 +0000
committervandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-09-24 22:25:30 +0000
commit8459d4e5e32608ec6da3f2b81731aaeb7b038843 (patch)
tree298910ded8dd42c3bd1089d1607b2ee0bd1e4cae /Makefile
parent3ce77e4d13372be9fbf2601498be05b8cbd4e237 (diff)
downloadskia-8459d4e5e32608ec6da3f2b81731aaeb7b038843.tar.gz
Initial PDF backend commit: directories, build rules, primitives
This change establishes and tests the building blocks of the PDF file format. For now, PDF code is not compiled by default. Review URL: http://codereview.appspot.com/1950044 git-svn-id: http://skia.googlecode.com/svn/trunk@600 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 970f0b9ead..65f0b715b4 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,13 @@ SRC_LIST += $(addprefix src/images/, $(SOURCE))
include src/utils/utils_files.mk
SRC_LIST += $(addprefix src/utils/, $(SOURCE))
+# pdf backend files
+ifeq ($(SKIA_PDF_SUPPORT),true)
+ C_INCLUDES += -Iinclude/pdf
+ include src/pdf/pdf_files.mk
+ SRC_LIST += $(addprefix src/pdf/, $(SOURCE))
+endif
+
# extra files we want to build to prevent bit-rot, but not link
JUST_COMPILE_LIST := src/ports/SkFontHost_tables.cpp
@@ -137,6 +144,9 @@ bench: $(BENCH_OBJS) out/libskia.a
C_INCLUDES += -Isrc/core
include tests/tests_files.mk
+ifeq ($(SKIA_PDF_SUPPORT),true)
+ SOURCE += PDFPrimitivesTest.cpp
+endif
TESTS_SRCS := $(addprefix tests/, $(SOURCE))
TESTS_OBJS := $(TESTS_SRCS:.cpp=.o)
@@ -212,4 +222,5 @@ help:
@echo " SKIA_DEBUG=true for debug build"
@echo " SKIA_SCALAR=fixed for fixed-point build"
@echo " SKIA_BUILD_FOR=mac for mac build (e.g. CG for image decoding)"
+ @echo " SKIA_PDF_SUPPORT=true to enable the pdf generation backend"
@echo ""