mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-12-04 05:06:45 +00:00
hiprofiler test 部件依赖整改
Signed-off-by:wenlong12<wenlong12@huawei.com> Signed-off-by: wenlong_12 <wenlong12@huawei.com>
This commit is contained in:
parent
f0246de4b6
commit
147f8038a5
@ -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",
|
||||
|
@ -33,6 +33,7 @@ ohos_fuzztest("PluginCreateSessionCmdFuzzTest") {
|
||||
"../../..:plugins_sources",
|
||||
]
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"hilog:libhilog_base",
|
||||
"protobuf:protobuf_lite",
|
||||
]
|
||||
|
@ -33,6 +33,7 @@ ohos_fuzztest("PluginDestroySessionCmdFuzzTest") {
|
||||
"../../..:plugins_sources",
|
||||
]
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"hilog:libhilog_base",
|
||||
"protobuf:protobuf_lite",
|
||||
]
|
||||
|
@ -33,6 +33,7 @@ ohos_fuzztest("PluginStartSessionCmdFuzzTest") {
|
||||
"../../..:plugins_sources",
|
||||
]
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"hilog:libhilog_base",
|
||||
"protobuf:protobuf_lite",
|
||||
]
|
||||
|
@ -33,6 +33,7 @@ ohos_fuzztest("PluginStopSessionCmdFuzzTest") {
|
||||
"../../..:plugins_sources",
|
||||
]
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"hilog:libhilog_base",
|
||||
"protobuf:protobuf_lite",
|
||||
]
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -89,6 +89,7 @@ ohos_unittest("ffrt_profiler_ut") {
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"googletest:gtest",
|
||||
"hilog:libhilog_base",
|
||||
"init:libbegetutil",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
]
|
||||
|
@ -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",
|
||||
]
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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 = [
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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 = [
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -49,6 +49,7 @@ ohos_source_set("network_profiler_service") {
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"hisysevent:libhisysevent",
|
||||
"init:libbegetutil",
|
||||
"protobuf:protobuf_lite",
|
||||
|
@ -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"
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
@ -83,6 +83,7 @@ ohos_unittest("proto_encoder_ut") {
|
||||
"$proto_out_dir",
|
||||
]
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"googletest:gtest",
|
||||
"protobuf:protobuf_lite",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user