.a库的介绍
库的名字一般是libxxxx.a,利用静态函数库编译成的文件比较大,是因为在链接阶段,会将汇编生成的目标文件.o与引用到的库一起链接打包到可执行文件,对应的链接方式为静态链接。静态库的代码在编译时链接到应用程序中,因此编译时库文件必须存在,并且需要通过"-L" 参数传递路径给编译器,应用程序在开始执行时,库函数代码将随程序一起调入进程内存段直到进程结束,执行过程中不需要原静态库存在。
优点:
即编译后的执行程序不需要外部的函数库支持,因为所有使用的函数都已经被编译进去了。
程序在运行时与函数库再无瓜葛,移植方便
缺点:静态函数库改变了,程序重新进行编译。
静态库编译案例
LOCAL_PATH:= $(call my-dir)
#Use true to build with renderscript, false to build without
WITH_RENDERSCRIPT = falseinclude $(CLEAR_VARS)# b/31559947, Some files caused clang-analyzer-* checks to segmentation fault.
LOCAL_TIDY_CHECKS := -clang-analyzer-*#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_core
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/modules/hal/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_LDLIBS := -llog -lz -ldl
# cxmathfuncs.cpp has implicit cast of int struct fields.
LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
LOCAL_SRC_FILES := \modules/core/src/algorithm.cpp \modules/core/src/copy.cpp \modules/core/src/lda.cpp \modules/core/src/opengl.cpp \modules/core/src/stat.cpp \modules/core/src/alloc.cpp \modules/core/src/downhill_simplex.cpp \modules/core/src/lpsolver.cpp \modules/core/src/out.cpp \modules/core/src/stl.cpp \modules/core/src/arithm.cpp \modules/core/src/cuda_gpu_mat.cpp \modules/core/src/dxt.cpp \modules/core/src/mathfuncs.cpp \modules/core/src/parallel.cpp \modules/core/src/system.cpp \modules/core/src/array.cpp \modules/core/src/cuda_host_mem.cpp \modules/core/src/matmul.cpp \modules/core/src/parallel_pthreads.cpp \modules/core/src/tables.cpp \modules/core/src/cuda_info.cpp \modules/core/src/matop.cpp \modules/core/src/pca.cpp \modules/core/src/types.cpp \modules/core/src/command_line_parser.cpp \modules/core/src/cuda_stream.cpp \modules/core/src/glob.cpp \modules/core/src/matrix.cpp \modules/core/src/persistence.cpp \modules/core/src/umatrix.cpp \modules/core/src/conjugate_gradient.cpp \modules/core/src/datastructs.cpp \modules/core/src/kmeans.cpp \modules/core/src/ocl.cpp \modules/core/src/convert.cpp \modules/core/src/directx.cpp \modules/core/src/lapack.cpp \modules/core/src/rand.cppLOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_calib3d
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_CPPFLAGS += -Wno-c++11-narrowing
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/calib3d/src \$(LOCAL_PATH)/modules/calib3d \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/modules/java/generator/src/cpp/common.hLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_SRC_FILES := \modules/calib3d/src/calibinit.cpp \modules/calib3d/src/calibration.cpp \modules/calib3d/src/checkchessboard.cpp \modules/calib3d/src/circlesgrid.cpp \modules/calib3d/src/compat_ptsetreg.cpp \modules/calib3d/src/compat_stereo.cpp \modules/calib3d/src/dls.cpp \modules/calib3d/src/epnp.cpp \modules/calib3d/src/fisheye.cpp \modules/calib3d/src/five-point.cpp \modules/calib3d/src/fundam.cpp \modules/calib3d/src/homography_decomp.cpp \modules/calib3d/src/levmarq.cpp \modules/calib3d/src/p3p.cpp \modules/calib3d/src/polynom_solver.cpp \modules/calib3d/src/posit.cpp \modules/calib3d/src/ptsetreg.cpp \modules/calib3d/src/quadsubpix.cpp \modules/calib3d/src/rho.cpp \modules/calib3d/src/solvepnp.cpp \modules/calib3d/src/stereobm.cpp \modules/calib3d/src/stereosgbm.cpp \modules/calib3d/src/triangulate.cpp \modules/calib3d/src/upnp.cpp \modules/calib3d/opencl_kernels_calib3d.cppLOCAL_STATIC_LIBRARIES := libopencv_hal libopencv_imgproc libopencv_flann libopencv_core libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_features2dinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_features2d
LOCAL_HEADER_LIBRARIES := jni_headers
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/features2d \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/features2d/src/kaze \$(LOCAL_PATH)/modules/java/generator/src/cppLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/features2d/src/agast.cpp \modules/features2d/src/agast_score.cpp \modules/features2d/src/akaze.cpp \modules/features2d/src/bagofwords.cpp \modules/features2d/src/blobdetector.cpp \modules/features2d/src/brisk.cpp \modules/features2d/src/draw.cpp \modules/features2d/src/dynamic.cpp \modules/features2d/src/evaluation.cpp \modules/features2d/src/fast.cpp \modules/features2d/src/fast_score.cpp \modules/features2d/src/feature2d.cpp \modules/features2d/src/gftt.cpp \modules/features2d/src/kaze.cpp \modules/features2d/src/keypoint.cpp \modules/features2d/src/matchers.cpp \modules/features2d/src/mser.cpp \modules/features2d/src/orb.cpp \modules/features2d/src/kaze/KAZEFeatures.cpp \modules/features2d/src/kaze/nldiffusion_functions.cpp \modules/features2d/src/kaze/AKAZEFeatures.cpp \modules/features2d/src/kaze/fed.cpp \modules/features2d/opencl_kernels_features2d.cpp \modules/features2d/misc/java/src/cpp/features2d_converters.cpp \modules/java/generator/src/cpp/converters.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_LDLIBS := -ldlLOCAL_MODULE := libopencv_flannLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/opencv2LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/flann/src/miniflann.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_hal
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/hal \$(LOCAL_PATH)/modules/hal/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_SRC_FILES := \modules/hal/src/arithm.cpp \modules/hal/src/color.cpp \modules/hal/src/filter.cpp \modules/hal/src/mathfuncs.cpp \modules/hal/src/matrix.cpp \modules/hal/src/resize.cpp \modules/hal/src/stat.cpp \modules/hal/src/warp.cppLOCAL_SHARED_LIBRARIES := libopencv_coreinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_highgui
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/highgui \$(LOCAL_PATH)/opencv2LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/highgui/src/window.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_imgcodecs libopencv_videoio libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libjasperLOCAL_RTTI_FLAG := -frttiLOCAL_CFLAGS := -DEXCLUDE_MIF_SUPPORT -DEXCLUDE_PNM_SUPPORT -DEXCLUDE_BMP_SUPPORT -DEXCLUDE_RAS_SUPPORT -DEXCLUDE_JPG_SUPPORT -DEXCLUDE_PGX_SUPPORT -Wno-implicit-function-declarationLOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-unused-functionLOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/libjasper \$(LOCAL_PATH)/3rdparty/libjasper/jasperLOCAL_SRC_FILES := \3rdparty/libjasper/jpc_enc.c \3rdparty/libjasper/jas_getopt.c \3rdparty/libjasper/jas_stream.c \3rdparty/libjasper/jas_string.c \3rdparty/libjasper/jpc_util.c \3rdparty/libjasper/jpc_bs.c \3rdparty/libjasper/jpc_tsfb.c \3rdparty/libjasper/jpc_math.c \3rdparty/libjasper/jas_version.c \3rdparty/libjasper/jpc_t2cod.c \3rdparty/libjasper/jpc_t2enc.c \3rdparty/libjasper/jpc_qmfb.c \3rdparty/libjasper/jas_init.c \3rdparty/libjasper/jpc_mct.c \3rdparty/libjasper/jp2_dec.c \3rdparty/libjasper/jas_iccdata.c \3rdparty/libjasper/jpc_cs.c \3rdparty/libjasper/jpc_t2dec.c \3rdparty/libjasper/jas_cm.c \3rdparty/libjasper/jpc_t1cod.c \3rdparty/libjasper/jas_tvp.c \3rdparty/libjasper/jp2_cod.c \3rdparty/libjasper/jpc_mqenc.c \3rdparty/libjasper/jp2_enc.c \3rdparty/libjasper/jas_seq.c \3rdparty/libjasper/jas_icc.c \3rdparty/libjasper/jpc_t1enc.c \3rdparty/libjasper/jas_malloc.c \3rdparty/libjasper/jas_debug.c \3rdparty/libjasper/jpc_tagtree.c \3rdparty/libjasper/jpc_mqdec.c \3rdparty/libjasper/jpc_mqcod.c \3rdparty/libjasper/jas_image.c \3rdparty/libjasper/jas_tmr.c \3rdparty/libjasper/jpc_dec.c \3rdparty/libjasper/jpc_t1dec.cinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := opencv_libjpeg
LOCAL_RTTI_FLAG := -frtti
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/libjpegLOCAL_SRC_FILES := \3rdparty/libjpeg/jdapistd.c \3rdparty/libjpeg/jquant2.c \3rdparty/libjpeg/jdmerge.c \3rdparty/libjpeg/jdmaster.c \3rdparty/libjpeg/jmemmgr.c \3rdparty/libjpeg/jfdctint.c \3rdparty/libjpeg/jcmainct.c \3rdparty/libjpeg/jdapimin.c \3rdparty/libjpeg/jdatasrc.c \3rdparty/libjpeg/jdmarker.c \3rdparty/libjpeg/jdcolor.c \3rdparty/libjpeg/jctrans.c \3rdparty/libjpeg/jcapimin.c \3rdparty/libjpeg/jmemnobs.c \3rdparty/libjpeg/jchuff.c \3rdparty/libjpeg/jdpostct.c \3rdparty/libjpeg/jdcoefct.c \3rdparty/libjpeg/jcapistd.c \3rdparty/libjpeg/jutils.c \3rdparty/libjpeg/jdmainct.c \3rdparty/libjpeg/jdatadst.c \3rdparty/libjpeg/jquant1.c \3rdparty/libjpeg/jcinit.c \3rdparty/libjpeg/jddctmgr.c \3rdparty/libjpeg/jdinput.c \3rdparty/libjpeg/jidctfst.c \3rdparty/libjpeg/jcarith.c \3rdparty/libjpeg/jcomapi.c \3rdparty/libjpeg/jidctint.c \3rdparty/libjpeg/jcmarker.c \3rdparty/libjpeg/jdtrans.c \3rdparty/libjpeg/jccolor.c \3rdparty/libjpeg/jfdctfst.c \3rdparty/libjpeg/jdsample.c \3rdparty/libjpeg/jcmaster.c \3rdparty/libjpeg/jccoefct.c \3rdparty/libjpeg/jcparam.c \3rdparty/libjpeg/jaricom.c \3rdparty/libjpeg/jdhuff.c \3rdparty/libjpeg/jdarith.c \3rdparty/libjpeg/jfdctflt.c \3rdparty/libjpeg/jcprepct.c \3rdparty/libjpeg/jcsample.c \3rdparty/libjpeg/jidctflt.c \3rdparty/libjpeg/jcdctmgr.c \3rdparty/libjpeg/jerror.cLOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variableinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libtiffLOCAL_RTTI_FLAG := -frttiLOCAL_LDLIBS := -lzLOCAL_CFLAGS := -Wno-implicit-function-declaration
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/libtiffLOCAL_SRC_FILES := \3rdparty/libtiff/tif_jpeg.c \3rdparty/libtiff/tif_write.c \3rdparty/libtiff/tif_error.c \3rdparty/libtiff/tif_swab.c \3rdparty/libtiff/tif_strip.c \3rdparty/libtiff/tif_extension.c \3rdparty/libtiff/tif_jpeg_12.c \3rdparty/libtiff/tif_pixarlog.c \3rdparty/libtiff/tif_dirwrite.c \3rdparty/libtiff/tif_dirread.c \3rdparty/libtiff/tif_flush.c \3rdparty/libtiff/tif_lzma.c \3rdparty/libtiff/tif_packbits.c \3rdparty/libtiff/tif_luv.c \3rdparty/libtiff/tif_next.c \3rdparty/libtiff/tif_aux.c \3rdparty/libtiff/tif_thunder.c \3rdparty/libtiff/tif_compress.c \3rdparty/libtiff/tif_codec.c \3rdparty/libtiff/tif_print.c \3rdparty/libtiff/tif_dumpmode.c \3rdparty/libtiff/tif_open.c \3rdparty/libtiff/tif_close.c \3rdparty/libtiff/tif_dir.c \3rdparty/libtiff/tif_fax3sm.c \3rdparty/libtiff/tif_read.c \3rdparty/libtiff/tif_zip.c \3rdparty/libtiff/tif_lzw.c \3rdparty/libtiff/tif_tile.c \3rdparty/libtiff/tif_warning.c \3rdparty/libtiff/tif_color.c \3rdparty/libtiff/tif_dirinfo.c \3rdparty/libtiff/tif_version.c \3rdparty/libtiff/tif_jbig.c \3rdparty/libtiff/tif_fax3.c \3rdparty/libtiff/tif_ojpeg.c \3rdparty/libtiff/tif_predict.c \3rdparty/libtiff/tif_getimage.c \3rdparty/libtiff/tif_unix.cinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libIlmImfLOCAL_RTTI_FLAG := -frttiLOCAL_CFLAGS := -fexceptions
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_CPPFLAGS += -Wno-switch -Wno-unused-private-fieldLOCAL_LDLIBS := -lz -ldlLOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/openexr \$(LOCAL_PATH)/3rdparty/openexr/IlmImf \$(LOCAL_PATH)/3rdparty/openexr/Half \$(LOCAL_PATH)/3rdparty/openexr/Iex \$(LOCAL_PATH)/3rdparty/openexr/IlmThread \$(LOCAL_PATH)/3rdparty/openexr/ImathLOCAL_SRC_FILES := \3rdparty/openexr/IlmImf/ImfChannelList.cpp \3rdparty/openexr/IlmImf/ImfStdIO.cpp \3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp \3rdparty/openexr/IlmImf/ImfFloatAttribute.cpp \3rdparty/openexr/IlmImf/ImfLineOrderAttribute.cpp \3rdparty/openexr/IlmImf/ImfTestFile.cpp \3rdparty/openexr/IlmImf/ImfInputFile.cpp \3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp \3rdparty/openexr/IlmImf/ImfVecAttribute.cpp \3rdparty/openexr/IlmImf/ImfRationalAttribute.cpp \3rdparty/openexr/IlmImf/ImfBoxAttribute.cpp \3rdparty/openexr/IlmImf/ImfRgbaFile.cpp \3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp \3rdparty/openexr/IlmImf/ImfCRgbaFile.cpp \3rdparty/openexr/IlmImf/ImfChromaticitiesAttribute.cpp \3rdparty/openexr/IlmImf/ImfRleCompressor.cpp \3rdparty/openexr/IlmImf/ImfStandardAttributes.cpp \3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp \3rdparty/openexr/IlmImf/ImfOpaqueAttribute.cpp \3rdparty/openexr/IlmImf/ImfIntAttribute.cpp \3rdparty/openexr/IlmImf/ImfThreading.cpp \3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp \3rdparty/openexr/IlmImf/ImfEnvmapAttribute.cpp \3rdparty/openexr/IlmImf/ImfKeyCodeAttribute.cpp \3rdparty/openexr/IlmImf/ImfRgbaYca.cpp \3rdparty/openexr/IlmImf/ImfHuf.cpp \3rdparty/openexr/IlmImf/ImfTileDescriptionAttribute.cpp \3rdparty/openexr/IlmImf/ImfVersion.cpp \3rdparty/openexr/IlmImf/ImfChromaticities.cpp \3rdparty/openexr/IlmImf/ImfStringVectorAttribute.cpp \3rdparty/openexr/IlmImf/ImfStringAttribute.cpp \3rdparty/openexr/IlmImf/ImfKeyCode.cpp \3rdparty/openexr/IlmImf/ImfOutputFile.cpp \3rdparty/openexr/IlmImf/ImfMatrixAttribute.cpp \3rdparty/openexr/IlmImf/ImfAcesFile.cpp \3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp \3rdparty/openexr/IlmImf/ImfCompressor.cpp \3rdparty/openexr/IlmImf/ImfHeader.cpp \3rdparty/openexr/IlmImf/ImfFramesPerSecond.cpp \3rdparty/openexr/IlmImf/ImfEnvmap.cpp \3rdparty/openexr/IlmImf/ImfZipCompressor.cpp \3rdparty/openexr/IlmImf/ImfMultiView.cpp \3rdparty/openexr/IlmImf/ImfPizCompressor.cpp \3rdparty/openexr/IlmImf/ImfMisc.cpp \3rdparty/openexr/IlmImf/ImfRational.cpp \3rdparty/openexr/IlmImf/ImfAttribute.cpp \3rdparty/openexr/IlmImf/ImfDoubleAttribute.cpp \3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp \3rdparty/openexr/IlmImf/ImfTiledMisc.cpp \3rdparty/openexr/IlmImf/ImfB44Compressor.cpp \3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp \3rdparty/openexr/IlmImf/ImfTimeCode.cpp \3rdparty/openexr/IlmImf/ImfLut.cpp \3rdparty/openexr/IlmImf/ImfTileOffsets.cpp \3rdparty/openexr/IlmImf/ImfConvert.cpp \3rdparty/openexr/IlmImf/ImfIO.cpp \3rdparty/openexr/IlmImf/ImfPreviewImage.cpp \3rdparty/openexr/IlmImf/ImfCompressionAttribute.cpp \3rdparty/openexr/IlmImf/ImfTimeCodeAttribute.cpp \3rdparty/openexr/IlmImf/ImfWav.cpp \3rdparty/openexr/Half/eLut.cpp \3rdparty/openexr/Half/toFloat.cpp \3rdparty/openexr/Half/half.cpp \3rdparty/openexr/Iex/IexThrowErrnoExc.cpp \3rdparty/openexr/Iex/IexBaseExc.cpp \3rdparty/openexr/IlmThread/IlmThreadMutex.cpp \3rdparty/openexr/IlmThread/IlmThreadPool.cpp \3rdparty/openexr/IlmThread/IlmThreadPosix.cpp \3rdparty/openexr/IlmThread/IlmThreadMutexPosix.cpp \3rdparty/openexr/IlmThread/IlmThreadSemaphorePosixCompat.cpp \3rdparty/openexr/IlmThread/IlmThreadSemaphore.cpp \3rdparty/openexr/IlmThread/IlmThreadSemaphorePosix.cpp \3rdparty/openexr/IlmThread/IlmThread.cpp \3rdparty/openexr/Imath/ImathRandom.cpp \3rdparty/openexr/Imath/ImathFun.cpp \3rdparty/openexr/Imath/ImathMatrixAlgo.cpp \3rdparty/openexr/Imath/ImathVec.cpp \3rdparty/openexr/Imath/ImathColorAlgo.cppinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_imgcodecs
LOCAL_LDLIBS := -lz -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_CPPFLAGS += -Wno-switch -Wno-unused-private-field -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/imgcodecs \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/3rdparty/openexr/IlmImf \$(LOCAL_PATH)/3rdparty/openexr/Imath \$(LOCAL_PATH)/3rdparty/openexr/Iex \$(LOCAL_PATH)/3rdparty/openexr/Half \$(LOCAL_PATH)/3rdparty/libjasper \$(LOCAL_PATH)/3rdparty/libjasper/jasper \$(LOCAL_PATH)/3rdparty/libjpeg \$(LOCAL_PATH)/3rdparty/libtiff \$(LOCAL_PATH)/3rdparty/libpngLOCAL_SRC_FILES := \modules/imgcodecs/src/bitstrm.cpp \modules/imgcodecs/src/grfmt_base.cpp \modules/imgcodecs/src/grfmt_bmp.cpp \modules/imgcodecs/src/grfmt_exr.cpp \modules/imgcodecs/src/grfmt_gdal.cpp \modules/imgcodecs/src/grfmt_hdr.cpp \modules/imgcodecs/src/grfmt_jpeg2000.cpp \modules/imgcodecs/src/grfmt_jpeg.cpp \modules/imgcodecs/src/grfmt_png.cpp \modules/imgcodecs/src/grfmt_pxm.cpp \modules/imgcodecs/src/grfmt_sunras.cpp \modules/imgcodecs/src/grfmt_tiff.cpp \modules/imgcodecs/src/grfmt_webp.cpp \modules/imgcodecs/src/loadsave.cpp \modules/imgcodecs/src/rgbe.cpp \modules/imgcodecs/src/utils.cppLOCAL_SRC_FILES += \3rdparty/libpng/png.c \3rdparty/libpng/pngerror.c \3rdparty/libpng/pngget.c \3rdparty/libpng/pngmem.c \3rdparty/libpng/pngpread.c \3rdparty/libpng/pngread.c \3rdparty/libpng/pngrio.c \3rdparty/libpng/pngrtran.c \3rdparty/libpng/pngrutil.c \3rdparty/libpng/pngset.c \3rdparty/libpng/pngtrans.c \3rdparty/libpng/pngwio.c \3rdparty/libpng/pngwrite.c \3rdparty/libpng/pngwtran.c \3rdparty/libpng/pngwutil.c
LOCAL_STATIC_LIBRARIES += libopencv_hal libjasper opencv_libjpeg libIlmImf libtiff libopencv_core libopencv_imgprocinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_imgproc
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/imgproc \$(LOCAL_PATH)/modules/imgproc/src \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/opencv2LOCAL_LDLIBS := -ldlLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/imgproc/src/accum.cpp \modules/imgproc/src/approx.cpp \modules/imgproc/src/blend.cpp \modules/imgproc/src/canny.cpp \modules/imgproc/src/clahe.cpp \modules/imgproc/src/color.cpp \modules/imgproc/src/colormap.cpp \modules/imgproc/src/connectedcomponents.cpp \modules/imgproc/src/contours.cpp \modules/imgproc/src/convhull.cpp \modules/imgproc/src/corner.cpp \modules/imgproc/src/cornersubpix.cpp \modules/imgproc/src/demosaicing.cpp \modules/imgproc/src/deriv.cpp \modules/imgproc/src/distransform.cpp \modules/imgproc/src/drawing.cpp \modules/imgproc/src/emd.cpp \modules/imgproc/src/featureselect.cpp \modules/imgproc/src/filter.cpp \modules/imgproc/src/floodfill.cpp \modules/imgproc/src/gabor.cpp \modules/imgproc/src/generalized_hough.cpp \modules/imgproc/src/geometry.cpp \modules/imgproc/src/grabcut.cpp \modules/imgproc/src/hershey_fonts.cpp \modules/imgproc/src/histogram.cpp \modules/imgproc/src/hough.cpp \modules/imgproc/src/imgwarp.cpp \modules/imgproc/src/intersection.cpp \modules/imgproc/src/linefit.cpp \modules/imgproc/src/lsd.cpp \modules/imgproc/src/matchcontours.cpp \modules/imgproc/src/min_enclosing_triangle.cpp \modules/imgproc/src/moments.cpp \modules/imgproc/src/morph.cpp \modules/imgproc/src/phasecorr.cpp \modules/imgproc/src/pyramids.cpp \modules/imgproc/src/rotcalipers.cpp \modules/imgproc/src/samplers.cpp \modules/imgproc/src/segmentation.cpp \modules/imgproc/src/shapedescr.cpp \modules/imgproc/src/smooth.cpp \modules/imgproc/src/subdivision2d.cpp \modules/imgproc/src/sumpixels.cpp \modules/imgproc/src/tables.cpp \modules/imgproc/src/templmatch.cpp \modules/imgproc/src/thresh.cpp \modules/imgproc/src/undistort.cpp \modules/imgproc/src/utils.cpp \modules/imgproc/opencl_kernels_imgproc.cpp \LOCAL_STATIC_LIBRARIES := libopencv_core libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_ml
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/ml \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/ml/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/ml/src/ann_mlp.cpp \modules/ml/src/boost.cpp \modules/ml/src/data.cpp \modules/ml/src/em.cpp \modules/ml/src/gbt.cpp \modules/ml/src/inner_functions.cpp \modules/ml/src/kdtree.cpp \modules/ml/src/knearest.cpp \modules/ml/src/lr.cpp \modules/ml/src/nbayes.cpp \modules/ml/src/rtrees.cpp \modules/ml/src/svm.cpp \modules/ml/src/testset.cpp \modules/ml/src/tree.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_objdetect
LOCAL_RTTI_FLAG := -frtti
LOCAL_HEADER_LIBRARIES := jni_headers
LOCAL_LDLIBS := -llog -ldl
LOCAL_CPPFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/objdetect \$(LOCAL_PATH)/modules/objdetect/src \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/objdetect/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/objdetect \$(LOCAL_PATH)/modules/ml/include \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/opencv2LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/objdetect/src/cascadedetect_convert.cpp \modules/objdetect/src/cascadedetect.cpp \modules/objdetect/src/detection_based_tracker.cpp \modules/objdetect/src/haar.cpp \modules/objdetect/src/hog.cpp \modules/objdetect/opencl_kernels_objdetect.cpp \modules/java/generator/src/cpp/converters.cppLOCAL_STATIC_LBIRARIES := libopencv_core libopencv_imgproc libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highguiifeq ($(WITH_RENDERSCRIPT), true)
LOCAL_STATIC_LBIRARIES += libopencv_rsobjdetect
LOCAL_CFLAGS += -DRENDERSCRIPT=1
LOCAL_C_INCLUDES += $(LOCAL_PATH)/modules/rsobjdetect/src
endifLOCAL_STATIC_LBIRARIES += libopencv_hal
include $(BUILD_STATIC_LIBRARY)ifeq ($(WITH_RENDERSCRIPT),true)
include $(CLEAR_VARS)
LOCAL_MODULE := libopencv_rsobjdetect#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_RENDERSCRIPT_TARGET_API := 21LOCAL_CPPFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \modules/rsobjdetect/srcLOCAL_SRC_FILES:= \modules/rsobjdetect/src/innerloop.cppLOCAL_LDLIBS := -llog -ldlLOCAL_RENDERSCRIPT_COMPATIBILITY := 21LOCAL_C_INCLUDES := frameworks/rs/cpp
LOCAL_C_INCLUDES += frameworks/rs
LOCAL_C_INCLUDES += $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)LOCAL_STATIC_LIBRARIES := libRScpp_static
LOCAL_CLANG := trueinclude $(BUILD_STATIC_LIBRARY)
endifinclude $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_photoLOCAL_LDLIBS := -ldl -lzLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/photo \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/photo/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/photoLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/photo/src/align.cpp \modules/photo/src/calibrate.cpp \modules/photo/src/contrast_preserve.cpp \modules/photo/src/denoise_tvl1.cpp \modules/photo/src/denoising.cpp \modules/photo/src/denoising.cuda.cpp \modules/photo/src/hdr_common.cpp \modules/photo/src/inpaint.cpp \modules/photo/src/merge.cpp \modules/photo/src/npr.cpp \modules/photo/src/seamless_cloning.cpp \modules/photo/src/seamless_cloning_impl.cpp \modules/photo/src/tonemap.cpp \modules/photo/opencl_kernels_photo.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc
LOCAL_STATIC_LIBRARIES += libopencv_hal opencv_libjpeg libpng_ndkinclude $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_LDLIBS := -ldlLOCAL_MODULE := libopencv_shapeLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/shape \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/shape/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/shape/src/aff_trans.cpp \modules/shape/src/emdL1.cpp \modules/shape/src/haus_dis.cpp \modules/shape/src/hist_cost.cpp \modules/shape/src/precomp.cpp \modules/shape/src/sc_dis.cpp \modules/shape/src/tps_trans.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_video
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_stitchingLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/stitching \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/stitching/include \$(LOCAL_PATH)/modules/stitchingLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/stitching/src/autocalib.cpp \modules/stitching/src/blenders.cpp \modules/stitching/src/camera.cpp \modules/stitching/src/exposure_compensate.cpp \modules/stitching/src/matchers.cpp \modules/stitching/src/motion_estimators.cpp \modules/stitching/src/seam_finders.cpp \modules/stitching/src/stitcher.cpp \modules/stitching/src/timelapsers.cpp \modules/stitching/src/util.cpp \modules/stitching/src/warpers.cpp \modules/stitching/src/warpers_cuda.cpp \modules/stitching/opencl_kernels_stitching.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_objdetect libopencv_features2d libopencv_calib3d
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_superresLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/superres \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/superres/include \$(LOCAL_PATH)/modules/superres/srcLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/superres/src/btv_l1.cpp \modules/superres/src/btv_l1_cuda.cpp \modules/superres/src/frame_source.cpp \modules/superres/src/input_array_utility.cpp \modules/superres/src/optical_flow.cpp \modules/superres/src/super_resolution.cpp \modules/superres/opencl_kernels_superres.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_video libopencv_imgcodecs libopencv_videoio
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_tsLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frtti
LOCAL_CPPFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/ts \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/ts/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/ts/src/cuda_perf.cpp \modules/ts/src/cuda_test.cpp \modules/ts/src/ocl_perf.cpp \modules/ts/src/ocl_test.cpp \modules/ts/src/ts_arrtest.cpp \modules/ts/src/ts.cpp \modules/ts/src/ts_func.cpp \modules/ts/src/ts_gtest.cpp \modules/ts/src/ts_perf.cppinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_videoLOCAL_LDLIBS := -lz -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/video \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/imgcodecs/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/video/src/bgfg_gaussmix2.cpp \modules/video/src/bgfg_KNN.cpp \modules/video/src/camshift.cpp \modules/video/src/compat_video.cpp \modules/video/src/ecc.cpp \modules/video/src/kalman.cpp \modules/video/src/lkpyramid.cpp \modules/video/src/optflowgf.cpp \modules/video/src/tvl1flow.cpp \modules/video/opencl_kernels_video.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_videoio
//引入dl库
LOCAL_LDLIBS := -ldl LOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/videoio \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/videoLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/videoio/src/cap_cmu.cpp \modules/videoio/src/cap.cpp \modules/videoio/src/cap_dc1394.cpp \modules/videoio/src/cap_dc1394_v2.cpp \modules/videoio/src/cap_dshow.cpp \modules/videoio/src/cap_ffmpeg.cpp \modules/videoio/src/cap_gphoto2.cpp \modules/videoio/src/cap_images.cpp \modules/videoio/src/cap_intelperc.cpp \modules/videoio/src/cap_libv4l.cpp \modules/videoio/src/cap_mjpeg_decoder.cpp \modules/videoio/src/cap_mjpeg_encoder.cpp \modules/videoio/src/cap_msmf.cpp \modules/videoio/src/cap_openni2.cpp \modules/videoio/src/cap_openni.cpp \modules/videoio/src/cap_pvapi.cpp \modules/videoio/src/cap_v4l.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_imgcodecs
LOCAL_STATIC_LIBRARIES += libopencv_hal
//声明生成静态库.a
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_videostabLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/videostab \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/photo/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/videostab/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/videostab/src/deblurring.cpp \modules/videostab/src/fast_marching.cpp \modules/videostab/src/frame_source.cpp \modules/videostab/src/global_motion.cpp \modules/videostab/src/inpainting.cpp \modules/videostab/src/log.cpp \modules/videostab/src/motion_stabilizing.cpp \modules/videostab/src/optical_flow.cpp \modules/videostab/src/outlier_rejection.cpp \modules/videostab/src/stabilizer.cpp \modules/videostab/src/wobble_suppression.cpp
LOCAL_STATIC_LIBRARIES := libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_photo libopencv_video libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_features2d libopencv_calib3dLOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_javaLOCAL_HEADER_LIBRARIES := jni_headersLOCAL_LDLIBS := -llog -lz -ljnigraphics -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_CFLAGS := -fexceptions -DANDROID -D__OPENCV_BUILD=1 -Dopencv_java_EXPORTS -DCAP_PROP_ANDROID_PREVIEW_SIZES_STRING=1025LOCAL_CPPFLAGS += -Wno-c++11-narrowingLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/java/include \$(LOCAL_PATH)/modules/java/src \$(LOCAL_PATH)/modules \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/ml/include \$(LOCAL_PATH)/modules/photo/include \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/androidcamera/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/objdetect/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/java/generator/src/cppLOCAL_SRC_FILES := \modules/java/src/ml.cpp \modules/java/src/video.cpp \modules/java/src/photo.cpp \modules/java/src/calib3d.cpp \modules/java/src/features2d.cpp \modules/java/src/core.cpp \modules/java/src/imgproc.cpp \modules/java/src/objdetect.cpp \modules/java/src/videoio.cpp \modules/java/src/imgcodecs.cpp \modules/java/generator/src/cpp/jni_part.cpp \modules/java/generator/src/cpp/utils.cpp \modules/java/generator/src/cpp/converters.cpp \modules/java/generator/src/cpp/Mat.cpp \modules/core/misc/java/src/cpp/core_manual.cppLOCAL_STATIC_LIBRARIES := libopencv_hal libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_photo libopencv_video libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_objdetect libopencv_features2d libopencv_calib3d
LOCAL_STATIC_LIBRARIES += libjasper opencv_libjpeg libtiff libIlmImf libpng_ndkinclude $(BUILD_SHARED_LIBRARY)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)LOCAL_MODULE := libjni_customizeLOCAL_MODULE_TAGS := optionalLOCAL_SRC_FILES := ******LOCAL_SHARED_LIBRARIES += libcutils \libutils \libbinder \libjnigraphics \libui \libgui \liblog \libandroid LOCAL_NDK_STL_VARIANT :=noneLOCAL_PROGUARD_ENABLED :=disabledLOCAL_C_INCLUDES += vendor/apk/jni/include \vendor/apk/jni/include/opencv \vendor/apk/jni/include/opencv2 LOCAL_LDLIBS := -llog -lz -ljnigraphics -ldlLOCAL_LDFLAGS_arm64 += $(LOCAL_PATH)/../libs/arm64-v8a/libopencv_core.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_imgcodecs.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_calib3d.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_features2d.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_flann.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_hal.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_highgui.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_imgproc.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_ml.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_objdetect.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_photo.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_shape.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_stitching.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_superres.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_ts.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_video.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_videoio.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_videostab.a \$(LOCAL_PATH)/../libs/arm64-v8a/libtiff.a \$(LOCAL_PATH)/../libs/arm64-v8a/libIlmImf.a \$(LOCAL_PATH)/../libs/arm64-v8a/libjasper.a \$(LOCAL_PATH)/../libs/arm64-v8a/opencv_libjpeg.a LOCAL_LDFLAGS_arm += $(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_core.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_imgcodecs.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_calib3d.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_features2d.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_flann.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_hal.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_highgui.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_imgproc.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_ml.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_objdetect.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_photo.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_shape.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_stitching.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_superres.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_ts.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_video.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_videoio.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_videostab.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libtiff.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libIlmImf.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libjasper.a \$(LOCAL_PATH)/../libs/armeabi-v7a/opencv_libjpeg.ainclude $(BUILD_SHARED_LIBRARY)