mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-27 09:40:42 +00:00
添加编译单元指定部件名
Change-Id: Ied18b280b422f8b52ab83adf06091762d3ffd9ab Signed-off-by: yudechen <chenyude@huawei.com>
This commit is contained in:
parent
2c4caaede0
commit
c1fc685818
8
BUILD.gn
8
BUILD.gn
@ -184,6 +184,7 @@ if (is_ohos && hiperf_use_syspara) {
|
||||
}
|
||||
|
||||
ohos_source_set("hiperf_platform_common") {
|
||||
part_name = "hiperf"
|
||||
use_exceptions = true
|
||||
public_deps = common_deps
|
||||
public_configs = common_configs
|
||||
@ -202,6 +203,7 @@ config("platform_linux_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("hiperf_platform_linux") {
|
||||
part_name = "hiperf"
|
||||
use_exceptions = true
|
||||
public_deps = common_deps
|
||||
public_configs = common_configs
|
||||
@ -217,6 +219,7 @@ config("unwind_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("support_libunwind") {
|
||||
part_name = "hiperf"
|
||||
public_configs = common_configs
|
||||
public_configs += [ ":unwind_config" ]
|
||||
if (hiperf_target_host) {
|
||||
@ -229,6 +232,7 @@ ohos_source_set("support_libunwind") {
|
||||
config("elf_config") {
|
||||
}
|
||||
ohos_source_set("support_elf") {
|
||||
part_name = "hiperf"
|
||||
public_configs = common_configs
|
||||
public_configs += [ ":elf_config" ]
|
||||
}
|
||||
@ -244,6 +248,7 @@ config("protobuf_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("support_protobuf") {
|
||||
part_name = "hiperf"
|
||||
use_exceptions = true
|
||||
|
||||
#protobuf
|
||||
@ -320,6 +325,7 @@ config("proto_file_cpp_config") {
|
||||
}
|
||||
|
||||
ohos_source_set("proto_file_cpp") {
|
||||
part_name = "hiperf"
|
||||
cflags = []
|
||||
|
||||
deps = [ ":hiperf_host_build_proto" ]
|
||||
@ -365,6 +371,7 @@ ohos_executable("hiperf_host") {
|
||||
}
|
||||
|
||||
ohos_source_set("hiperf_platform_host") {
|
||||
part_name = "hiperf"
|
||||
sources = [ "./src/hiperf_libreport.cpp" ]
|
||||
public_deps = [ ":hiperf_platform_common" ]
|
||||
}
|
||||
@ -399,6 +406,7 @@ ohos_copy("hiperf_host_python") {
|
||||
}
|
||||
|
||||
ohos_source_set("hiperf_code_analyze") {
|
||||
part_name = "hiperf"
|
||||
deps = [
|
||||
":hiperf_platform_common",
|
||||
":hiperf_platform_linux",
|
||||
|
Loading…
Reference in New Issue
Block a user