summaryrefslogtreecommitdiff
path: root/Makerules
AgeCommit message (Collapse)Author
2016-07-13Bug 696493: Fix MINGW build of viewer.Robin Watts
Adopt patch from Tamir Evan. Many thanks.
2016-07-13Bug 696910: Fix MINGW build.Robin Watts
Additional flags/compiler settings required for successful building on MINGW due to harfbuzz's use of strdup.
2016-06-13Bug 696831: iOS/OS X support for size optimizationsJoseph Heenan
2016-06-06Add build=small target, optimizing for size.Tor Andersson
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.
2016-04-27Guard setting pkg-config variables with --exists.Tor Andersson
2016-04-05Add threaded operation to mudraw.Robin Watts
2016-03-31Reorganize java and android source.Tor Andersson
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.
2016-03-23Don’t include openssl by default in the OS X build.fredrossperry
2016-03-22Add Google Perf Tools build.Robin Watts
"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.
2016-03-15Memento: Fix specification of -ldl in memento builds.Robin Watts
Use LIBS, not LDFLAGS to ensure that the lib appears at the end of the link line.
2016-03-07Memento: Store/display backtraces with blocks.Robin Watts
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.
2016-02-10Add build=sanitize option to makefile.Tor Andersson
2016-02-10Add system harfbuzz pkg-config flags to makefile.Tor Andersson
2016-01-05gl: Remove unused GLUT variables from makefiles.Tor Andersson
2015-10-06glut: Simple viewer using GLUT and fixed function OpenGL.Tor Andersson
2015-10-02Bug 696117: Add NaCl cross compile rules.Robin Watts
Add NaCl cross compile rules to Makerules (together with a tiny header tweak). Thanks to Robert Bamler for the rules to include.
2015-05-15Add Makefile flag for building large file variants.Robin Watts
Use: "make largefile=yes" to force largefile support on. At the moment it defaults to off.
2015-03-25Bug 695854: Enable building of MuPDF viewer using MINGW.Robin Watts
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.
2015-03-20First attempt at mupdf tizen build.Robin Watts
2014-05-08Fix curl build with thirdparty module when system curl is available too.Tor Andersson
2014-05-07Fix 694428: use system CURL library if available.Tor Andersson
2014-04-23Fix 693518: update Makerules and debian/controlTor Andersson
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.
2014-03-25Add MuJS submodule, implementation and build.Tor Andersson
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.
2013-11-11Remove unneccessary CURL_CFLAGS from non-curl make targets.Tor Andersson
2013-09-08ios: Clean up project file.Tor Andersson
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.
2013-08-14Fix build of curl on macosx.Tor Andersson
Only build mupdf-x11-curl if the curl thirdparty library exists.
2013-07-11Prepare for multiple viewer application targets in makefile.Tor Andersson
2013-06-17Add support to build command line tools on MINGW.Tor Andersson
Tested with msysgit 1.8.3 environment.
2013-05-29Add rules to configure and build openssl if it is present in thirdparty.Tor Andersson
Also sets the -DHAVE_OPENSSL flag.
2013-05-29Clean up thirdparty / system library makefile variables.Tor Andersson
2013-04-29Correct pkg-config dependency to libopenjpeg1Sebastian Rasmussen
2013-04-23Fix pkg-config issues.Tor Andersson
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.
2013-04-11Remove explicit architecture settings in Makerules for OS X.Tor Andersson
2013-03-19Fix compilation on Mac OS X by partially reverting 61c1f80d36.Marcos H. Woehrmann
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.
2013-02-28Bug 693596: Speed compilation on unix based systems.Robin Watts
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.
2012-11-16Fix build with openjpeg-1.5.1Wouter van Kesteren
2012-11-16Build on Solaris (10, at least)Chris Liddell
Requires GNU make and gcc.
2012-08-06Add a make target for measuring code coverageSebastian Rasmussen
2012-04-23Add mingw32 cross compilation targets to make file.Tor Andersson
2012-04-09Bug 692976: Fix spurious thread lock debug warnings on context clonesRobin Watts
When cloning, ensure the locks are done on the new context, not the old one; this makes no difference except to suppress some spurious debugging messages. Also ensure that DEBUG is predefined for Makefile based debug and memento builds. Thanks to Bas Weelinck.
2012-03-21Update iOS app.Tor Andersson
2011-11-15Merge branch 'master' into contextRobin Watts
Mostly redoing the xps_context to xps_document change and adding contexts to newly written code. Conflicts: apps/pdfapp.c apps/pdfapp.h apps/x11_main.c apps/xpsdraw.c draw/draw_device.c draw/draw_scale.c fitz/base_object.c fitz/fitz.h pdf/mupdf.h pdf/pdf_interpret.c pdf/pdf_outline.c pdf/pdf_page.c xps/muxps.h xps/xps_doc.c xps/xps_xml.c
2011-11-01Update project to Xcode 4.Tor Andersson
2011-11-01Tweak build scripts for iOS viewer.Tor Andersson
2011-11-01Add skeleton iOS viewer project.Tor Andersson
Support cross compiling for iPhone and iPad targets using the makefile.
2011-09-14Add Memento build option.Robin Watts
Import memento files. Update Makefile to support: make build=memento (like debug, but with memento too). Tiny tweak to cmapdump to avoid memento building that utility.
2011-04-25Add libs target, and webos OS settings.Robin Watts
Add libs (to allow for building of libraries without apps, such as will be required for the WebOS bindings). Add 2 webos OS setups to the Makerules file to match the 2 default webos configurations used in the PDK.
2011-04-25Add 'generate' make target to make font/cmap headers.Robin Watts
Simple tweak to aid cross compiling.
2011-04-25Makefile tweaks for cross compiling, plus example cross compile target.Robin Watts
Add 2 new makefile options to Mupdf. If CROSSCOMPILE is defined, then we avoid performing tasks during the build that require a binary to be built and then executed as part of the build. Currently this is just the cmap and font dumping steps. If NOX11 is defined, then we avoid building the X11 app. Finally, in Makerules, we have a new section to show how to encapsulate the changes for a given cross compile target. If OS is defined to be "beagle-cross" then we build using given compilers/options.
2011-04-07Simplify makefiles by use of $(wildcard) and chained rules.Tor Andersson