• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE := libcxcore
6LOCAL_MODULE_TAGS := optional
7
8LOCAL_C_INCLUDES := \
9        $(LOCAL_PATH)/cxcore/include
10LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
11
12# cxmathfuncs.cpp has implicit cast of int struct fields.
13LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
14
15LOCAL_SRC_FILES := \
16        cxcore/src/cxalloc.cpp \
17        cxcore/src/cxarithm.cpp \
18        cxcore/src/cxarray.cpp \
19        cxcore/src/cxcmp.cpp \
20        cxcore/src/cxconvert.cpp \
21        cxcore/src/cxcopy.cpp \
22        cxcore/src/cxdatastructs.cpp \
23        cxcore/src/cxdrawing.cpp \
24        cxcore/src/cxdxt.cpp \
25        cxcore/src/cxerror.cpp \
26        cxcore/src/cximage.cpp \
27        cxcore/src/cxjacobieigens.cpp \
28        cxcore/src/cxlogic.cpp \
29        cxcore/src/cxlut.cpp \
30        cxcore/src/cxmathfuncs.cpp \
31        cxcore/src/cxmatmul.cpp \
32        cxcore/src/cxmatrix.cpp \
33        cxcore/src/cxmean.cpp \
34        cxcore/src/cxmeansdv.cpp \
35        cxcore/src/cxminmaxloc.cpp \
36        cxcore/src/cxnorm.cpp \
37        cxcore/src/cxouttext.cpp \
38        cxcore/src/cxpersistence.cpp \
39        cxcore/src/cxprecomp.cpp \
40        cxcore/src/cxrand.cpp \
41        cxcore/src/cxsumpixels.cpp \
42        cxcore/src/cxsvd.cpp \
43        cxcore/src/cxswitcher.cpp \
44        cxcore/src/cxtables.cpp \
45        cxcore/src/cxutils.cpp
46
47include $(BUILD_STATIC_LIBRARY)
48
49
50
51include $(CLEAR_VARS)
52
53LOCAL_MODULE    := libcv
54LOCAL_MODULE_TAGS := optional
55
56LOCAL_C_INCLUDES := \
57        $(LOCAL_PATH)/cxcore/include \
58        $(LOCAL_PATH)/cxcore/src \
59        $(LOCAL_PATH)/cv/include
60LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
61
62LOCAL_SRC_FILES := \
63        cv/src/cvaccum.cpp \
64        cv/src/cvadapthresh.cpp \
65        cv/src/cvapprox.cpp \
66        cv/src/cvcalccontrasthistogram.cpp \
67        cv/src/cvcalcimagehomography.cpp \
68        cv/src/cvcalibinit.cpp \
69        cv/src/cvcalibration.cpp \
70        cv/src/cvcamshift.cpp \
71        cv/src/cvcanny.cpp \
72        cv/src/cvcolor.cpp \
73        cv/src/cvcondens.cpp \
74        cv/src/cvcontours.cpp \
75        cv/src/cvcontourtree.cpp \
76        cv/src/cvconvhull.cpp \
77        cv/src/cvcorner.cpp \
78        cv/src/cvcornersubpix.cpp \
79        cv/src/cvderiv.cpp \
80        cv/src/cvdistransform.cpp \
81        cv/src/cvdominants.cpp \
82        cv/src/cvemd.cpp \
83        cv/src/cvfeatureselect.cpp \
84        cv/src/cvfilter.cpp \
85        cv/src/cvfloodfill.cpp \
86        cv/src/cvfundam.cpp \
87        cv/src/cvgeometry.cpp \
88        cv/src/cvhaar.cpp \
89        cv/src/cvhistogram.cpp \
90        cv/src/cvhough.cpp \
91        cv/src/cvimgwarp.cpp \
92        cv/src/cvinpaint.cpp \
93        cv/src/cvkalman.cpp \
94        cv/src/cvlinefit.cpp \
95        cv/src/cvlkpyramid.cpp \
96        cv/src/cvmatchcontours.cpp \
97        cv/src/cvmoments.cpp \
98        cv/src/cvmorph.cpp \
99        cv/src/cvmotempl.cpp \
100        cv/src/cvoptflowbm.cpp \
101        cv/src/cvoptflowhs.cpp \
102        cv/src/cvoptflowlk.cpp \
103        cv/src/cvpgh.cpp \
104        cv/src/cvposit.cpp \
105        cv/src/cvprecomp.cpp \
106        cv/src/cvpyramids.cpp \
107        cv/src/cvpyrsegmentation.cpp \
108        cv/src/cvrotcalipers.cpp \
109        cv/src/cvsamplers.cpp \
110        cv/src/cvsegmentation.cpp \
111        cv/src/cvshapedescr.cpp \
112        cv/src/cvsmooth.cpp \
113        cv/src/cvsnakes.cpp \
114        cv/src/cvstereobm.cpp \
115        cv/src/cvstereogc.cpp \
116        cv/src/cvsubdivision2d.cpp \
117        cv/src/cvsumpixels.cpp \
118        cv/src/cvsurf.cpp \
119        cv/src/cvswitcher.cpp \
120        cv/src/cvtables.cpp \
121        cv/src/cvtemplmatch.cpp \
122        cv/src/cvthresh.cpp \
123        cv/src/cvundistort.cpp \
124        cv/src/cvutils.cpp \
125        cv/src/mycvHaarDetectObjects.cpp
126#        cv/src/cvkdtree.cpp \
127
128include $(BUILD_STATIC_LIBRARY)
129
130
131
132include $(CLEAR_VARS)
133
134LOCAL_MODULE    := libcvaux
135LOCAL_MODULE_TAGS := optional
136LOCAL_C_INCLUDES := \
137        $(LOCAL_PATH)/cv/src \
138        $(LOCAL_PATH)/cv/include \
139        $(LOCAL_PATH)/cxcore/include \
140        $(LOCAL_PATH)/cvaux/include
141LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
142
143LOCAL_SRC_FILES := \
144        cvaux/src/camshift.cpp \
145        cvaux/src/cvaux.cpp \
146        cvaux/src/cvauxutils.cpp \
147        cvaux/src/cvbgfg_acmmm2003.cpp \
148        cvaux/src/cvbgfg_codebook.cpp \
149        cvaux/src/cvbgfg_common.cpp \
150        cvaux/src/cvbgfg_gaussmix.cpp \
151        cvaux/src/cvcalibfilter.cpp \
152        cvaux/src/cvclique.cpp \
153        cvaux/src/cvcorrespond.cpp \
154        cvaux/src/cvcorrimages.cpp \
155        cvaux/src/cvcreatehandmask.cpp \
156        cvaux/src/cvdpstereo.cpp \
157        cvaux/src/cveigenobjects.cpp \
158        cvaux/src/cvepilines.cpp \
159        cvaux/src/cvface.cpp \
160        cvaux/src/cvfacedetection.cpp \
161        cvaux/src/cvfacetemplate.cpp \
162        cvaux/src/cvfindface.cpp \
163        cvaux/src/cvfindhandregion.cpp \
164        cvaux/src/cvhmm.cpp \
165        cvaux/src/cvhmm1d.cpp \
166        cvaux/src/cvhmmobs.cpp \
167        cvaux/src/cvlcm.cpp \
168        cvaux/src/cvlee.cpp \
169        cvaux/src/cvlevmar.cpp \
170        cvaux/src/cvlevmarprojbandle.cpp \
171        cvaux/src/cvlevmartrif.cpp \
172        cvaux/src/cvlines.cpp \
173        cvaux/src/cvlmeds.cpp \
174        cvaux/src/cvmat.cpp \
175        cvaux/src/cvmorphcontours.cpp \
176        cvaux/src/cvmorphing.cpp \
177        cvaux/src/cvprewarp.cpp \
178        cvaux/src/cvscanlines.cpp \
179        cvaux/src/cvsegment.cpp \
180        cvaux/src/cvsubdiv2.cpp \
181        cvaux/src/cvtexture.cpp \
182        cvaux/src/cvtrifocal.cpp \
183        cvaux/src/cvvecfacetracking.cpp \
184        cvaux/src/cvvideo.cpp \
185        cvaux/src/decomppoly.cpp \
186        cvaux/src/enmin.cpp \
187        cvaux/src/extendededges.cpp \
188        cvaux/src/precomp.cpp
189#        cvaux/src/cv3dtracker.cpp \
190
191include $(BUILD_STATIC_LIBRARY)
192
193
194
195include $(CLEAR_VARS)
196
197LOCAL_MODULE    := libcvml
198LOCAL_MODULE_TAGS := optional
199LOCAL_C_INCLUDES := \
200        $(LOCAL_PATH)/cv/src \
201        $(LOCAL_PATH)/cv/include \
202        $(LOCAL_PATH)/cxcore/include \
203        $(LOCAL_PATH)/ml/include
204LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
205
206LOCAL_SRC_FILES := \
207        ml/src/ml.cpp \
208        ml/src/mlann_mlp.cpp \
209        ml/src/mlboost.cpp \
210        ml/src/mlcnn.cpp \
211        ml/src/mlem.cpp \
212        ml/src/mlestimate.cpp \
213        ml/src/mlknearest.cpp \
214        ml/src/mlnbayes.cpp \
215        ml/src/mlrtrees.cpp \
216        ml/src/mlsvm.cpp \
217        ml/src/mltestset.cpp \
218        ml/src/mltree.cpp \
219        ml/src/ml_inner_functions.cpp
220
221include $(BUILD_STATIC_LIBRARY)
222
223
224
225include $(CLEAR_VARS)
226
227LOCAL_MODULE    := libcvhighgui
228LOCAL_MODULE_TAGS := optional
229LOCAL_C_INCLUDES := \
230        $(LOCAL_PATH)/cv/src \
231        $(LOCAL_PATH)/cv/include \
232        $(LOCAL_PATH)/cxcore/include \
233        $(LOCAL_PATH)/otherlibs/highgui \
234        external/jpeg
235
236LOCAL_SHARED_LIBRARIES += libjpeg
237
238LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%) -DHAVE_JPEG
239
240# grfmt_tiff.cpp has implicit cast of int struct fields.
241LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
242
243LOCAL_SRC_FILES := \
244        otherlibs/highgui/bitstrm.cpp \
245        otherlibs/highgui/grfmt_base.cpp \
246        otherlibs/highgui/grfmt_bmp.cpp \
247        otherlibs/highgui/grfmt_exr.cpp \
248        otherlibs/highgui/grfmt_imageio.cpp \
249        otherlibs/highgui/grfmt_jpeg.cpp \
250        otherlibs/highgui/grfmt_jpeg2000.cpp \
251        otherlibs/highgui/grfmt_png.cpp \
252        otherlibs/highgui/grfmt_pxm.cpp \
253        otherlibs/highgui/grfmt_sunras.cpp \
254        otherlibs/highgui/grfmt_tiff.cpp \
255        otherlibs/highgui/image.cpp \
256        otherlibs/highgui/loadsave.cpp \
257        otherlibs/highgui/precomp.cpp \
258        otherlibs/highgui/utils.cpp \
259        otherlibs/highgui/cvcap.cpp \
260        otherlibs/highgui/cvcap_socket.cpp
261
262include $(BUILD_STATIC_LIBRARY)
263
264include $(CLEAR_VARS)
265
266LOCAL_MODULE    := libopencv
267LOCAL_MODULE_TAGS := optional
268
269include $(LOCAL_PATH)/libopencv.mk
270
271LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
272
273
274LOCAL_SRC_FILES := \
275        WLNonFileByteStream.cpp
276
277
278LOCAL_STATIC_LIBRARIES := libcxcore libcv libcvaux libcvml libcvhighgui
279
280include $(BUILD_STATIC_LIBRARY)
281