Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
edce617a
Commit
edce617a
authored
Dec 23, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Dec 23, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2040 from asmorkalov:android_mk_fix
parents
83cdd43a
51d3138d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
OpenCVGenAndroidMK.cmake
cmake/OpenCVGenAndroidMK.cmake
+5
-0
OpenCV.mk.in
cmake/templates/OpenCV.mk.in
+28
-0
CMakeLists.txt
modules/dynamicuda/CMakeLists.txt
+1
-1
No files found.
cmake/OpenCVGenAndroidMK.cmake
View file @
edce617a
...
...
@@ -53,6 +53,11 @@ if(ANDROID)
endif
()
endforeach
()
# remove CUDA runtime and NPP from regular deps
# it can be added seporately if needed.
ocv_list_filterout
(
OPENCV_EXTRA_COMPONENTS_CONFIGMAKE
"libcu"
)
ocv_list_filterout
(
OPENCV_EXTRA_COMPONENTS_CONFIGMAKE
"libnpp"
)
# split 3rdparty libs and modules
foreach
(
mod
${
OPENCV_MODULES_CONFIGMAKE
}
)
if
(
NOT mod MATCHES
"^opencv_.+$"
)
...
...
cmake/templates/OpenCV.mk.in
View file @
edce617a
...
...
@@ -13,6 +13,18 @@ OPENCV_BASEDIR:=@OPENCV_BASE_INCLUDE_DIR_CONFIGCMAKE@
OPENCV_LOCAL_C_INCLUDES:=@OPENCV_INCLUDE_DIRS_CONFIGCMAKE@
OPENCV_MODULES:=@OPENCV_MODULES_CONFIGMAKE@
OPENCV_USE_GPU_MODULE:=
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
ifneq ($(findstring gpu,$(OPENCV_MODULES)),)
ifneq ($(CUDA_TOOLKIT_DIR),)
OPENCV_USE_GPU_MODULE:=on
endif
endif
endif
CUDA_RUNTIME_LIBS:=cufft npps nppi nppc cudart
ifeq ($(OPENCV_LIB_TYPE),)
OPENCV_LIB_TYPE:=@OPENCV_LIBTYPE_CONFIGMAKE@
endif
...
...
@@ -108,6 +120,13 @@ ifeq ($(OPENCV_MK_$(OPENCV_TARGET_ARCH_ABI)_ALREADY_INCLUDED),)
OPENCV_MK_$(OPENCV_TARGET_ARCH_ABI)_ALREADY_INCLUDED:=on
endif
ifeq ($(OPENCV_USE_GPU_MODULE),on)
include $(CLEAR_VARS)
LOCAL_MODULE:=opencv_gpu
LOCAL_SRC_FILES:=$(OPENCV_LIBS_DIR)/libopencv_gpu.a
include $(PREBUILT_STATIC_LIBRARY)
endif
ifeq ($(OPENCV_LOCAL_CFLAGS),)
OPENCV_LOCAL_CFLAGS := -fPIC -DANDROID -fsigned-char
endif
...
...
@@ -116,6 +135,10 @@ include $(CLEAR_VARS)
LOCAL_C_INCLUDES += $(OPENCV_LOCAL_C_INCLUDES)
LOCAL_CFLAGS += $(OPENCV_LOCAL_CFLAGS)
ifeq ($(OPENCV_USE_GPU_MODULE),on)
LOCAL_C_INCLUDES += $(CUDA_TOOLKIT_DIR)/include
endif
ifeq ($(OPENCV_INSTALL_MODULES),on)
LOCAL_$(OPENCV_LIB_TYPE)_LIBRARIES += $(foreach mod, $(OPENCV_LIBS), opencv_$(mod))
else
...
...
@@ -128,5 +151,10 @@ endif
LOCAL_LDLIBS += $(foreach lib,$(OPENCV_EXTRA_COMPONENTS), -l$(lib))
ifeq ($(OPENCV_USE_GPU_MODULE),on)
LOCAL_STATIC_LIBRARIES+=libopencv_gpu
LOCAL_LDLIBS += -L$(CUDA_TOOLKIT_DIR)/lib $(foreach lib, $(CUDA_RUNTIME_LIBS), -l$(lib))
endif
#restore the LOCAL_PATH
LOCAL_PATH:=$(USER_LOCAL_PATH)
modules/dynamicuda/CMakeLists.txt
View file @
edce617a
if
(
NOT
DYNAMIC_CUDA_SUPPORT
)
if
(
NOT
ENABLE_DYNAMIC_CUDA
)
ocv_module_disable
(
dynamicuda
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment