build.gradle.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion @ANDROID_COMPILE_SDK_VERSION@
  4. defaultConfig {
  5. applicationId "org.opencv.samples.facedetect"
  6. minSdkVersion @ANDROID_MIN_SDK_VERSION@
  7. targetSdkVersion @ANDROID_TARGET_SDK_VERSION@
  8. versionCode 301
  9. versionName "3.01"
  10. externalNativeBuild {
  11. cmake {
  12. arguments "-DOpenCV_DIR=" + project(':opencv').projectDir + "/@ANDROID_PROJECT_JNI_PATH@"@OPENCV_ANDROID_CMAKE_EXTRA_ARGS@
  13. targets "detection_based_tracker"
  14. }
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. sourceSets {
  24. main {
  25. java.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
  26. aidl.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
  27. res.srcDirs = @ANDROID_SAMPLE_RES_PATH@
  28. manifest.srcFile '@ANDROID_SAMPLE_MANIFEST_PATH@'
  29. }
  30. }
  31. externalNativeBuild {
  32. cmake {
  33. path '@ANDROID_SAMPLE_JNI_PATH@/CMakeLists.txt'
  34. }
  35. }
  36. }
  37. dependencies {
  38. //implementation fileTree(dir: 'libs', include: ['*.jar'])
  39. implementation project(':opencv')
  40. }