Init
This commit is contained in:
59
native_opencv/android/build.gradle
Normal file
59
native_opencv/android/build.gradle
Normal file
@@ -0,0 +1,59 @@
|
||||
group 'com.example.native_opencv'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.0.3'
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
packagingOptions {
|
||||
pickFirst 'lib/arm64-v8a/libopencv_java4.so'
|
||||
pickFirst 'lib/armeabi-v7a/libopencv_java4.so'
|
||||
pickFirst 'lib/x86/libopencv_java4.so'
|
||||
pickFirst 'lib/x86_64/libopencv_java4.so'
|
||||
}
|
||||
compileSdkVersion 28
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 24
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
// Enabling exception, RTTI and setting C++ standard version
|
||||
cppFlags '-frtti -fexceptions -std=c++11'
|
||||
|
||||
// Shared runtime for shared libraries
|
||||
arguments "-DANDROID_STL=c++_shared"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path "CMakeLists.txt"
|
||||
}
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {}
|
||||
Reference in New Issue
Block a user