feat: 切换后端至PaddleOCR-NCNN,切换工程为CMake
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
This commit is contained in:
94
3rdparty/opencv-4.5.4/samples/android/build.gradle.in
vendored
Normal file
94
3rdparty/opencv-4.5.4/samples/android/build.gradle.in
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:@ANDROID_GRADLE_PLUGIN_VERSION@'
|
||||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:@KOTLIN_PLUGIN_VERSION@'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
||||
//allprojects {
|
||||
// gradle.projectsEvaluated {
|
||||
// tasks.withType(JavaCompile) {
|
||||
// options.compilerArgs << "-Xlint:unchecked"
|
||||
// options.compilerArgs << "-Xlint:deprecation"
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
gradle.afterProject { project ->
|
||||
if (project.pluginManager.hasPlugin('com.android.application')
|
||||
|| project.pluginManager.hasPlugin('com.android.library')
|
||||
|| project.pluginManager.hasPlugin('com.android.test')
|
||||
|| project.pluginManager.hasPlugin('com.android.feature') ) {
|
||||
if (true) {
|
||||
gradle.println("Override build ABIs for the project ${project.name}")
|
||||
project.android {
|
||||
splits {
|
||||
abi {
|
||||
enable true
|
||||
universalApk false
|
||||
@ANDROID_ABI_FILTER@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (true) {
|
||||
gradle.println("Override lintOptions for the project ${project.name}")
|
||||
project.android {
|
||||
lintOptions {
|
||||
// checkReleaseBuilds false
|
||||
abortOnError false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// (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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user