feat: install 'bytrace' as soft link of 'hitrace'

Signed-off-by: yanmengzhao1 <yanmengzhao1@huawei.com>
This commit is contained in:
yanmengzhao1 2024-06-03 14:50:09 +08:00
parent 3c850b84a7
commit 6ced7fa4b4

View File

@ -67,44 +67,9 @@ ohos_executable("hitrace") {
"../frameworks/include/",
"../interfaces/native/innerkits/include/hitrace_meter",
]
subsystem_name = "hiviewdfx"
part_name = "hitrace"
}
ohos_executable("bytrace") {
install_enable = true
sources = [
"../frameworks/native/common_utils.cpp",
"./src/hitrace_cmd.cpp",
]
symlink_target_name = [ "bytrace" ]
deps = [
":hitrace_osal_inner",
"../config:hitrace_utils",
]
external_deps = []
if (defined(ohos_lite)) {
external_deps += [ "hilog_lite:hilog_lite" ]
} else {
external_deps += [ "hilog:libhilog" ]
}
if (device_company != "qemu" && support_executable_file) {
external_deps += [ "hiview:libucollection_client" ]
}
external_deps += [
"bounds_checking_function:libsec_static",
"cJSON:cjson",
"zlib:libz",
]
include_dirs = [
"./include",
"../frameworks/include/",
"../interfaces/native/innerkits/include/hitrace_meter",
]
subsystem_name = "hiviewdfx"
part_name = "hitrace"
}
@ -143,7 +108,6 @@ ohos_rust_executable("hitrace_example_rust") {
group("hitrace_target") {
if (device_company != "qemu" && support_executable_file) {
deps = [
":bytrace",
":hitrace",
":hitrace_example",
]