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
14fa6450
Commit
14fa6450
authored
Aug 14, 2012
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug build for Android added. Stripping of debug build turned off.
parent
70bb857c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
OpenCVDetectAndroidSDK.cmake
cmake/OpenCVDetectAndroidSDK.cmake
+3
-2
CMakeLists.txt
modules/androidcamera/camera_wrapper/CMakeLists.txt
+3
-2
CMakeLists.txt
modules/java/CMakeLists.txt
+4
-1
No files found.
cmake/OpenCVDetectAndroidSDK.cmake
View file @
14fa6450
...
...
@@ -219,7 +219,6 @@ macro(add_android_project target path)
# get project sources
file
(
GLOB_RECURSE android_proj_files RELATIVE
"
${
path
}
"
"
${
path
}
/res/*"
"
${
path
}
/src/*"
)
ocv_list_filterout
(
android_proj_files
"
\\\\
.svn"
)
# copy sources out from the build tree
set
(
android_proj_file_deps
""
)
...
...
@@ -277,7 +276,9 @@ macro(add_android_project target path)
)
get_target_property
(
android_proj_jni_location
"
${
JNI_LIB_NAME
}
"
LOCATION
)
add_custom_command
(
TARGET
${
JNI_LIB_NAME
}
POST_BUILD COMMAND
${
CMAKE_STRIP
}
--strip-unneeded
"
${
android_proj_jni_location
}
"
)
if
(
NOT
(
CMAKE_BUILD_TYPE MATCHES
"debug"
))
add_custom_command
(
TARGET
${
JNI_LIB_NAME
}
POST_BUILD COMMAND
${
CMAKE_STRIP
}
--strip-unneeded
"
${
android_proj_jni_location
}
"
)
endif
()
endif
()
endif
()
...
...
modules/androidcamera/camera_wrapper/CMakeLists.txt
View file @
14fa6450
...
...
@@ -57,8 +57,9 @@ SET_TARGET_PROPERTIES(${the_target} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY
${
EXECUTABLE_OUTPUT_PATH
}
)
# force strip library after the build command
ADD_CUSTOM_COMMAND
(
TARGET
${
the_target
}
POST_BUILD COMMAND
${
CMAKE_STRIP
}
"
${
LIBRARY_OUTPUT_PATH
}
/lib
${
the_target
}
.so"
)
if
(
NOT
(
CMAKE_BUILD_TYPE MATCHES
"debug"
))
ADD_CUSTOM_COMMAND
(
TARGET
${
the_target
}
POST_BUILD COMMAND
${
CMAKE_STRIP
}
"
${
LIBRARY_OUTPUT_PATH
}
/lib
${
the_target
}
.so"
)
endif
()
install
(
TARGETS
${
the_target
}
LIBRARY DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
COMPONENT main
)
modules/java/CMakeLists.txt
View file @
14fa6450
...
...
@@ -181,7 +181,10 @@ if(ANDROID)
# force strip library after the build command
# because samples and tests will make a copy of the library before install
get_target_property
(
__opencv_java_location
${
the_module
}
LOCATION
)
add_custom_command
(
TARGET
${
the_module
}
POST_BUILD COMMAND
${
CMAKE_STRIP
}
--strip-unneeded
"
${
__opencv_java_location
}
"
)
# Turn off stripping in debug build
if
(
NOT
(
CMAKE_BUILD_TYPE MATCHES
"debug"
))
add_custom_command
(
TARGET
${
the_module
}
POST_BUILD COMMAND
${
CMAKE_STRIP
}
--strip-unneeded
"
${
__opencv_java_location
}
"
)
endif
()
set
(
lib_proj_files
""
)
...
...
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