diff options
author | Robin Watts <robin@peeves.(none)> | 2012-06-20 10:29:46 -0700 |
---|---|---|
committer | Robin Watts <robin@peeves.(none)> | 2012-06-20 10:29:46 -0700 |
commit | d31ca70598643eb40477eba0c3782425f54c554c (patch) | |
tree | d2dc6899e55838f161d948809e489deacb96027e /Makethird | |
parent | a5b9648b0c6e6b9bc7f5ddfdf35e30c5d50e14f2 (diff) | |
download | mupdf-d31ca70598643eb40477eba0c3782425f54c554c.tar.xz |
Makefile changes to enable mupdf-v8 and mujstest-v8 on linux.
If the v8 lib is present in thirdparty, add the above binaries
to the 'all' target.
Diffstat (limited to 'Makethird')
-rw-r--r-- | Makethird | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -9,6 +9,30 @@ JBIG2DEC_DIR := $(wildcard thirdparty/jbig2dec*) JPEG_DIR := $(wildcard thirdparty/jpeg*) OPENJPEG_DIR := $(wildcard thirdparty/openjpeg*/libopenjpeg) ZLIB_DIR := $(wildcard thirdparty/zlib*) +V8_DIR := $(wildcard thirdparty/v8*/) + +# --- V8 --- + +ifneq "$(V8_DIR)" "" + +CFLAGS += -I$(V8_DIR)/include +ifeq "$(BUILD)" "release" +V8LIB_CHOICE := release +else ifeq "$(BUILD)" "profile" +V8LIB_CHOICE := release +else +V8LIB_CHOICE := debug +endif + +# If you are building for 32bit linux use V8_ARCH=ia32 +V8_ARCH ?= x64 + +V8LIBS = -L$(V8_DIR)/out/$(V8_ARCH).$(V8LIB_CHOICE)/obj.target/tools/gyp + +V8_PRESENT := 1 +else +V8_PRESENT := 0 +endif # --- FreeType 2 --- |