mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.7 KiB
67 lines
1.7 KiB
6 years ago
|
// 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@'
|
||
|
|
||
|
// 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
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|