Age | Commit message (Collapse) | Author |
|
|
|
|
|
Rename HAVE_PTHREADS to HAVE_PTHREAD to match naming of other defines,
where the macro is named after the library that is linked.
|
|
|
|
|
|
Later versions are incompatible with how we call it.
|
|
Add 'build=valgrind' configuration.
|
|
Only use NDEBUG as it's the one that most environments already set, so
is likely to lead to the least amount of confusion if compiling with a
custom build system.
|
|
|
|
Only libcrypto is used to do checking of digital signatures.
The SSL library openssl is never used.
|
|
|
|
Adopt patch from Tamir Evan. Many thanks.
|
|
Additional flags/compiler settings required for successful
building on MINGW due to harfbuzz's use of strdup.
|
|
|
|
Compile with -Os, -ffunction-sections, -fdata-sections and link
with --gc-sections and -s (strip) to include only the functions and
data tables actually required.
|
|
|
|
|
|
platform/java and platform/android are reorganized:
platform/java
The new JNI Java classes, mupdf_native.{c,h}, Makefile and Makejar.
platform/java/example
The example desktop viewer classes.
platform/android/viewer
The original demo viewer.
ndk-build is used to build libmupdf_java.so,
making reference to mupdf_native.{c,h} in platform/java.
|
|
|
|
"make build=gperf" will now build and link the google perf tools
library into mutool. When mutool is then run, a mutool.prof file
is dropped into the current directory that can be analysed.
|
|
Use LIBS, not LDFLAGS to ensure that the lib appears at the
end of the link line.
|
|
If built with MEMENTO_DETAILS (on by default), we store the
backtrace on every event that affects a block.
Memento_details(address) will display the events that affected
a block (typically malloc, {realloc}*, free), including the
backtrace at each point.
Windows and linux use different mechanisms for this. Windows
loads a DLL and calls windows specific functions - no extra
libraries are required.
Linux also loads a shared object (libbacktrace.so). This is not
present on all platforms, so on platforms where it is not available
we just get addresses. These can be converted using addr2line
(unless ASLR is enabled).
In order for linux to be able to load libbacktrace.so we link in
libdl. If this is not available, define HAVE_LIBDL=no when building
the memento target.
|
|
|
|
|
|
|
|
|
|
Add NaCl cross compile rules to Makerules (together with a tiny
header tweak). Thanks to Robert Bamler for the rules to include.
|
|
Use: "make largefile=yes" to force largefile support on. At the moment
it defaults to off.
|
|
Based on changes supplied by mt-82@gmx.org, but bent to be more
in keeping.
The actual building with MINGW is untested. We merely verify that
these do not break the existing builds. With a bit of luck they
should work though.
|
|
|
|
|
|
|
|
Debian doesn't have libopenjp2 as a package (whereas gentoo does) so
I've removed it from the control file. You'll need to use the
thirdparty submodule for openjpeg2 until such a time as it exists.
|
|
Adds simpler choice of Javascript library to makefiles.
Will prefer in order: MuJS, JavaScriptCore, V8, none based
on HAVE_MUJS, HAVE_JSCORE, and HAVE_V8.
For simplicity, we build mujstest even with no javascript implementation.
|
|
|
|
Strip stupid project build settings.
Add proper "make generate" target that uses the 'macosx' sdkroot.
Rewrite cross compile build script to be more future proof.
|
|
Only build mupdf-x11-curl if the curl thirdparty library exists.
|
|
|
|
Tested with msysgit 1.8.3 environment.
|
|
Also sets the -DHAVE_OPENSSL flag.
|
|
|
|
|
|
Only evaluate pkg-config variables if using system libraries,
using a := assignment in Makethird.
This silences warnings if the library is in thirdparty but not
installed on the system.
|
|
|
|
Starting with 61c1f80d36bf1d946ce26d39f9afb99897fc9923 mupdf requires
pkg-config to build. However pkg-config is not supplied with Xcode
and is therefore not routinely installed on Mac OS X. Even if
pkg-config were available it would not accomplish the goal of that
commit (speed up compilation); on Mac OS X compilation would be
slower.
|
|
Use $(shell xxxx) rather than `xxxx` for pkg-config lines to avoid
repeated reevaluation. Also get X libs from pkg-config too.
Thanks to Michael Weber.
|
|
|
|
Requires GNU make and gcc.
|
|
|
|
|