代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/hiviewdfx_hilog 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From d0d35591b378d879f1659f4bfd082b165b31e8f1 Mon Sep 17 00:00:00 2001
From: tian2020 <tian_hang@hoperun.com>
Date: Wed, 14 Jun 2023 19:55:41 +0800
Subject: [PATCH 2/3] fix build gn files config
---
interfaces/native/innerkits/BUILD.gn | 34 +++++++++++++++++++++-------
1 file changed, 26 insertions(+), 8 deletions(-)
diff --git a/interfaces/native/innerkits/BUILD.gn b/interfaces/native/innerkits/BUILD.gn
index ee27551..c74beda 100644
--- a/interfaces/native/innerkits/BUILD.gn
+++ b/interfaces/native/innerkits/BUILD.gn
@@ -22,16 +22,16 @@ config("libhilog_pub_config") {
ohos_shared_library("libhilog") {
public_configs = [ ":libhilog_pub_config" ]
sources = [
- "//base/hiviewdfx/hilog/libhilog/hilog.cpp",
- "//base/hiviewdfx/hilog/libhilog/vsnprintf/vsnprintf_s_p.cpp",
- "//base/hiviewdfx/hilog/libhilog/utils/log_utils.cpp",
- "//base/hiviewdfx/hilog/libhilog/utils/log_print.cpp",
+ "//base/hiviewdfx/hilog/frameworks/libhilog/hilog.cpp",
+ "//base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/vsnprintf_s_p.cpp",
+ "//base/hiviewdfx/hilog/frameworks/libhilog/utils/log_utils.cpp",
+ "//base/hiviewdfx/hilog/frameworks/libhilog/utils/log_print.cpp",
]
include_dirs = [
- "//base/hiviewdfx/hilog/libhilog/include/",
- "//base/hiviewdfx/hilog/libhilog/vsnprintf/include/",
- "//base/hiviewdfx/hilog/libhilog/utils/include/",
+ "//base/hiviewdfx/hilog/frameworks/libhilog/include/",
+ "//base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/include/",
+ "//base/hiviewdfx/hilog/frameworks/libhilog/utils/include/",
]
defines = []
@@ -56,7 +56,25 @@ config("libhilog_base_pub_cfg") {
ohos_static_library("libhilog_base") {
public_configs = [ ":libhilog_base_pub_cfg" ]
- deps = [ "//base/hiviewdfx/hilog/frameworks/libhilog:libhilog_base_source" ]
+ #deps = [ "//base/hiviewdfx/hilog/frameworks/libhilog:libhilog_base_source" ]
+
+ include_dirs = [
+ "//base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/include",
+ "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
+ ]
+
+ # vsnprintf_sources = [ "$vsnprintf_root/vsnprintf_s_p.cpp" ]
+
+ sources = [ "//base/hiviewdfx/hilog/frameworks/libhilog/base/hilog_base.cpp" ]
+ # sources += vsnprintf_sources
+
+ public_configs += [ "//base/hiviewdfx/hilog/frameworks/libhilog/:libhilog_base_config" ]
+ configs = [ "//base/hiviewdfx/hilog/frameworks/libhilog/:libhilog_base_config" ]
+
+ defines = [
+ "__RECV_MSG_WITH_UCRED_",
+ "HILOG_PROHIBIT_ALLOCATION",
+ ]
subsystem_name = "hiviewdfx"
part_name = "hilog_native"
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。