From cceee6d7d4759d5409fff28f75e750bdb7099fe7 Mon Sep 17 00:00:00 2001 From: LiXiaoqi <2360211477@qq.com> Date: Fri, 22 Nov 2024 13:36:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20flutter=5Fplugin.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flutter_plugin.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 文件