Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: third_party/woff2/Makefile

Issue 954163002: Add woff2 to src/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase as third_party/ots/src/woff2.cc has changed Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/woff2/LICENSE ('k') | third_party/woff2/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/woff2/Makefile
diff --git a/third_party/woff2/Makefile b/third_party/woff2/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..fcb95250a3cf2c81a21bef4795081d9813a13dfa
--- /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
« no previous file with comments | « third_party/woff2/LICENSE ('k') | third_party/woff2/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698