!996 修改profiler依赖的hilog部件名

Merge pull request !996 from wenlong_12/profiler0620
This commit is contained in:
openharmony_ci 2023-06-21 11:24:49 +00:00 committed by Gitee
commit ada78a1abf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
59 changed files with 96 additions and 243 deletions

View File

@ -25,36 +25,35 @@
"ram": "2000KB",
"deps": {
"components": [
"hiviewdfx_hilog_native",
"ability_runtime",
"ability_base",
"common",
"zlib",
"hidumper",
"bundle_framework",
"hiview",
"bounds_checking_function",
"ipc",
"init",
"hilog_native",
"napi",
"samgr",
"bundle_framework",
"common",
"common_event_service",
"c_utils",
"faultloggerd",
"common_event_service",
"hidumper",
"hilog",
"hiview",
"ipc",
"init",
"napi",
"safwk",
"selinux"
"samgr",
"selinux",
"zlib"
],
"third_party": [
"googletest",
"utils",
"zlib",
"bounds_checking_function",
"protobuf",
"openssl",
"libbpf",
"googletest",
"grpc",
"thirdparty_selinux"
"libbpf",
"openssl",
"protobuf",
"thirdparty_selinux",
"utils",
"zlib"
]
},
"build": {

View File

@ -84,10 +84,6 @@ ohos_source_set("hiprofiler_base") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps += [ "shared_library:libhilog" ]
} else {
external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps += [ "hilog:libhilog" ]
}
}

View File

@ -40,7 +40,7 @@ ohos_unittest("hiprofiler_base_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
}

View File

@ -62,7 +62,7 @@ ohos_unittest("hiprofiler_cmd_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -60,11 +60,7 @@ ohos_source_set("plugins_sources") {
"${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config",
]
if (current_toolchain != host_toolchain) {
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ]
}
@ -84,11 +80,7 @@ ohos_executable("hiprofiler_plugins") {
sources = [ "src/main.cpp" ]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
install_enable = true
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -47,7 +47,7 @@ ohos_unittest("hiprofiler_plugins_ut") {
"unittest/writer_adapter_test.cpp",
]
configs = [ ":cflags_config" ]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
}

View File

