1From 2f642616edb6cfd22f574d1a33d42f030b35ba5f Mon Sep 17 00:00:00 2001 2From: Zhu Guodong <zhuguodong0001@163.com> 3Date: Wed, 28 Jun 2023 20:56:48 +0800 4Subject: [PATCH] modify ext_dep as hilog 5 6--- 7 mindspore/core/mindrt/BUILD.gn | 1 - 8 mindspore/lite/BUILD.gn | 4 ++-- 9 mindspore/lite/mindir/BUILD.gn | 2 +- 10 mindspore/lite/src/runtime/js_api/BUILD.gn | 3 +-- 11 mindspore/lite/tools/benchmark/BUILD.gn | 1 - 12 5 files changed, 4 insertions(+), 7 deletions(-) 13 14diff --git a/mindspore/core/mindrt/BUILD.gn b/mindspore/core/mindrt/BUILD.gn 15index d773f1f2..2bc0e6cd 100644 16--- a/mindspore/core/mindrt/BUILD.gn 17+++ b/mindspore/core/mindrt/BUILD.gn 18@@ -31,7 +31,6 @@ ohos_source_set("mindrt_obj") { 19 "src/thread/threadpool.cc", 20 ] 21 include_dirs = [ 22- "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 23 "./", 24 "include/", 25 "src/", 26diff --git a/mindspore/lite/BUILD.gn b/mindspore/lite/BUILD.gn 27index 773d334e..dd542cfe 100644 28--- a/mindspore/lite/BUILD.gn 29+++ b/mindspore/lite/BUILD.gn 30@@ -632,7 +632,7 @@ ohos_shared_library("mindspore_lib") { 31 32 remove_configs = [ "//build/config/compiler:no_rtti" ] 33 34- external_deps = [ "hilog_native:libhilog" ] 35+ external_deps = [ "hilog:libhilog" ] 36 37 output_name = "libmindspore-lite.huawei" 38 output_extension = "so" 39@@ -867,7 +867,7 @@ ohos_shared_library("mindspore_train_lib") { 40 ] 41 42 remove_configs = [ "//build/config/compiler:no_rtti" ] 43- external_deps = [ "hilog_native:libhilog" ] 44+ external_deps = [ "hilog:libhilog" ] 45 output_name = "libmindspore-lite-train" 46 output_extension = "so" 47 defines += [ "SUPPORT_TRAIN" ] 48diff --git a/mindspore/lite/mindir/BUILD.gn b/mindspore/lite/mindir/BUILD.gn 49index a046cd76..8da00c2b 100644 50--- a/mindspore/lite/mindir/BUILD.gn 51+++ b/mindspore/lite/mindir/BUILD.gn 52@@ -43,7 +43,7 @@ ohos_shared_library("mindir_lib") { 53 "drivers_interface_nnrt:libnnrt_proxy_1.0", 54 "drivers_interface_nnrt:libnnrt_proxy_2.0", 55 "hdf_core:libhdi", 56- "hilog_native:libhilog", 57+ "hilog:libhilog", 58 "ipc:ipc_core", 59 "bounds_checking_function:libsec_shared", 60 "drivers_interface_nnrt:nnrt_idl_headers" 61diff --git a/mindspore/lite/src/runtime/js_api/BUILD.gn b/mindspore/lite/src/runtime/js_api/BUILD.gn 62index 3994ad0f..7fb1cff0 100644 63--- a/mindspore/lite/src/runtime/js_api/BUILD.gn 64+++ b/mindspore/lite/src/runtime/js_api/BUILD.gn 65@@ -27,7 +27,6 @@ ohos_shared_library("mindsporelite_napi") { 66 "//foundation/arkui/napi/interfaces/kits", 67 "//third_party/libuv/include", 68 "//third_party/node/src", 69- "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 70 ] 71 72 sources = [ 73@@ -44,7 +43,7 @@ ohos_shared_library("mindsporelite_napi") { 74 "ability_runtime:abilitykit_native", 75 "ability_runtime:napi_base_context", 76 "c_utils:utils", 77- "hiviewdfx_hilog_native:libhilog", 78+ "hilog:libhilog", 79 "napi:ace_napi", 80 "resource_management:global_resmgr", 81 ] 82diff --git a/mindspore/lite/tools/benchmark/BUILD.gn b/mindspore/lite/tools/benchmark/BUILD.gn 83index 95bf4e8f..aabf944f 100644 84--- a/mindspore/lite/tools/benchmark/BUILD.gn 85+++ b/mindspore/lite/tools/benchmark/BUILD.gn 86@@ -31,7 +31,6 @@ ohos_executable("benchmark_bin") { 87 ] 88 89 include_dirs = [ 90- "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 91 "//third_party/flatbuffers/include", 92 "../../", # src 93 "../../../core/", # core 94-- 952.34.1 96 97