mirror of
https://github.com/opencv/opencv.git
synced 2024-12-02 16:00:17 +08:00
6ae4a9b09b
EMBED_CUDA and FORCE_EMBED_OPENCV flags added to cmake macro add_android_project; INSTALL_CUDA_LIBRARIES option added to OpenCV.mk opencv_dynamicuda library installation with enabled OPENCV_INSTALL_MODULES flag fixed; CUDA initialization apportunity added to OpenCVLoader.initDebug(); Tutorial-4-CUDA sample reimplemented with static OpenCV and CUDA initialization.
16 lines
330 B
Makefile
16 lines
330 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
INSTALL_CUDA_LIBRARIES:=on
|
|
OPENCV_INSTALL_MODULES:=on
|
|
CUDA_TOOLKIT_DIR=$(CUDA_TOOLKIT_ROOT)
|
|
include ../../sdk/native/jni/OpenCV.mk
|
|
|
|
LOCAL_MODULE := cuda_sample
|
|
LOCAL_SRC_FILES := jni_part.cpp
|
|
LOCAL_LDLIBS += -llog -ldl
|
|
LOCAL_LDFLAGS += -Os
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|