1From 2f1bcc439c065dece4e178982387014a3a10a435 Mon Sep 17 00:00:00 2001 2From: Zhu Guodong <zhuguodong0001@163.com> 3Date: Thu, 27 Jul 2023 19:56:04 +0800 4Subject: [PATCH] auto-apply 0038-adapt-nnrt-ext-deps.patch 5 6--- 7 mindspore/lite/BUILD.gn | 14 ++++++++++++-- 8 1 file changed, 12 insertions(+), 2 deletions(-) 9 10diff --git a/mindspore/lite/BUILD.gn b/mindspore/lite/BUILD.gn 11index 86b80a28..a4cfa7b8 100644 12--- a/mindspore/lite/BUILD.gn 13+++ b/mindspore/lite/BUILD.gn 14@@ -714,6 +714,7 @@ ohos_shared_library("mindspore_lib") { 15 "../../third_party/", 16 "./schema/", 17 "../ccsrc/", 18+ "//foundation/ai/neural_network_runtime/", 19 ] 20 21 defines = [ 22@@ -774,7 +775,11 @@ ohos_shared_library("mindspore_lib") { 23 "mindir/include", 24 "mindir/inner_headers", 25 ] 26- external_deps += [ "neural_network_runtime:nnrt_target" ] 27+ if (mindspore_feature_nnrt_metagraph) { 28+ external_deps += [ "neural_network_runtime_ext:nnrt_ext_target" ] 29+ } else { 30+ external_deps += [ "neural_network_runtime:nnrt_target" ] 31+ } 32 deps += [ "mindir:mindir_lib" ] 33 defines += [ "SUPPORT_NNRT" ] 34 } 35@@ -814,6 +819,7 @@ ohos_shared_library("mindspore_ndk") { 36 "../../third_party/", 37 "./schema/", 38 "../ccsrc/", 39+ "//foundation/ai/neural_network_runtime/", 40 ] 41 42 defines = [ 43@@ -828,7 +834,11 @@ ohos_shared_library("mindspore_ndk") { 44 ":secure_option", 45 ] 46 47- external_deps = [ "neural_network_runtime:nnrt_target" ] 48+ if (mindspore_feature_nnrt_metagraph) { 49+ external_deps = [ "neural_network_runtime_ext:nnrt_ext_target" ] 50+ } else { 51+ external_deps = [ "neural_network_runtime:nnrt_target" ] 52+ } 53 54 remove_configs = [ "//build/config/compiler:no_rtti" ] 55 56-- 572.34.1 58 59