diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-06-19 13:42:40 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-06-22 15:46:56 +0100 |
commit | 638384c10ff1b7b1233bec1d62db3e82cffeaafc (patch) | |
tree | 7b95a78ccddbe4209834631bcc168cbff54f7768 /Makefile | |
parent | e709f64df191609e83a497cae94ff59bcf32a239 (diff) | |
download | mupdf-638384c10ff1b7b1233bec1d62db3e82cffeaafc.tar.xz |
Add '-s' option to hexdump script to dump arrays using string literals.
If the compiler supports string literals long enough, this will speed up
compilation and reduce compiler memory use by a lot. Enough so that we don't
need to use the .incbin asm directive.
Gcc and Clang both support long string literals, so use the '-s' option for
generated font files by default in the Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -197,15 +197,15 @@ FONT_GEN := $(FONT_GEN_DROID) $(FONT_GEN_NOTO) $(FONT_GEN_HAN) $(FONT_GEN_URW) $ FONT_OBJ := $(FONT_GEN:%.c=$(OUT)/%.o) generated/%.c : resources/fonts/droid/%.ttf $(HEXDUMP_EXE) | generated - $(QUIET_GEN) $(HEXDUMP_EXE) $@ $< + $(QUIET_GEN) $(HEXDUMP_EXE) -s $@ $< generated/%.c : resources/fonts/noto/%.ttf $(HEXDUMP_EXE) | generated - $(QUIET_GEN) $(HEXDUMP_EXE) $@ $< + $(QUIET_GEN) $(HEXDUMP_EXE) -s $@ $< generated/%.c : resources/fonts/han/%.otf $(HEXDUMP_EXE) | generated - $(QUIET_GEN) $(HEXDUMP_EXE) $@ $< + $(QUIET_GEN) $(HEXDUMP_EXE) -s $@ $< generated/%.c : resources/fonts/urw/%.cff $(HEXDUMP_EXE) | generated - $(QUIET_GEN) $(HEXDUMP_EXE) $@ $< + $(QUIET_GEN) $(HEXDUMP_EXE) -s $@ $< generated/%.c : resources/fonts/sil/%.cff $(HEXDUMP_EXE) | generated - $(QUIET_GEN) $(HEXDUMP_EXE) $@ $< + $(QUIET_GEN) $(HEXDUMP_EXE) -s $@ $< $(FONT_OBJ) : $(FONT_GEN) $(FONT_GEN_DROID) : $(FONT_BIN_DROID) |