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

19 lines
498 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
ifeq ($(O4A_SDK_ROOT),)
include ../../sdk/native/jni/OpenCV.mk
else
include $(O4A_SDK_ROOT)/sdk/native/jni/OpenCV.mk
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 := JNIrender
LOCAL_SRC_FILES := jni.c GLrender.cpp CLprocessor.cpp
2015-07-27 09:04:56 +08:00
LOCAL_LDLIBS += -llog -lGLESv2 -lEGL
include $(BUILD_SHARED_LIBRARY)