summaryrefslogtreecommitdiff
path: root/bindings/java-jni/jni/Android.mk
blob: 6f2520d36ef3387f16efa90734bf206be2f5d9c6 (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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# the purpose of this sample is to demonstrate how one can
# generate two distinct shared libraries and have them both
# uploaded in
#


LOCAL_PATH:= $(call my-dir)

# first lib, which will be built statically
#
include $(CLEAR_VARS)

STLPORT_BASE	:= $(NDK_WRAPPERS_BASE)/stlport

LOCAL_MODULE    := libswordcore
LOCAL_C_INCLUDES := ../sword/include
LOCAL_CFLAGS	+= -I$(STLPORT_BASE)/stlport \
		   -D__NEW__ \
		   -D__unix__ \
		   -D__SGI_STL_INTERNAL_PAIR_H \
		   -D_FTPLIB_NO_COMPAT \
		   -DANDROID \
		   -DOS_ANDROID
LOCAL_SRC_FILES := ../../../src/modules/comments/zcom/zcom.cpp \
../../../src/modules/comments/rawfiles/rawfiles.cpp \
../../../src/modules/comments/rawcom4/rawcom4.cpp \
../../../src/modules/comments/rawcom/rawcom.cpp \
../../../src/modules/comments/swcom.cpp \
../../../src/modules/comments/hrefcom/hrefcom.cpp \
../../../src/modules/swmodule.cpp \
../../../src/modules/tests/echomod.cpp \
../../../src/modules/genbook/swgenbook.cpp \
../../../src/modules/genbook/rawgenbook/rawgenbook.cpp \
../../../src/modules/lexdict/swld.cpp \
../../../src/modules/lexdict/rawld4/rawld4.cpp \
../../../src/modules/lexdict/zld/zld.cpp \
../../../src/modules/lexdict/rawld/rawld.cpp \
../../../src/modules/texts/rawtext/rawtext.cpp \
../../../src/modules/texts/rawtext4/rawtext4.cpp \
../../../src/modules/texts/swtext.cpp \
../../../src/modules/texts/ztext/ztext.cpp \
../../../src/modules/common/rawstr4.cpp \
../../../src/modules/common/lzsscomprs.cpp \
../../../src/modules/common/zipcomprs.cpp \
../../../src/modules/common/rawverse4.cpp \
../../../src/modules/common/swcipher.cpp \
../../../src/modules/common/swcomprs.cpp \
../../../src/modules/common/rawverse.cpp \
../../../src/modules/common/sapphire.cpp \
../../../src/modules/common/zstr.cpp \
../../../src/modules/common/entriesblk.cpp \
../../../src/modules/common/zverse.cpp \
../../../src/modules/common/rawstr.cpp \
../../../src/modules/filters/gbfwordjs.cpp \
../../../src/modules/filters/utf8latin1.cpp \
../../../src/modules/filters/utf8greekaccents.cpp \
../../../src/modules/filters/utf16utf8.cpp \
../../../src/modules/filters/gbfwebif.cpp \
../../../src/modules/filters/plainfootnotes.cpp \
../../../src/modules/filters/utf8transliterator.cpp \
../../../src/modules/filters/gbfstrongs.cpp \
../../../src/modules/filters/osisplain.cpp \
../../../src/modules/filters/thmlhtmlhref.cpp \
../../../src/modules/filters/thmlgbf.cpp \
../../../src/modules/filters/utf8utf16.cpp \
../../../src/modules/filters/utf8cantillation.cpp \
../../../src/modules/filters/utf8arshaping.cpp \
../../../src/modules/filters/cipherfil.cpp \
../../../src/modules/filters/thmlheadings.cpp \
../../../src/modules/filters/thmlscripref.cpp \
../../../src/modules/filters/latin1utf8.cpp \
../../../src/modules/filters/gbfhtml.cpp \
../../../src/modules/filters/thmlosis.cpp \
../../../src/modules/filters/utf8nfkd.cpp \
../../../src/modules/filters/thmlstrongs.cpp \
../../../src/modules/filters/osisvariants.cpp \
../../../src/modules/filters/thmlmorph.cpp \
../../../src/modules/filters/gbfplain.cpp \
../../../src/modules/filters/gbfhtmlhref.cpp \
../../../src/modules/filters/utf8html.cpp \
../../../src/modules/filters/utf8nfc.cpp \
../../../src/modules/filters/rtfhtml.cpp \
../../../src/modules/filters/gbfredletterwords.cpp \
../../../src/modules/filters/latin1utf16.cpp \
../../../src/modules/filters/osisscripref.cpp \
../../../src/modules/filters/thmlhtml.cpp \
../../../src/modules/filters/gbfthml.cpp \
../../../src/modules/filters/teihtmlhref.cpp \
../../../src/modules/filters/gbfrtf.cpp \
../../../src/modules/filters/gbfosis.cpp \
../../../src/modules/filters/teirtf.cpp \
../../../src/modules/filters/thmlwordjs.cpp \
../../../src/modules/filters/papyriplain.cpp \
../../../src/modules/filters/osisfootnotes.cpp \
../../../src/modules/filters/osiswordjs.cpp \
../../../src/modules/filters/osismorph.cpp \
../../../src/modules/filters/osislemma.cpp \
../../../src/modules/filters/osisredletterwords.cpp \
../../../src/modules/filters/osisrtf.cpp \
../../../src/modules/filters/gbfheadings.cpp \
../../../src/modules/filters/osisruby.cpp \
../../../src/modules/filters/osishtmlhref.cpp \
../../../src/modules/filters/utf8bidireorder.cpp \
../../../src/modules/filters/thmlrtf.cpp \
../../../src/modules/filters/swoptfilter.cpp \
../../../src/modules/filters/utf8arabicpoints.cpp \
../../../src/modules/filters/osisstrongs.cpp \
../../../src/modules/filters/osisheadings.cpp \
../../../src/modules/filters/unicodertf.cpp \
../../../src/modules/filters/gbffootnotes.cpp \
../../../src/modules/filters/greeklexattribs.cpp \
../../../src/modules/filters/osiswebif.cpp \
../../../src/modules/filters/thmlfootnotes.cpp \
../../../src/modules/filters/thmlplain.cpp \
../../../src/modules/filters/osisosis.cpp \
../../../src/modules/filters/utf8hebrewpoints.cpp \
../../../src/modules/filters/osismorphsegmentation.cpp \
../../../src/modules/filters/thmlwebif.cpp \
../../../src/modules/filters/thmlvariants.cpp \
../../../src/modules/filters/plainhtml.cpp \
../../../src/modules/filters/thmllemma.cpp \
../../../src/modules/filters/gbfmorph.cpp \
../../../src/modules/filters/teiplain.cpp \
../../../src/modules/filters/swbasicfilter.cpp \
../../../src/mgr/stringmgr.cpp \
../../../src/mgr/swmgr.cpp \
../../../src/mgr/swsearchable.cpp \
../../../src/mgr/localemgr.cpp \
../../../src/mgr/swconfig.cpp \
../../../src/mgr/markupfiltmgr.cpp \
../../../src/mgr/encfiltmgr.cpp \
../../../src/mgr/swfiltermgr.cpp \
../../../src/mgr/swcacher.cpp \
../../../src/mgr/installmgr.cpp \
../../../src/mgr/swlocale.cpp \
../../../src/mgr/filemgr.cpp \
../../../src/mgr/versemgr.cpp \
../../../src/mgr/ftptrans.cpp \
../../../src/mgr/ftplibftpt.cpp \
../../../src/utilfuns/swobject.cpp \
../../../src/utilfuns/roman.cpp \
../../../src/utilfuns/swbuf.cpp \
../../../src/utilfuns/utilstr.cpp \
../../../src/utilfuns/ftplib.c \
../../../src/utilfuns/ftpparse.c \
../../../src/utilfuns/url.cpp \
../../../src/utilfuns/swversion.cpp \
../../../src/utilfuns/utilxml.cpp \
../../../src/utilfuns/swunicod.cpp \
../../../src/utilfuns/regex.c \
../../../src/keys/swkey.cpp \
../../../src/keys/versetreekey.cpp \
../../../src/keys/treekeyidx.cpp \
../../../src/keys/versekey.cpp \
../../../src/keys/strkey.cpp \
../../../src/keys/treekey.cpp \
../../../src/keys/listkey.cpp \
../../../src/frontend/swdisp.cpp \
../../../src/frontend/swlog.cpp \
../../../src/utilfuns/zlib/untgz.c

#../../../../../sword/src/mgr/curlftpt.cpp \
#../../../../../sword/src/mgr/curlhttpt.cpp \
#../../../../../sword/src/utilfuns/win32/dirent.cpp \
#../../../../../sword/src/frontend/framework/femain.cpp \
#../../../../../sword/src/frontend/im/nullim.cpp \
#../../../../../sword/src/frontend/im/swinputmeth.cpp \
#../../../../../sword/src/frontend/im/hebrewmcim.cpp \

include $(BUILD_STATIC_LIBRARY)

# second lib, which will depend on and include the first one
#
include $(CLEAR_VARS)

STLPORT_BASE	:= $(NDK_WRAPPERS_BASE)/stlport

LOCAL_MODULE    := libsword
LOCAL_C_INCLUDES := ../sword/include
LOCAL_CFLAGS	+= -I$(STLPORT_BASE)/stlport \
		   -D__NEW__ \
		   -D__SGI_STL_INTERNAL_PAIR_H \
		   -DANDROID \
		   -DOS_ANDROID

LOCAL_LDLIBS	+= -L$(STLPORT_BASE)/build/lib/obj/arm-linux-gcc/so \
		   -lstlport -lz -llog

LOCAL_SRC_FILES := swordstub.cpp

LOCAL_STATIC_LIBRARIES := libswordcore

include $(BUILD_SHARED_LIBRARY)