2010-09-22 03:47:11 +02:00
|
|
|
#you may override this if you move the build
|
|
|
|
#just define it before including this or on the command line - or with
|
|
|
|
#an environment variable
|
|
|
|
#this points to the root of the opencv trunk - where the original opencv
|
|
|
|
#sources are - with modules 3rparty ...
|
|
|
|
ifndef OPENCV_ROOT
|
|
|
|
OPENCV_ROOT := ${opencv_root}
|
|
|
|
endif
|
|
|
|
|
|
|
|
#you may override this same as above
|
|
|
|
#this points to the actually directory that you built opencv for android from
|
|
|
|
#maybe in under opencv/android/build
|
|
|
|
ifndef OPENCV_BUILD_ROOT
|
|
|
|
OPENCV_BUILD_ROOT := ${CMAKE_BINARY_DIR}
|
|
|
|
endif
|
|
|
|
|
2010-09-22 15:24:37 +02:00
|
|
|
OPENCV_INCLUDES := ${android_module_include_dirs}
|
|
|
|
|
2010-09-22 03:47:11 +02:00
|
|
|
ANDROID_OPENCV_INCLUDES := $(OPENCV_ROOT)/android/android-jni/jni
|
|
|
|
|
2010-09-22 15:24:37 +02:00
|
|
|
ARMOBJS := local/armeabi
|
|
|
|
ARMOBJS_V7A := local/armeabi-v7a
|
|
|
|
|
|
|
|
OPENCV_LIB_DIRS := -L$(OPENCV_BUILD_ROOT)/obj/$(ARMOBJS_V7A) \
|
|
|
|
-L$(OPENCV_BUILD_ROOT)/obj/$(ARMOBJS) -L$(OPENCV_BUILD_ROOT)/bin/ndk/$(ARMOBJS) \
|
|
|
|
-L$(OPENCV_BUILD_ROOT)/bin/ndk/$(ARMOBJS_V7A)
|
2010-09-22 03:47:11 +02:00
|
|
|
|
2010-09-23 15:48:12 +02:00
|
|
|
ANDROID_OPENCV_LIB_DIRS := -L$(OPENCV_ROOT)/android/android-jni/libs/armeabi-v7a \
|
|
|
|
-L$(OPENCV_ROOT)/android/android-jni/libs/armeabi
|
2010-09-22 03:47:11 +02:00
|
|
|
|
|
|
|
#order of linking very important ---- may have stuff out of order here, but
|
|
|
|
#important that modules that are more dependent come first...
|
|
|
|
|
2010-11-22 23:48:52 +01:00
|
|
|
OPENCV_LIBS := $(OPENCV_LIB_DIRS) -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_imgproc \
|
2010-11-09 18:59:27 +01:00
|
|
|
-lopencv_video -lopencv_highgui -lopencv_ml -lopencv_legacy -lopencv_core -lopencv_lapack -lopencv_flann \
|
2010-09-22 03:47:11 +02:00
|
|
|
-lzlib -lpng -ljpeg -ljasper
|
|
|
|
ANDROID_OPENCV_LIBS := $(ANDROID_OPENCV_LIB_DIRS) -landroid-opencv
|
|
|
|
|