From 5459cb18ae59a99322a1948e58ec999b4dbef49a Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Mon, 1 Oct 2012 10:49:31 +0100 Subject: [PATCH] Build mupdf in release mode, not debug. Thanks to NiLuJe who pointed out that we are building mupdf in debug mode. Switching to "release" build reduced the size of the kpdfview binary and did not cause any performance degradation (but no noticeable improvement either --- the page handling times seem to be exactly the same, i.e. fluctuating a couple of ms in both directions). --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d13a35541..fb1fdc17f 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ LUADIR=luajit-2.0 MUPDFDIR=mupdf -MUPDFTARGET=build/debug +MUPDFTARGET=build/release MUPDFLIBDIR=$(MUPDFDIR)/$(MUPDFTARGET) DJVUDIR=djvulibre KPVCRLIBDIR=kpvcrlib @@ -158,7 +158,7 @@ clean: cleanthirdparty: -make -C $(LUADIR) clean - -make -C $(MUPDFDIR) clean + -make -C $(MUPDFDIR) build="release" clean -make -C $(CRENGINEDIR)/thirdparty/antiword clean test -d $(CRENGINEDIR)/thirdparty/chmlib && make -C $(CRENGINEDIR)/thirdparty/chmlib clean || echo warn: chmlib folder not found test -d $(CRENGINEDIR)/thirdparty/libpng && (make -C $(CRENGINEDIR)/thirdparty/libpng clean) || echo warn: chmlib folder not found @@ -169,18 +169,18 @@ cleanthirdparty: -rm -f $(MUPDFDIR)/cmapdump.host $(MUPDFDIR)/fontdump.host: - make -C mupdf CC="$(HOSTCC)" $(MUPDFTARGET)/fontdump + make -C mupdf build="release" CC="$(HOSTCC)" $(MUPDFTARGET)/fontdump cp -a $(MUPDFLIBDIR)/fontdump $(MUPDFDIR)/fontdump.host make -C mupdf clean $(MUPDFDIR)/cmapdump.host: - make -C mupdf CC="$(HOSTCC)" $(MUPDFTARGET)/cmapdump + make -C mupdf build="release" CC="$(HOSTCC)" $(MUPDFTARGET)/cmapdump cp -a $(MUPDFLIBDIR)/cmapdump $(MUPDFDIR)/cmapdump.host make -C mupdf clean $(MUPDFLIBS) $(THIRDPARTYLIBS): $(MUPDFDIR)/cmapdump.host $(MUPDFDIR)/fontdump.host # build only thirdparty libs, libfitz and pdf utils, which will care for libmupdf.a being built - CFLAGS="$(CFLAGS) -DNOBUILTINFONT" make -C mupdf CC="$(CC)" CMAPDUMP=cmapdump.host FONTDUMP=fontdump.host MUPDF= MU_APPS= BUSY_APP= XPS_APPS= verbose=1 + CFLAGS="$(CFLAGS) -DNOBUILTINFONT" make -C mupdf build="release" CC="$(CC)" CMAPDUMP=cmapdump.host FONTDUMP=fontdump.host MUPDF= MU_APPS= BUSY_APP= XPS_APPS= verbose=1 $(DJVULIBS): -mkdir $(DJVUDIR)/build