| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 30
- ndkVersion "23.0.7599858"
- defaultConfig {
- applicationId "org.anki.%TARGET%"
- minSdkVersion 24
- targetSdkVersion 30
- archivesBaseName = "$applicationId"
- }
- buildTypes {
- debug {
- externalNativeBuild {
- cmake {
- abiFilters "arm64-v8a"
- arguments "-DANDROID_TOOLCHAIN=clang",
- "-DANDROID_STL=c++_static",
- "-DCMAKE_BUILD_TYPE=Debug",
- "-DANKI_EXTRA_CHECKS=ON",
- "-DANKI_BUILD_TESTS=ON",
- "-DPYTHON_EXECUTABLE:FILEPATH=%PYTHON%"
- version "3.12+"
- targets "%TARGET%"
- }
- }
- debuggable true
- jniDebuggable true
- }
- release {
- externalNativeBuild {
- cmake {
- abiFilters "arm64-v8a"
- arguments "-DANDROID_TOOLCHAIN=clang",
- "-DANDROID_STL=c++_static",
- "-DCMAKE_BUILD_TYPE=Release",
- "-DANKI_EXTRA_CHECKS=OFF",
- "-DANKI_BUILD_TESTS=ON",
- "-DPYTHON_EXECUTABLE:FILEPATH=%PYTHON%"
- version "3.12+"
- targets "%TARGET%"
- }
- }
- debuggable true
- jniDebuggable true
- signingConfig signingConfigs.debug
- }
- }
- externalNativeBuild.cmake.path "%CMAKE%"
- buildTypes.release.minifyEnabled = false
- sourceSets {
- main {
- assets.srcDirs = ["../assets"]
- }
- }
- }
|