mirror of
https://github.com/opencv/opencv.git
synced 2024-12-28 03:48:17 +08:00
e1ad86c1fa
OPENCV_ANDROID_SDK - OpenCV Android SDK location (or OpenCV build dir) Can be passed via ndk-build parameter or environment variable.
25 lines
583 B
Makefile
25 lines
583 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
#OPENCV_CAMERA_MODULES:=off
|
|
#OPENCV_INSTALL_MODULES:=off
|
|
#OPENCV_LIB_TYPE:=SHARED
|
|
ifdef OPENCV_ANDROID_SDK
|
|
ifneq ("","$(wildcard $(OPENCV_ANDROID_SDK)/OpenCV.mk)")
|
|
include ${OPENCV_ANDROID_SDK}/OpenCV.mk
|
|
else
|
|
include ${OPENCV_ANDROID_SDK}/sdk/native/jni/OpenCV.mk
|
|
endif
|
|
else
|
|
include ../../sdk/native/jni/OpenCV.mk
|
|
endif
|
|
|
|
LOCAL_SRC_FILES := DetectionBasedTracker_jni.cpp
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)
|
|
LOCAL_LDLIBS += -llog -ldl
|
|
|
|
LOCAL_MODULE := detection_based_tracker
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|