diff options
author | ksakamoto <ksakamoto@chromium.org> | 2015-03-26 18:30:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-27 01:32:02 +0000 |
commit | ca9922675a84f05f3e33b38ad74875d1b84772db (patch) | |
tree | 065952d00907f65a77fff48aec1c15cc80374f4a /third_party/woff2/Makefile | |
parent | 0c24b1209479794f6b9e1bee6f8d518d995ee460 (diff) | |
download | chromium_src-ca9922675a84f05f3e33b38ad74875d1b84772db.zip chromium_src-ca9922675a84f05f3e33b38ad74875d1b84772db.tar.gz chromium_src-ca9922675a84f05f3e33b38ad74875d1b84772db.tar.bz2 |
Add woff2 to src/third_party
This patch adds the woff2 library [1] which is used to decode WOFF 2.0
web font file format. It's going to replace the old version of WOFF 2.0
decoder included in third_party/ots.
[1] https://github.com/google/woff2 (revision 445f5419)
BUG=434596
TEST=trybots
Review URL: https://codereview.chromium.org/954163002
Cr-Commit-Position: refs/heads/master@{#322517}
Diffstat (limited to 'third_party/woff2/Makefile')
-rw-r--r-- | third_party/woff2/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/woff2/Makefile b/third_party/woff2/Makefile new file mode 100644 index 0000000..fcb9525 --- /dev/null +++ b/third_party/woff2/Makefile @@ -0,0 +1,42 @@ +OS := $(shell uname) + +IDIRS=-I./brotli/dec/ -I./brotli/enc/ -I./src + +CXX = g++ +LFLAGS = +GFLAGS=-no-canonical-prefixes -fno-omit-frame-pointer -m64 +CXXFLAGS = -c $(IDIRS) -std=c++0x $(GFLAGS) + +ifeq ($(OS), Darwin) + CXXFLAGS += -DOS_MACOSX +else + CXXFLAGS += -fno-tree-vrp +endif + +SRCDIR = src + +OUROBJ = font.o glyph.o normalize.o table_tags.o transform.o \ + woff2_dec.o woff2_enc.o + +BROTLI = brotli +ENCOBJ = $(BROTLI)/enc/*.o +DECOBJ = $(BROTLI)/dec/*.o + +OBJS = $(patsubst %, $(SRCDIR)/%, $(OUROBJ)) +EXECUTABLES=woff2_compress woff2_decompress + +EXE_OBJS=$(patsubst %, $(SRCDIR)/%.o, $(EXECUTABLES)) + +all : $(OBJS) $(EXECUTABLES) + +$(EXECUTABLES) : $(EXE_OBJS) deps + $(CXX) $(LFLAGS) $(OBJS) $(ENCOBJ) $(DECOBJ) $(SRCDIR)/$@.o -o $@ + +deps : + make -C $(BROTLI)/dec + make -C $(BROTLI)/enc + +clean : + rm -f $(OBJS) $(EXE_OBJS) $(EXECUTABLES) + make -C $(BROTLI)/dec clean + make -C $(BROTLI)/enc clean |