1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

android: update 'debug' information support

This commit is contained in:
Alexander Alekhin
2019-05-18 17:13:39 +00:00
parent b4ec8fe3ef
commit 3c1267dbe6
7 changed files with 51 additions and 8 deletions
+27
View File
@@ -62,5 +62,32 @@ gradle.afterProject { project ->
}
}
}
// (you still need to re-build OpenCV with debug information to debug it)
if (true) {
gradle.println("Override doNotStrip-debug for the project ${project.name}")
project.android {
buildTypes {
debug {
packagingOptions {
doNotStrip '**/*.so' // controlled by OpenCV CMake scripts
}
}
}
}
}
if (false || project.hasProperty("doNotStrip")) {
gradle.println("Override doNotStrip-release for the project ${project.name}")
project.android {
buildTypes {
release {
packagingOptions {
doNotStrip '**/*.so' // controlled by OpenCV CMake scripts
}
}
}
}
}
}
}