char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
bbce619ad
char/aliceai-t5-moe
1plugins { 2alias ( libs . plugins . android . library ) 3alias ( libs . plugins . jetbrains . kotlin . android ) 4} 5 6android { 7namespace = "com.arm.aichat" 8compileSdk = 36 9 10ndkVersion = "29.0.13113456" 11 12defaultConfig { 13minSdk = 33 14 15testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" 16consumerProguardFiles ( "consumer-rules.pro" ) 17 18ndk { 19abiFilters += listOf ( "arm64-v8a" , "x86_64" ) 20} 21externalNativeBuild { 22cmake { 23arguments += "-DCMAKE_BUILD_TYPE=Release" 24arguments += "-DCMAKE_MESSAGE_LOG_LEVEL=DEBUG" 25arguments += "-DCMAKE_VERBOSE_MAKEFILE=ON" 26 27arguments += "-DBUILD_SHARED_LIBS=ON" 28arguments += "-DLLAMA_BUILD_APP=OFF" 29arguments += "-DLLAMA_BUILD_COMMON=ON" 30arguments += "-DLLAMA_OPENSSL=OFF" 31 32arguments += "-DGGML_NATIVE=OFF" 33arguments += "-DGGML_BACKEND_DL=ON" 34arguments += "-DGGML_CPU_ALL_VARIANTS=ON" 35arguments += "-DGGML_LLAMAFILE=OFF" 36} 37} 38aarMetadata { 39minCompileSdk = 35 40} 41} 42externalNativeBuild { 43cmake { 44path ( "src/main/cpp/CMakeLists.txt" ) 45version = "3.31.6" 46} 47} 48compileOptions { 49sourceCompatibility = JavaVersion . VERSION_17 50targetCompatibility = JavaVersion . VERSION_17 51} 52kotlin { 53jvmToolchain ( 17 ) 54 55compileOptions { 56targetCompatibility = JavaVersion . VERSION_17 57} 58} 59 60packaging { 61resources { 62excludes += "/META-INF/{AL2.0,LGPL2.1}" 63} 64} 65 66publishing { 67singleVariant ( "release" ) { 68withJavadocJar () 69} 70} 71} 72 73dependencies { 74implementation ( libs . androidx . core . ktx ) 75implementation ( libs . androidx . datastore . preferences ) 76 77testImplementation ( libs . junit ) 78androidTestImplementation ( libs . androidx . junit ) 79}