@ -33,7 +33,7 @@ ohos_fuzztest("PluginCreateSessionCmdFuzzTest") {
#"${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
"../../..:plugins_sources",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -33,7 +33,7 @@ ohos_fuzztest("PluginDestroySessionCmdFuzzTest") {
#"${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
"../../..:plugins_sources",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -33,7 +33,7 @@ ohos_fuzztest("PluginStartSessionCmdFuzzTest") {
#"${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
"../../..:plugins_sources",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -33,7 +33,7 @@ ohos_fuzztest("PluginStopSessionCmdFuzzTest") {
#"${OHOS_PROFILER_DIR}/device/services/profiler_service:profiler_service",
"../../..:plugins_sources",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -38,11 +38,7 @@ ohos_shared_library("bytraceplugin") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
install_enable = false
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -36,11 +36,7 @@ ohos_source_set("cpudataplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
}
@ -71,11 +67,7 @@ ohos_executable("cpudataplugintest") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
install_enable = false
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -44,7 +44,7 @@ ohos_unittest("cpudataplugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -37,11 +37,7 @@ ohos_source_set("diskiodataplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
}
@ -70,11 +66,7 @@ ohos_executable("diskiodataplugintest") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
install_enable = false
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -44,7 +44,7 @@ ohos_unittest("diskiodataplugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -53,11 +53,7 @@ ohos_source_set("ftrace_plugin_source") {
]
if (current_toolchain != host_toolchain) {
defines += [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -61,7 +61,7 @@ ohos_unittest("ftrace_plugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -37,11 +37,7 @@ ohos_source_set("ftrace_event_formatters") {
if (!is_mingw) {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs =
[ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]

View File

@ -30,11 +30,7 @@ ohos_source_set("ftrace_event_parsers") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -33,11 +33,7 @@ ohos_source_set("hidumpplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -43,7 +43,7 @@ ohos_unittest("hidumpplugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -32,11 +32,7 @@ ohos_source_set("hiebpfplugin_source") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -37,11 +37,7 @@ ohos_source_set("hilogplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
}

View File

@ -43,7 +43,7 @@ ohos_unittest("hilogplugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -39,11 +39,7 @@ ohos_source_set("hiperfplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -44,7 +44,7 @@ ohos_unittest("hiperfplugin_ut") {
]
external_deps = [
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
"hilog:libhilog",
]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -37,11 +37,7 @@ ohos_source_set("hisyseventplugin_source") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
}

View File

@ -43,7 +43,7 @@ ohos_unittest("hisyseventplugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -37,11 +37,7 @@ ohos_source_set("memdataplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
}
@ -68,11 +64,7 @@ ohos_executable("memorytest") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
install_enable = false
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -48,7 +48,7 @@ ohos_unittest("memdataplugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"
@ -76,7 +76,7 @@ ohos_unittest("smaps_stats_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"

View File

@ -94,11 +94,7 @@ ohos_executable("native_daemon") {
external_deps = [ "init:libbegetutil" ]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps += [ "shared_library:libhilog" ]
} else {
external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps += [ "hilog:libhilog" ]
}
use_exceptions = true
install_enable = true

View File

@ -121,7 +121,7 @@ ohos_unittest("native_daemon_ut") {
}
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
}

View File

@ -69,11 +69,7 @@ ohos_source_set("native_hook_source") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps += [ "shared_library:libhilog" ]
} else {
external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps += [ "hilog:libhilog" ]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"
@ -103,11 +99,7 @@ ohos_executable("nativetest_c") {
if (use_musl && !is_asan) {
defines += [ "HOOK_ENABLE" ]
}
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
include_dirs = [ "//third_party/bounds_checking_function/include" ]
deps = [ "//third_party/bounds_checking_function:libsec_static" ]
@ -127,11 +119,7 @@ ohos_executable("nativetest_cpp") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
cflags = [
@ -151,11 +139,7 @@ ohos_shared_library("nativetest_so") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
cflags = [
@ -174,11 +158,7 @@ ohos_executable("malloctest_cpp") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
include_dirs = [ "//third_party/bounds_checking_function/include" ]
@ -200,11 +180,7 @@ ohos_executable("perf_test_data") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
cflags = [ "-Wno-error=inline-asm" ]

View File

@ -74,7 +74,7 @@ ohos_unittest("nativehook_ut") {
"-Dprotected=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -37,11 +37,7 @@ ohos_source_set("networkplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
}

View File

@ -45,7 +45,7 @@ ohos_unittest("networkplugin_ut") {
"-Dprotected=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
resource_config_file = "${OHOS_PROFILER_DIR}/device/ohos_test.xml"

View File

@ -35,11 +35,7 @@ ohos_source_set("processplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -43,7 +43,7 @@ ohos_unittest("processplugin_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -33,11 +33,7 @@ ohos_shared_library("sampleplugin") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
install_enable = false

View File

@ -32,11 +32,7 @@ ohos_source_set("streamplugin_source") {
]
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"

View File

@ -35,11 +35,7 @@ ohos_source_set("ipc") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps += [ "shared_library:libhilog" ]
} else {
external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps += [ "hilog:libhilog" ]
}
deps = [
"${OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR}:protobuf_lite_static",

View File

@ -48,7 +48,7 @@ ohos_unittest("ipc_ut") {
"-Dprivate=public", #allow test code access private members
"-Dprotected=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
}

View File

@ -39,10 +39,6 @@ ohos_source_set("hiprofiler_plugin_service") {
public_configs = [ "${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config" ]
deps = [ "../../base:hiprofiler_base" ]
if (current_toolchain != host_toolchain) {
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
}

View File

@ -42,7 +42,7 @@ ohos_unittest("plugin_service_ut") {
"-Dprivate=public", #allow test code access private members
"-Dprotected=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
}
@ -62,7 +62,7 @@ ohos_unittest("plugin_service_module_test") {
"-Dprivate=public", #allow test code access private members
"-Dprotected=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
}

View File

@ -52,11 +52,7 @@ ohos_source_set("profiler_service") {
"${OHOS_PROFILER_DIR}/device/base:hiprofiler_test_config",
]
if (current_toolchain != host_toolchain) {
if (build_l2) {
external_deps = [ "hilog:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ]
}
@ -93,11 +89,7 @@ ohos_executable("hiprofilerd") {
"../plugin_service:hiprofiler_plugin_service",
]
if (current_toolchain != host_toolchain) {
if (build_l2) {
external_deps = [ "shared_library:libhilog" ]
} else {
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
}
external_deps = [ "hilog:libhilog" ]
}
install_enable = true
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -58,7 +58,7 @@ ohos_unittest("profiler_service_ut") {
]
configs = [ ":cflags_config" ]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
}

View File

@ -37,7 +37,7 @@ ohos_fuzztest("ProfilerCreateSessionFuzzTest") {
"../../..:profiler_service",
"../../../../plugin_service:hiprofiler_plugin_service",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -37,7 +37,7 @@ ohos_fuzztest("ProfilerDestroySessionFuzzTest") {
"../../..:profiler_service",
"../../../../plugin_service:hiprofiler_plugin_service",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -38,7 +38,7 @@ ohos_fuzztest("ProfilerFetchDataFuzzTest") {
"../../..:profiler_service",
"../../../../plugin_service:hiprofiler_plugin_service",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -37,7 +37,7 @@ ohos_fuzztest("ProfilerGetCapabilitiesFuzzTest") {
"../../..:profiler_service",
"../../../../plugin_service:hiprofiler_plugin_service",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -37,7 +37,7 @@ ohos_fuzztest("ProfilerKeepSessionFuzzTest") {
"../../..:profiler_service",
"../../../../plugin_service:hiprofiler_plugin_service",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -37,7 +37,7 @@ ohos_fuzztest("ProfilerStartSessionFuzzTest") {
"../../..:profiler_service",
"../../../../plugin_service:hiprofiler_plugin_service",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -37,7 +37,7 @@ ohos_fuzztest("ProfilerStopSessionFuzzTest") {
"../../..:profiler_service",
"../../../../plugin_service:hiprofiler_plugin_service",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
}
###############################################################################

View File

@ -41,17 +41,10 @@ ohos_source_set("shared_memory_source") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [
"c_utils:utils",
"shared_library:libhilog",
]
} else {
external_deps = [
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
]
}
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"
@ -78,17 +71,10 @@ ohos_static_library("shared_memory_lite") {
if (current_toolchain != host_toolchain) {
defines += [ "HAVE_HILOG" ]
if (build_l2) {
external_deps = [
"c_utils:utils",
"shared_library::libhilog",
]
} else {
external_deps = [
"c_utils:utils",
"hiviewdfx_hilog_native:libhilog",
]
}
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"

View File

@ -45,7 +45,7 @@ ohos_unittest("shared_memory_ut") {
"-Dprivate=public", #allow test code access private members
"-Dprotected=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"
}

View File

@ -26,7 +26,7 @@ ohos_source_set("libhidebug_source") {
external_deps = [
"c_utils:utils",
"hilog_native:libhilog",
"hilog:libhilog",
"init:libbegetutil",
]
}

View File

@ -41,7 +41,7 @@ ohos_shared_library("hidebug") {
"bundle_framework:appexecfwk_core",
"c_utils:utils",
"hidumper:lib_dump_usage",
"hilog_native:libhilog",
"hilog:libhilog",
"ipc:ipc_core",
"napi:ace_napi",
"samgr:samgr_proxy",

View File

@ -30,7 +30,7 @@ ohos_shared_library("libhidebug") {
}
external_deps = [
"hilog_native:libhilog",
"hilog:libhilog",
"init:libbegetutil",
]

View File

@ -54,7 +54,7 @@ ohos_unittest("hiebpf_ut") {
"-Wno-inconsistent-missing-override",
"-Dprivate=public", #allow test code access private members
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hilog:libhilog" ]
configs = [ ":module_private_config" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"