Android.mk 692 B

123456789101112131415161718192021222324252627
  1. LOCAL_PATH := $(call my-dir)
  2. # add OpenCV
  3. include $(CLEAR_VARS)
  4. OPENCV_INSTALL_MODULES:=on
  5. ifdef OPENCV_ANDROID_SDK
  6. ifneq ("","$(wildcard $(OPENCV_ANDROID_SDK)/OpenCV.mk)")
  7. include ${OPENCV_ANDROID_SDK}/OpenCV.mk
  8. else
  9. include ${OPENCV_ANDROID_SDK}/sdk/native/jni/OpenCV.mk
  10. endif
  11. else
  12. include ../../sdk/native/jni/OpenCV.mk
  13. endif
  14. ifndef OPENCL_SDK
  15. $(error Specify OPENCL_SDK to Android OpenCL SDK location)
  16. endif
  17. # add OpenCL
  18. LOCAL_C_INCLUDES += $(OPENCL_SDK)/include
  19. LOCAL_LDLIBS += -L$(OPENCL_SDK)/lib/$(TARGET_ARCH_ABI) -lOpenCL
  20. LOCAL_MODULE := JNIpart
  21. LOCAL_SRC_FILES := jni.c CLprocessor.cpp
  22. LOCAL_LDLIBS += -llog -lGLESv2 -lEGL
  23. include $(BUILD_SHARED_LIBRARY)