hiprofiler test 部件依赖整改

Signed-off-by:wenlong12<wenlong12@huawei.com>

Signed-off-by: wenlong_12 <wenlong12@huawei.com>
This commit is contained in:
wenlong_12 2024-12-02 10:18:45 +08:00
parent f0246de4b6
commit 147f8038a5
23 changed files with 19 additions and 11 deletions

View File

@ -50,6 +50,7 @@ ohos_unittest("hiprofiler_plugins_ut") {
configs = [ ":cflags_config" ]
external_deps = [
"abseil-cpp:absl_sync",
"bounds_checking_function:libsec_shared",
"googletest:gmock",
"googletest:gtest",
"grpc:grpc",

View File

@ -33,6 +33,7 @@ ohos_fuzztest("PluginCreateSessionCmdFuzzTest") {
"../../..:plugins_sources",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"protobuf:protobuf_lite",
]

View File

@ -33,6 +33,7 @@ ohos_fuzztest("PluginDestroySessionCmdFuzzTest") {
"../../..:plugins_sources",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"protobuf:protobuf_lite",
]

View File

@ -33,6 +33,7 @@ ohos_fuzztest("PluginStartSessionCmdFuzzTest") {
"../../..:plugins_sources",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"protobuf:protobuf_lite",
]

View File

@ -33,6 +33,7 @@ ohos_fuzztest("PluginStopSessionCmdFuzzTest") {
"../../..:plugins_sources",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"protobuf:protobuf_lite",
]

View File

@ -36,6 +36,7 @@ ohos_source_set("cpudataplugin_source") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"hisysevent:libhisysevent",
"protobuf:protobuf_lite",

View File

@ -41,7 +41,6 @@ ohos_fuzztest("CpuStartPluginFuzzTest") {
"../../../../api/include",
"${OHOS_PROFILER_DIR}/interfaces/kits",
"${OHOS_PROFILER_DIR}/device/base/include",
"//third_party/bounds_checking_function/include",
]
}

View File

@ -37,6 +37,7 @@ ohos_source_set("diskiodataplugin_source") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"hisysevent:libhisysevent",
"protobuf:protobuf_lite",

View File

@ -41,7 +41,6 @@ ohos_fuzztest("DiskioStartPluginFuzzTest") {
"../../../../api/include",
"${OHOS_PROFILER_DIR}/interfaces/kits",
"${OHOS_PROFILER_DIR}/device/base/include",
"//third_party/bounds_checking_function/include",
]
}

View File

@ -89,6 +89,7 @@ ohos_unittest("ffrt_profiler_ut") {
]
external_deps = [
"bounds_checking_function:libsec_shared",
"googletest:gtest",
"hilog:libhilog_base",
"init:libbegetutil",

View File

@ -69,6 +69,7 @@ ohos_shared_library("ftrace_plugin") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"hiview:libucollection_client",
"init:libbegetutil",

View File

@ -50,7 +50,6 @@ ohos_unittest("ftrace_plugin_ut") {
"../../../memory_plugin/include",
"${OHOS_PROFILER_DIR}/interfaces/kits",
"${OHOS_PROFILER_DIR}/device/base/include",
"//commonlibrary/c_utils/base/include",
]
cflags = [
"-Wno-inconsistent-missing-override",
@ -58,6 +57,7 @@ ohos_unittest("ftrace_plugin_ut") {
]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"googletest:gtest",
"hilog:libhilog_base",
"hiview:libucollection_client",

View File

@ -31,6 +31,7 @@ ohos_source_set("ftrace_event_parsers") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"protobuf:protobuf_lite",
]

View File

@ -31,6 +31,7 @@ ohos_source_set("ftrace_event_parsers") {
if (current_toolchain != host_toolchain) {
defines = [ "HAVE_HILOG" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog_base",
"protobuf:protobuf_lite",
]

View File

@ -40,7 +40,6 @@ ohos_fuzztest("HilogStartPluginFuzzTest") {
"../../../../api/include",
"${OHOS_PROFILER_DIR}/interfaces/kits",
"${OHOS_PROFILER_DIR}/device/base/include",
"//third_party/bounds_checking_function/include",
]
}

View File

@ -44,7 +44,6 @@ ohos_fuzztest("HiperfStartPluginFuzzTest") {
"${OHOS_PROFILER_DIR}/interfaces/kits",
"${OHOS_PROFILER_DIR}/device/base/include",
"${OHOS_PROFILER_DIR}/device/services/profiler_service/src",
"//commonlibrary/c_utils/base/include",
]
defines = [ "LITE_PROTO" ]
external_deps = [

View File

@ -45,7 +45,6 @@ ohos_fuzztest("MemoryStartPluginFuzzTest") {
"../../../../api/include",
"${OHOS_PROFILER_DIR}/interfaces/kits",
"${OHOS_PROFILER_DIR}/device/base/include",
"//third_party/bounds_checking_function/include",
]
}

View File

@ -64,7 +64,6 @@ ohos_unittest("nativehook_ut") {
"${OHOS_PROFILER_DIR}/device/services/ipc/include",
"${OHOS_PROFILER_DIR}/device/services/shared_memory/include",
"${OHOS_PROFILER_DIR}/device/services/profiler_service/include",
"//third_party/musl/include/musl_preinit_common.h",
]
cflags = [

View File

@ -42,7 +42,6 @@ ohos_fuzztest("NetworkStartPluginFuzzTest") {
"../../../../api/include",
"${OHOS_PROFILER_DIR}/interfaces/kits",
"${OHOS_PROFILER_DIR}/device/base/include",
"//third_party/bounds_checking_function/include",
]
}

View File

@ -49,6 +49,7 @@ ohos_source_set("network_profiler_service") {
]
external_deps = [
"bounds_checking_function:libsec_shared",
"hisysevent:libhisysevent",
"init:libbegetutil",
"protobuf:protobuf_lite",

View File

@ -40,7 +40,6 @@ config("common_config") {
include_dirs = [
"$skel_out_dir",
"./include",
"//third_party/libbpf/src",
]
}
@ -80,6 +79,7 @@ ohos_source_set("hiebpf.bpf") {
":common_config",
":kern_common_config",
]
external_deps = [ "libbpf:libbpf" ]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"
output_name = "hiebpf.bpf.o"
@ -138,7 +138,10 @@ ohos_executable("hiebpf") {
sources = [ "./src/hiebpf.cpp" ] # this is main()
deps = [ ":hiebpf_source_common" ]
external_deps = [ "bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"libbpf:libbpf",
]
subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
part_name = "${OHOS_PROFILER_PART_NAME}"
output_name = "hiebpf"

View File

@ -17,7 +17,6 @@ import("//developtools/profiler/device/base/config.gni")
config("proto_encoder_config") {
include_dirs = [
"include",
"//third_party/bounds_checking_function/include",
"${OHOS_PROFILER_DIR}/interfaces/kits",
]
}

View File

@ -83,6 +83,7 @@ ohos_unittest("proto_encoder_ut") {
"$proto_out_dir",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"googletest:gtest",
"protobuf:protobuf_lite",
]