Commit 4844d430 authored by Kan-Ru Chen's avatar Kan-Ru Chen

New upstream version 1.11+ds1

parent 9e9fed46
# editorconfig.org settings for mupdf project
root = true
[*]
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
[memento.*]
indent_style = space
indent_size = 4
...@@ -2,15 +2,21 @@ ...@@ -2,15 +2,21 @@
[attr]tabs whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4 [attr]tabs whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
[attr]spaces whitespace=trailing-space,space-before-tab,tabs-in-indent [attr]spaces whitespace=trailing-space,space-before-tab,tabs-in-indent
# Files: # Source files:
* text=auto * text=auto
Make* tabs Make* tabs
*.mk tabs *.mk tabs
*.[chm] tabs *.[chm] tabs
*.java tabs *.java tabs
*.xml tabs *.xml tabs
build.xml spaces
# Documentation files:
*.txt spaces
# Legacy source files:
memento.* spaces memento.* spaces
*.vcxproj* spaces
jmem* spaces # iOS project files:
*.gradle spaces *.xib spaces
*.xcscheme spaces
*.json spaces
# Optional thirdparty libraryes
thirdparty/luratech
thirdparty/jpegxr
# Generated files: # Generated files:
build build
generated generated
...@@ -10,6 +14,7 @@ cscope.* ...@@ -10,6 +14,7 @@ cscope.*
*~ *~
.*.swp .*.swp
.DS_Store .DS_Store
\#*\#
# Editor settings: # Editor settings:
.vimrc .vimrc
...@@ -21,18 +26,33 @@ cscope.* ...@@ -21,18 +26,33 @@ cscope.*
*.pdf *.pdf
*.xps *.xps
*.epub *.epub
*.html *.fb2
*.xhtml *.xhtml
*.css *.css
*.svg *.svg
*.pam
*.pbm
*.pgm
*.ppm
*.png
*.jpg
*.jpeg
*.pcl
*.ps
# Temporary and build files: # Temporary and build files:
*.class *.class
*.jar *.jar
*.o *.o
*.so *.so
*.zip
*.dll
DerivedData DerivedData
platform/java/obj
platform/java/libs
platform/java/local.properties
platform/win32/*.user platform/win32/*.user
platform/win32/*.ncb platform/win32/*.ncb
platform/win32/*.suo platform/win32/*.suo
...@@ -43,13 +63,3 @@ platform/win32/Release ...@@ -43,13 +63,3 @@ platform/win32/Release
platform/win32/ReleaseOpenssl platform/win32/ReleaseOpenssl
platform/win32/Memento platform/win32/Memento
platform/win32/x64 platform/win32/x64
platform/android/*/obj
platform/android/*/bin
platform/android/*/libs
platform/android/*/gen
platform/android/*/jni/andprof
platform/android/*/local.properties
platform/android/*/.classpath
platform/android/*/.project
platform/android/*/.settings
[submodule "thirdparty/jbig2dec"] [submodule "thirdparty/jbig2dec"]
path = thirdparty/jbig2dec path = thirdparty/jbig2dec
url = git://git.ghostscript.com/jbig2dec.git url = ../jbig2dec.git
[submodule "thirdparty/mujs"] [submodule "thirdparty/mujs"]
path = thirdparty/mujs path = thirdparty/mujs
url = git://git.ghostscript.com/mujs.git url = ../mujs.git
[submodule "thirdparty/freetype"] [submodule "thirdparty/freetype"]
path = thirdparty/freetype path = thirdparty/freetype
url = git://git.ghostscript.com/thirdparty/freetype.git url = ../thirdparty-freetype2.git
[submodule "thirdparty/harfbuzz"] [submodule "thirdparty/harfbuzz"]
path = thirdparty/harfbuzz path = thirdparty/harfbuzz
url = git://git.ghostscript.com/thirdparty/harfbuzz.git url = ../thirdparty-harfbuzz.git
[submodule "thirdparty/jpeg"] [submodule "thirdparty/jpeg"]
path = thirdparty/jpeg path = thirdparty/libjpeg
url = git://git.ghostscript.com/thirdparty/jpeg.git url = ../thirdparty-libjpeg.git
[submodule "thirdparty/openjpeg"] [submodule "thirdparty/openjpeg"]
path = thirdparty/openjpeg path = thirdparty/openjpeg
url = git://git.ghostscript.com/thirdparty/openjpeg.git url = ../thirdparty-openjpeg.git
[submodule "thirdparty/zlib"] [submodule "thirdparty/zlib"]
path = thirdparty/zlib path = thirdparty/zlib
url = git://git.ghostscript.com/thirdparty/zlib.git url = ../thirdparty-zlib.git
[submodule "thirdparty/glfw"] [submodule "thirdparty/glfw"]
path = thirdparty/glfw path = thirdparty/glfw
url = git://git.ghostscript.com/thirdparty/glfw.git url = ../thirdparty-glfw.git
[submodule "thirdparty/curl"] [submodule "thirdparty/curl"]
path = thirdparty/curl path = thirdparty/curl
url = git://git.ghostscript.com/thirdparty/curl.git url = ../thirdparty-curl.git
List of changes in MuPDF 1.11
* This is primarily a bug fix release.
* Split Android and iOS viewers into separate projects:
* mupdf-viewer-ios.git has the iOS viewer.
* mupdf-viewer-android-old.git has the Android viewer.
* mupdf-viewer-android-nui.git has a new advanced Android viewer.
* mupdf-viewer-android-mini.git has a new minimalist Android viewer.
* PDF portfolio support with command line tool "mutool portfolio".
* Add callbacks to load fallback fonts from the system.
* Use system fonts in Android to reduce install size.
* Flag to disable publisher styles in EPUB layout.
* Improved SVG output.
List of changes in MuPDF 1.10
* Headline changes:
* FictionBook (FB2) e-book support.
* Simple SVG parser (a small subset of SVG only).
* mutool convert: a new document conversion tool and interface.
* Multi-threaded rendering in mudraw.
* Luratech decoders for JBIG2 and JPEG2000 (commercial releases only).
* Optional JPEG-XR support (not included by default for security reasons).
* Updated base 14 fonts from URW.
* New CJK font with language specific variants.
* Hyperlink support in EPUB.
* Reduced memory use:
* New tool muraster: example printer driver with limited RAM usage and automatic banding.
* Alpha channel is now optional in pixmaps.
* More aggressive purging of cached objects.
* Partial image decoding for lower memory use when banding.
* Reduced code size when building with a subset of features:
* Reduced default set of built-in CMap tables to the minimum required.
* FZ_ENABLE_PDF, _XPS, _JS, to disable features at compile time.
* Function level linking.
* Interface changes and cleanups:
* Dropped pdf object generation numbers from public interfaces.
* Simplified PDF page, xobject, and annotation internals.
* Closing and freeing devices and writers are now separate steps.
* Improved PDF annotation editing interface (still a work in progress).
* Document writer interface.
* Banded image writer interface.
* Mobile viewers:
* New JNI interfaces to match capabilities of 'mutool run' javascript.
* New android and desktop java examples using new JNI interface.
List of changes in MuPDF 1.9 List of changes in MuPDF 1.9
* Headline changes: * Headline changes:
......
This diff is collapsed.
...@@ -2,31 +2,52 @@ ...@@ -2,31 +2,52 @@
OS ?= $(shell uname) OS ?= $(shell uname)
OS := $(OS:MINGW%=MINGW) OS := $(OS:MINGW%=MINGW)
OS := $(OS:MSYS%=MINGW)
OS := $(OS:Windows_NT=MINGW) OS := $(OS:Windows_NT=MINGW)
OS := $(OS:Darwin=MACOS) OS := $(OS:Darwin=MACOS)
HAVE_LIBDL ?= yes HAVE_LIBDL ?= yes
CFLAGS += -Wall CFLAGS += -Wall
ifeq (,$(findstring -fembed-bitcode,$(XCFLAGS)))
# clang does not support these in combination with -fembed-bitcode
CFLAGS += -ffunction-sections -fdata-sections
endif
ifeq "$(OS)" "MACOS"
LDREMOVEUNREACH := -Wl,-dead_strip
else
LDREMOVEUNREACH := -Wl,--gc-sections
endif
ifeq "$(build)" "debug" ifeq "$(build)" "debug"
CFLAGS += -pipe -g -DDEBUG CFLAGS += -pipe -g
LDFLAGS += -g LDFLAGS += -g
else ifeq "$(build)" "release" else ifeq "$(build)" "release"
CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
else ifeq "$(build)" "small"
CFLAGS += -pipe -Os -DNDEBUG -fomit-frame-pointer
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
else ifeq "$(build)" "valgrind"
CFLAGS += -pipe -O2 -DNDEBUG -DPACIFY_VALGRIND -fno-omit-frame-pointer
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
else ifeq "$(build)" "sanitize" else ifeq "$(build)" "sanitize"
CFLAGS += -pipe -g -DDEBUG -fsanitize=address -fno-omit-frame-pointer CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
LDFLAGS += -fsanitize=address LDFLAGS += -fsanitize=address
else ifeq "$(build)" "profile" else ifeq "$(build)" "profile"
CFLAGS += -pipe -O2 -DNDEBUG -pg CFLAGS += -pipe -O2 -DNDEBUG -pg
LDFLAGS += -pg LDFLAGS += -pg
else ifeq "$(build)" "coverage" else ifeq "$(build)" "coverage"
CFLAGS += -pipe -g -DDEBUG -pg -fprofile-arcs -ftest-coverage CFLAGS += -pipe -g -pg -fprofile-arcs -ftest-coverage
LIBS += -lgcov LIBS += -lgcov
else ifeq "$(build)" "native" else ifeq "$(build)" "native"
CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer -march=native -mfpmath=sse CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer -march=native -mfpmath=sse
LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
else ifeq "$(build)" "memento" else ifeq "$(build)" "memento"
CFLAGS += -pipe -g -DMEMENTO -DDEBUG CFLAGS += -pipe -g -DMEMENTO
LDFLAGS += -g -d -rdynamic LDFLAGS += -g -d -rdynamic
ifeq "$(HAVE_LIBDL)" "yes" ifeq "$(HAVE_LIBDL)" "yes"
CFLAGS += -DHAVE_LIBDL