This commit is contained in:
LiXiaoqi 2025-01-07 15:10:24 +08:00
commit 9bd250ebdf

View File

@ -31,10 +31,8 @@ flutter config --help
} }
externalNativeBuild { externalNativeBuild {
// 依赖的自定义cmake路径
cmake { cmake {
arguments "-DANDROID_ARM_NEON=TRUE", "-DANDROID_STL=c++_shared" arguments "-DANDROID_ARM_NEON=TRUE", "-DANDROID_STL=c++_shared"
path "../src/CMakeLists.txt"
} }
} }
consumerProguardFiles "consumer-rules.pro" consumerProguardFiles "consumer-rules.pro"
@ -46,6 +44,13 @@ flutter config --help
jniLibs.srcDirs = ['../src/bin/'] jniLibs.srcDirs = ['../src/bin/']
} }
} }
// 想尝试过把这个和default中的进行合并但是合并后有问题所以cmake路径写到外面
externalNativeBuild {
// 依赖的自定义cmake路径
cmake {
path "../src/CMakeLists.txt"
}
}
``` ```
2. cmake 文件 2. cmake 文件