已开启
【轻量级 PR】update: 更新文件 BUILD.gn #41
zhwang0创建于 7月23日
【轻量级 PR】update: 更新文件 BUILD.gn #41
已开启
从N/A合入到OpenHarmony-7.0-Release
共 1 个文件变更+3-1
| @@ -66,6 +66,8 @@ if (defined(ohos_lite)) { | |||
| 66 | public_configs = [ ":libqrcodegen_config" ] | 66 | public_configs = [ ":libqrcodegen_config" ] |
| 67 | part_name = "qrcode_generator" | 67 | part_name = "qrcode_generator" |
| 68 | subsystem_name = "commonlibrary" | 68 | subsystem_name = "commonlibrary" |
| 69 | - external_deps = [ "bounds_checking_function:libsec_static" ] | 69 | + if (!is_mingw) { |
| 70 | + external_deps = [ "bounds_checking_function:libsec_static" ] | ||
| 71 | + } | ||
| 70 | } | 72 | } |
| 71 | } | 73 | } |
鉴于qrcode_item.cpp中确实会引用到bounds_checking_function部件的#include "securec.h",可以在mingw的平台,添加上securec.h头文件所在路径third_party/bounds_checking_function/include
或者ace_engine 侧给 mingw 链接加 -Wl,--allow-multiple-definition 容忍重复符号(屏蔽strcpy_s 重定义问题)(不推荐)