opencv/samples/android/tutorial-4-opencl/jni/Android.mk

27 lines
692 B
Makefile
Raw Normal View History

LOCAL_PATH := $(call my-dir)
2015-07-31 04:18:45 +08:00
# add OpenCV
include $(CLEAR_VARS)
2015-07-27 09:04:56 +08:00
OPENCV_INSTALL_MODULES:=on
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
2015-07-27 09:04:56 +08:00
else
include ../../sdk/native/jni/OpenCV.mk
2015-07-27 09:04:56 +08:00
endif
ifndef OPENCL_SDK
$(error Specify OPENCL_SDK to Android OpenCL SDK location)
endif
2015-07-31 04:18:45 +08:00
# add OpenCL
LOCAL_C_INCLUDES += $(OPENCL_SDK)/include
LOCAL_LDLIBS += -L$(OPENCL_SDK)/lib/$(TARGET_ARCH_ABI) -lOpenCL
LOCAL_MODULE := JNIpart
LOCAL_SRC_FILES := jni.c CLprocessor.cpp
2015-07-27 09:04:56 +08:00
LOCAL_LDLIBS += -llog -lGLESv2 -lEGL
include $(BUILD_SHARED_LIBRARY)