blob: 3f18da28503a7fb61945bb87517a93d321534dcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
MY_ROOT := ../..
OPENJPEG := openjpeg
JPEG := jpeg
ZLIB := zlib
FREETYPE := freetype
V8 := v8-3.9
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DARCH_ARM -DARCH_THUMB -DARCH_ARM_CAN_LOAD_UNALIGNED
ifdef NDK_PROFILER
LOCAL_CFLAGS += -pg -DNDK_PROFILER -O2
endif
endif
LOCAL_CFLAGS += -DAA_BITS=8
ifdef MEMENTO
LOCAL_CFLAGS += -DMEMENTO -DMEMENTO_LEAKONLY
endif
LOCAL_C_INCLUDES := \
../thirdparty/jbig2dec \
../thirdparty/$(OPENJPEG)/libopenjpeg \
../thirdparty/$(JPEG) \
../thirdparty/$(ZLIB) \
../thirdparty/$(FREETYPE)/include \
../draw \
../fitz \
../pdf \
../xps \
../cbz \
../image \
../scripts \
..
ifdef V8_BUILD
LOCAL_C_INCLUDES += ../thirdparty/$(V8)/include
endif
LOCAL_MODULE := mupdfcore
LOCAL_SRC_FILES := \
$(MY_ROOT)/fitz/base_context.c \
$(MY_ROOT)/fitz/base_error.c \
$(MY_ROOT)/fitz/base_geometry.c \
$(MY_ROOT)/fitz/base_getopt.c \
$(MY_ROOT)/fitz/base_hash.c \
$(MY_ROOT)/fitz/base_memory.c \
$(MY_ROOT)/fitz/base_string.c \
$(MY_ROOT)/fitz/base_time.c \
$(MY_ROOT)/fitz/base_xml.c \
$(MY_ROOT)/fitz/crypt_aes.c \
$(MY_ROOT)/fitz/crypt_arc4.c \
$(MY_ROOT)/fitz/crypt_md5.c \
$(MY_ROOT)/fitz/crypt_sha2.c \
$(MY_ROOT)/fitz/dev_bbox.c \
$(MY_ROOT)/fitz/dev_list.c \
$(MY_ROOT)/fitz/dev_null.c \
$(MY_ROOT)/fitz/dev_trace.c \
$(MY_ROOT)/fitz/doc_document.c \
$(MY_ROOT)/fitz/doc_interactive.c \
$(MY_ROOT)/fitz/doc_link.c \
$(MY_ROOT)/fitz/doc_outline.c \
$(MY_ROOT)/fitz/filt_basic.c \
$(MY_ROOT)/fitz/filt_dctd.c \
$(MY_ROOT)/fitz/filt_faxd.c \
$(MY_ROOT)/fitz/filt_flate.c \
$(MY_ROOT)/fitz/filt_jbig2d.c \
$(MY_ROOT)/fitz/filt_lzwd.c \
$(MY_ROOT)/fitz/filt_predict.c \
$(MY_ROOT)/fitz/image_jpx.c \
$(MY_ROOT)/fitz/image_jpeg.c \
$(MY_ROOT)/fitz/image_png.c \
$(MY_ROOT)/fitz/image_tiff.c \
$(MY_ROOT)/fitz/res_colorspace.c \
$(MY_ROOT)/fitz/res_font.c \
$(MY_ROOT)/fitz/res_func.c \
$(MY_ROOT)/fitz/res_image.c \
$(MY_ROOT)/fitz/res_path.c \
$(MY_ROOT)/fitz/res_pixmap.c \
$(MY_ROOT)/fitz/res_store.c \
$(MY_ROOT)/fitz/res_text.c \
$(MY_ROOT)/fitz/stm_buffer.c \
$(MY_ROOT)/fitz/stm_comp_buf.c \
$(MY_ROOT)/fitz/stm_open.c \
$(MY_ROOT)/fitz/stm_output.c \
$(MY_ROOT)/fitz/stm_read.c \
$(MY_ROOT)/fitz/text_extract.c \
$(MY_ROOT)/fitz/text_output.c \
$(MY_ROOT)/fitz/text_paragraph.c \
$(MY_ROOT)/fitz/text_search.c \
$(MY_ROOT)/draw/draw_affine.c \
$(MY_ROOT)/draw/draw_blend.c \
$(MY_ROOT)/draw/draw_device.c \
$(MY_ROOT)/draw/draw_edge.c \
$(MY_ROOT)/draw/draw_glyph.c \
$(MY_ROOT)/draw/draw_mesh.c \
$(MY_ROOT)/draw/draw_paint.c \
$(MY_ROOT)/draw/draw_path.c \
$(MY_ROOT)/draw/draw_simple_scale.c \
$(MY_ROOT)/draw/draw_unpack.c \
$(MY_ROOT)/ucdn/ucdn.c \
$(MY_ROOT)/pdf/pdf_annot.c \
$(MY_ROOT)/pdf/pdf_cmap.c \
$(MY_ROOT)/pdf/pdf_cmap_load.c \
$(MY_ROOT)/pdf/pdf_cmap_parse.c \
$(MY_ROOT)/pdf/pdf_cmap_table.c \
$(MY_ROOT)/pdf/pdf_colorspace.c \
$(MY_ROOT)/pdf/pdf_crypt.c \
$(MY_ROOT)/pdf/pdf_device.c \
$(MY_ROOT)/pdf/pdf_encoding.c \
$(MY_ROOT)/pdf/pdf_event.c \
$(MY_ROOT)/pdf/pdf_field.c \
$(MY_ROOT)/pdf/pdf_font.c \
$(MY_ROOT)/pdf/pdf_fontfile.c \
$(MY_ROOT)/pdf/pdf_form.c \
$(MY_ROOT)/pdf/pdf_function.c \
$(MY_ROOT)/pdf/pdf_image.c \
$(MY_ROOT)/pdf/pdf_interpret.c \
$(MY_ROOT)/pdf/pdf_lex.c \
$(MY_ROOT)/pdf/pdf_metrics.c \
$(MY_ROOT)/pdf/pdf_nametree.c \
$(MY_ROOT)/pdf/pdf_object.c \
$(MY_ROOT)/pdf/pdf_outline.c \
$(MY_ROOT)/pdf/pdf_page.c \
$(MY_ROOT)/pdf/pdf_parse.c \
$(MY_ROOT)/pdf/pdf_pattern.c \
$(MY_ROOT)/pdf/pdf_repair.c \
$(MY_ROOT)/pdf/pdf_shade.c \
$(MY_ROOT)/pdf/pdf_stream.c \
$(MY_ROOT)/pdf/pdf_store.c \
$(MY_ROOT)/pdf/pdf_type3.c \
$(MY_ROOT)/pdf/pdf_unicode.c \
$(MY_ROOT)/pdf/pdf_write.c \
$(MY_ROOT)/pdf/pdf_xobject.c \
$(MY_ROOT)/pdf/pdf_xref.c \
$(MY_ROOT)/pdf/pdf_xref_aux.c \
$(MY_ROOT)/xps/xps_common.c \
$(MY_ROOT)/xps/xps_doc.c \
$(MY_ROOT)/xps/xps_glyphs.c \
$(MY_ROOT)/xps/xps_gradient.c \
$(MY_ROOT)/xps/xps_image.c \
$(MY_ROOT)/xps/xps_outline.c \
$(MY_ROOT)/xps/xps_path.c \
$(MY_ROOT)/xps/xps_resource.c \
$(MY_ROOT)/xps/xps_tile.c \
$(MY_ROOT)/xps/xps_util.c \
$(MY_ROOT)/xps/xps_zip.c \
$(MY_ROOT)/cbz/mucbz.c \
$(MY_ROOT)/image/muimage.c
ifdef MEMENTO
LOCAL_SRC_FILES += $(MY_ROOT)/fitz/memento.c
endif
ifdef V8_BUILD
ifeq ($(V8_OK),1)
LOCAL_SRC_FILES += \
$(MY_ROOT)/pdf/pdf_js.c \
$(MY_ROOT)/pdf/pdf_jsimp_cpp.c \
$(MY_ROOT)/pdf/pdf_jsimp_v8.cpp
else
LOCAL_SRC_FILES += \
$(MY_ROOT)/pdf/pdf_js_none.c
endif
else
LOCAL_SRC_FILES += \
$(MY_ROOT)/pdf/pdf_js_none.c
endif
LOCAL_LDLIBS := -lm -llog -ljnigraphics
include $(BUILD_STATIC_LIBRARY)
|