From 38c75293a2f48c570a17e5551dbf617fdab73ebb Mon Sep 17 00:00:00 2001 From: xuezhou_yan Date: Sat, 29 Jun 2024 09:40:36 +0800 Subject: [PATCH] =?UTF-8?q?issue:#IA97EC=20=E9=83=A8=E4=BB=B6=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E7=BC=96=E8=AF=91=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuezhou_yan --- interfaces/native/innerkits/BUILD.gn | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/interfaces/native/innerkits/BUILD.gn b/interfaces/native/innerkits/BUILD.gn index 9023a14..b873cc8 100644 --- a/interfaces/native/innerkits/BUILD.gn +++ b/interfaces/native/innerkits/BUILD.gn @@ -14,6 +14,11 @@ import("//base/hiviewdfx/hilog/hilog.gni") import("//build/ohos.gni") +framework_root = "//base/hiviewdfx/hilog/frameworks" +libhilog_root = "$framework_root/libhilog" +libhilog_base_root = "$libhilog_root/base" +vsnprintf_root = "$libhilog_root/vsnprintf" + config("libhilog_pub_config") { visibility = [ ":*" ] include_dirs = [ "include" ] @@ -118,10 +123,29 @@ config("libhilog_base_pub_cfg") { ] } +config("libhilog_base_config") { + visibility = [ "*:*" ] + include_dirs = [ "../../../frameworks/libhilog/include" ] +} + ohos_static_library("libhilog_base") { public_configs = [ ":libhilog_base_pub_cfg" ] - deps = [ "../../../frameworks/libhilog:libhilog_base_source" ] + include_dirs = [ + "$vsnprintf_root/include", + "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", + ] + + vsnprintf_sources = [ "$vsnprintf_root/vsnprintf_s_p.c" ] + + sources = [ "$libhilog_base_root/hilog_base.c" ] + sources += vsnprintf_sources + + defines = [ + "__RECV_MSG_WITH_UCRED_", + "HILOG_PROHIBIT_ALLOCATION", + ] + configs = [ ":libhilog_base_config" ] subsystem_name = "hiviewdfx" part_name = "hilog" -- Gitee