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
a4af3375
Commit
a4af3375
authored
Jul 26, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Android tests coverage calculation into build
parent
d58a5b26
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
OpenCVAndroidProject.cmake
OpenCVAndroidProject.cmake
+1
-0
CMakeLists.txt
modules/java/CMakeLists.txt
+6
-0
No files found.
OpenCVAndroidProject.cmake
View file @
a4af3375
...
...
@@ -125,6 +125,7 @@ macro(add_android_project _target _path)
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
build_path
}
/bin/
${
_target
}
-debug.apk"
"
${
CMAKE_BINARY_DIR
}
/bin/
${
_target
}
.apk"
WORKING_DIRECTORY
${
build_path
}
DEPENDS
${${
_target
}
_project_files
}
DEPENDS
"
${
LIBRARY_OUTPUT_PATH
}
/libopencv_java.so"
COMMENT
"Generating bin/
${
_target
}
.apk"
)
...
...
modules/java/CMakeLists.txt
View file @
a4af3375
...
...
@@ -17,6 +17,7 @@ SET(GEN_JAVA "${CMAKE_CURRENT_SOURCE_DIR}/gen_java.py")
SET
(
HDR_PARSER
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../python/src2/hdr_parser.py"
)
SET
(
GEN_JAVADOC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gen_javadoc.py"
)
SET
(
RST_PARSER
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/rst_parser.py"
)
SET
(
CHECK_TEST_COVERAGE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/check-tests.py"
)
# setup raw java and cpp files generation (without javadoc and at temporary location)
foreach
(
module
${
OPENCV_JAVA_MODULES
}
)
...
...
@@ -222,4 +223,9 @@ endif(ANDROID)
#android test project
if
(
BUILD_TESTS
)
add_android_project
(
opencv_test_java
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/android_test"
)
add_custom_command
(
TARGET opencv_test_java_android_project POST_BUILD
COMMAND
${
PYTHON_EXECUTABLE
}
${
CHECK_TEST_COVERAGE
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/android_test/src"
"
${
CMAKE_BINARY_DIR
}
/src"
>
"
${
CMAKE_CURRENT_BINARY_DIR
}
/tests_coverage.log"
)
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