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