mirror of
https://github.com/opencv/opencv.git
synced 2024-12-11 22:59:16 +08:00
2b35c1708b
- drop hello-android sample
44 lines
1.3 KiB
Groovy
44 lines
1.3 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion @ANDROID_COMPILE_SDK_VERSION@
|
|
defaultConfig {
|
|
applicationId "org.opencv.samples.facedetect"
|
|
minSdkVersion @ANDROID_MIN_SDK_VERSION@
|
|
targetSdkVersion @ANDROID_TARGET_SDK_VERSION@
|
|
versionCode 301
|
|
versionName "3.01"
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments "-DOpenCV_DIR=" + project(':opencv').projectDir + "/@ANDROID_PROJECT_JNI_PATH@"@OPENCV_ANDROID_CMAKE_EXTRA_ARGS@
|
|
targets "detection_based_tracker"
|
|
}
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
|
|
aidl.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
|
|
res.srcDirs = @ANDROID_SAMPLE_RES_PATH@
|
|
manifest.srcFile '@ANDROID_SAMPLE_MANIFEST_PATH@'
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path '@ANDROID_SAMPLE_JNI_PATH@/CMakeLists.txt'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
//implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(':opencv')
|
|
}
|