diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-30 17:49:04 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-31 13:00:41 +0200 |
commit | d68576c3785572c1f5d41f83015b8fe6bbcbe9e8 (patch) | |
tree | 431a86edfac640864ba7f406611e8fe9929908cd /platform/android/viewer/jni/Core.mk | |
parent | 32cdb2246eeb9e8109a712ec2a5dd2938e30e9b6 (diff) | |
download | mupdf-d68576c3785572c1f5d41f83015b8fe6bbcbe9e8.tar.xz |
Reorganize java and android source.
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.
Diffstat (limited to 'platform/android/viewer/jni/Core.mk')
-rw-r--r-- | platform/android/viewer/jni/Core.mk | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/platform/android/viewer/jni/Core.mk b/platform/android/viewer/jni/Core.mk new file mode 100644 index 00000000..76241841 --- /dev/null +++ b/platform/android/viewer/jni/Core.mk @@ -0,0 +1,80 @@ +LOCAL_PATH := $(call my-dir) + +ifdef SUPPORT_GPROOF +include $(CLEAR_VARS) +LOCAL_MODULE := gsso +LOCAL_SRC_FILES := libgs.so +include $(PREBUILT_SHARED_LIBRARY) +endif + +include $(CLEAR_VARS) + +MY_ROOT := ../../.. + +LOCAL_CFLAGS += -Wall -Wno-maybe-uninitialized + +ifeq ($(TARGET_ARCH),arm) +LOCAL_CFLAGS += -DARCH_ARM -DARCH_THUMB -DARCH_ARM_CAN_LOAD_UNALIGNED +ifdef NDK_PROFILER +LOCAL_CFLAGS += -pg -DNDK_PROFILER +endif +endif +ifdef SUPPORT_GPROOF +LOCAL_CFLAGS += -DSUPPORT_GPROOF +endif +LOCAL_CFLAGS += -DAA_BITS=8 +ifdef MEMENTO +LOCAL_CFLAGS += -DMEMENTO -DMEMENTO_LEAKONLY +endif +ifdef SSL_BUILD +LOCAL_CFLAGS += -DHAVE_OPENSSL +endif + +LOCAL_C_INCLUDES := \ + $(MY_ROOT)/thirdparty/harfbuzz/src \ + $(MY_ROOT)/thirdparty/jbig2dec \ + $(MY_ROOT)/thirdparty/openjpeg/libopenjpeg \ + $(MY_ROOT)/thirdparty/jpeg \ + $(MY_ROOT)/thirdparty/mujs \ + $(MY_ROOT)/thirdparty/zlib \ + $(MY_ROOT)/thirdparty/freetype/include \ + $(MY_ROOT)/source/fitz \ + $(MY_ROOT)/source/pdf \ + $(MY_ROOT)/source/xps \ + $(MY_ROOT)/source/cbz \ + $(MY_ROOT)/source/img \ + $(MY_ROOT)/source/tiff \ + $(MY_ROOT)/scripts/freetype \ + $(MY_ROOT)/scripts/jpeg \ + $(MY_ROOT)/scripts/openjpeg \ + $(MY_ROOT)/generated \ + $(MY_ROOT)/resources \ + $(MY_ROOT)/include \ + $(MY_ROOT) +ifdef V8_BUILD +LOCAL_C_INCLUDES += $(MY_ROOT)/thirdparty/$(V8)/include +endif +ifdef SSL_BUILD +LOCAL_C_INCLUDES += $(MY_ROOT)/thirdparty/openssl/include +endif + +LOCAL_MODULE := mupdfcore +LOCAL_SRC_FILES := \ + $(wildcard $(MY_ROOT)/source/fitz/*.c) \ + $(wildcard $(MY_ROOT)/source/pdf/*.c) \ + $(wildcard $(MY_ROOT)/source/xps/*.c) \ + $(wildcard $(MY_ROOT)/source/cbz/*.c) \ + $(wildcard $(MY_ROOT)/source/gprf/*.c) \ + $(wildcard $(MY_ROOT)/source/html/*.c) \ + $(wildcard $(MY_ROOT)/generated/*.c) +LOCAL_SRC_FILES += \ + $(MY_ROOT)/source/pdf/js/pdf-js.c \ + +ifdef SUPPORT_GPROOF +LOCAL_SHARED_LIBRARIES := gsso +endif +LOCAL_LDLIBS := -lm -llog -ljnigraphics + +LOCAL_SRC_FILES := $(addprefix ../, $(LOCAL_SRC_FILES)) + +include $(BUILD_STATIC_LIBRARY) |