1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/samples/java/jniviewer/app/build.gradle
kgv bbe85f2b40 0031619: Samples - update JNI sample to use Android Studio
Project structure and project files have been updated to use Android Studio 4.0, gradle and CMake.
Redundant OcctJni_Window has been replaced by Aspect_NeutralWindow.
SD Card permissions are not dynamically requested for compatibility with Android API level 26+.
2020-06-22 09:19:06 +03:00

49 lines
1.1 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "30.0.0"
defaultConfig {
applicationId "com.opencascade.jnisample"
minSdkVersion 21
targetSdkVersion 26
ndk {
abiFilters "arm64-v8a"
}
externalNativeBuild {
cmake {
arguments "-DOCCT_ROOT=" + OCCT_ROOT,
"-DFREETYPE_ROOT=" + FREETYPE_ROOT,
"-DANDROID_STL=gnustl_shared"
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
sourceSets {
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
assets.srcDirs = [OCCT_ROOT + "/src"]
}
}
externalNativeBuild {
cmake {
path "src/main/jni/CMakeLists.txt"
}
}
}
dependencies {
implementation fileTree(dir: 'java/com/opencascade/jnisample', include: ['*.jar'])
}