10014ce9ac8634f84851074f42e15dae752183f8
[occt.git] / samples / java / jniviewer / app / build.gradle
1 apply plugin: 'com.android.application'
2
3 android {
4     compileSdkVersion 21
5     buildToolsVersion "30.0.0"
6
7     defaultConfig {
8         applicationId "com.opencascade.jnisample"
9         minSdkVersion 21
10         targetSdkVersion 26
11
12         ndk {
13             abiFilters "arm64-v8a"
14         }
15
16         externalNativeBuild {
17             cmake {
18                 arguments "-DOCCT_ROOT=" + OCCT_ROOT,
19                         "-DFREETYPE_ROOT=" + FREETYPE_ROOT,
20                         "-DANDROID_STL=gnustl_shared"
21             }
22         }
23     }
24
25     buildTypes {
26         release {
27             minifyEnabled false
28             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
29         }
30     }
31
32     sourceSets {
33         main {
34             manifest.srcFile 'src/main/AndroidManifest.xml'
35             assets.srcDirs = [OCCT_ROOT + "/src"]
36         }
37     }
38
39     externalNativeBuild {
40         cmake {
41             path "src/main/jni/CMakeLists.txt"
42         }
43     }
44 }
45
46 dependencies {
47     implementation fileTree(dir: 'java/com/opencascade/jnisample', include: ['*.jar'])
48 }