diff --git a/interfaces/innerkits/native/BUILD.gn b/interfaces/innerkits/native/BUILD.gn index c7366d8..2efc52a 100644 --- a/interfaces/innerkits/native/BUILD.gn +++ b/interfaces/innerkits/native/BUILD.gn @@ -14,11 +14,10 @@ import("//build/ohos.gni") import("//developtools/hiperf/hiperf.gni") - config("hiperf_client_config") { visibility = [ ":*" ] include_dirs = [ - "include" , + "include", "${hiperf_path}/include", ] } @@ -28,12 +27,10 @@ ohos_shared_library("hiperf_client") { public_configs = [ ":hiperf_client_config" ] sources = [ "src/hiperf_client.cpp" ] defines = [] - if(is_linux) { + if (is_linux) { defines += [ "CONFIG_NO_HILOG" ] } else { - external_deps = [ - "hiviewdfx_hilog_native:libhilog", - ] + external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } subsystem_name = "developtools" @@ -44,12 +41,10 @@ ohos_static_library("hiperf_client_static") { public_configs = [ ":hiperf_client_config" ] sources = [ "src/hiperf_client.cpp" ] defines = [] - if(is_linux) { + if (is_linux) { defines += [ "CONFIG_NO_HILOG" ] } else { - external_deps = [ - "hiviewdfx_hilog_native:libhilog", - ] + external_deps = [ "hiviewdfx_hilog_native:libhilog" ] } subsystem_name = "developtools" diff --git a/interfaces/kits/js/napi/BUILD.gn b/interfaces/kits/js/napi/BUILD.gn index e025575..1c4a47d 100644 --- a/interfaces/kits/js/napi/BUILD.gn +++ b/interfaces/kits/js/napi/BUILD.gn @@ -16,7 +16,7 @@ import("//developtools/hiperf/hiperf.gni") config("hiperf_client_napi_config") { include_dirs = [ - "//foundation/ace/napi/interfaces/kits", + "//foundation/arkui/napi/interfaces/kits", "//third_party/node/src", "${hiperf_path}/include", "${innerkits_path}/include", @@ -29,13 +29,11 @@ ohos_shared_library("hiperf_client_napi") { configs = [ ":hiperf_client_napi_config" ] sources = [ "hiperf_client_napi.cpp" ] deps = [ - "//foundation/ace/napi:ace_napi", "${innerkits_path}/native:hiperf_client", + "//foundation/arkui/napi:ace_napi", ] - external_deps = [ - "hiviewdfx_hilog_native:libhilog", - ] + external_deps = [ "hiviewdfx_hilog_native:libhilog" ] output_name = "hiperf_napi" relative_install_dir = "module"