jni作为lib使用,优化编译

This commit is contained in:
2025-04-10 18:54:02 +08:00
parent ab69c535e4
commit 7007425199
26 changed files with 164 additions and 28 deletions

View File

@@ -21,7 +21,8 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk { //可以根据需要来自行选择并添加对应cpu类型的.so库。
ndk {
//可以根据需要来自行选择并添加对应cpu类型的.so库。
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
// 还可以添加 'armeabi', 'x86', 'x86_64', 'mips', 'mips64'
}
@@ -42,12 +43,6 @@ android {
}
}
externalNativeBuild {
cmake {
path file('CMakeLists.txt')
}
}
signingConfigs {
own {
storeFile file("keystore/ttstd.jks")
@@ -120,6 +115,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':ttutils')
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'