3 Star 0 Fork 8

heppen/hiviewdfx_hilog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-fix-build-gn-files-config.patch 2.58 KB
一键复制 编辑 原始数据 按行查看 历史
yanansong 提交于 2023-10-26 16:47 . add next
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/heppen/hiviewdfx_hilog.git
git@gitee.com:heppen/hiviewdfx_hilog.git
heppen
hiviewdfx_hilog
hiviewdfx_hilog
master

搜索帮助