1apply plugin: 'com.android.application' 2 3buildscript { 4 repositories { 5 google() 6 jcenter() 7 } 8 9 dependencies { 10 classpath 'com.android.tools.build:gradle:3.6.3' 11 } 12} 13 14allprojects { 15 repositories { 16 google() 17 } 18} 19 20android { 21 compileSdkVersion 'android-28' 22 buildToolsVersion '28.0.3' 23 24 defaultConfig { 25 minSdkVersion 19 26 targetSdkVersion 26 27 externalNativeBuild { 28 cmake { 29 arguments "-DANDROID_ARM_NEON=TRUE", "-DANDROID_TOOLCHAIN=clang", 30 "-DANDROID_CPP_FEATURES=exceptions rtti", "-DANDROID_STL=c++_static" 31 cppFlags "-frtti" 32 targets "CodeGenTestSuite" 33 } 34 ndkVersion "21.0.6113669" 35 ndk { 36 abiFilters 'armeabi-v7a', 'x86', 'x86_64', 'arm64-v8a' 37 } 38 39 } 40 } 41 42 buildTypes { 43 debug { 44 debuggable true 45 jniDebuggable true 46 } 47 release { 48 proguardFile getDefaultProguardFile('proguard-android.txt') 49 } 50 } 51 52 sourceSets.main { 53 jni.srcDirs = [] 54 jniLibs.srcDir 'src/main/libs' 55 } 56 57 externalNativeBuild { 58 cmake { 59 path '../build_cmake/CMakeLists.txt' 60 version "3.10.2" 61 } 62 } 63} 64