From 8eddcccf3faf2d059bc5640fb3fcedf5d67c812b Mon Sep 17 00:00:00 2001 From: tangshihua Date: Mon, 14 Nov 2022 16:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96BUILD.gn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tangshihua --- ai/BUILD.gn | 4 +- ai/neural_network_runtime/interface/BUILD.gn | 50 ++++++++++---------- ai/neural_network_runtime/stability/BUILD.gn | 50 ++++++++++---------- 3 files changed, 51 insertions(+), 53 deletions(-) diff --git a/ai/BUILD.gn b/ai/BUILD.gn index 6e0ddaab4..93c706e46 100644 --- a/ai/BUILD.gn +++ b/ai/BUILD.gn @@ -13,7 +13,5 @@ group("ai") { testonly = true - deps = [ - "neural_network_runtime:neural_network_runtime" - ] + deps = [ "neural_network_runtime:neural_network_runtime" ] } \ No newline at end of file diff --git a/ai/neural_network_runtime/interface/BUILD.gn b/ai/neural_network_runtime/interface/BUILD.gn index 65a3ba9ce..06a759a44 100644 --- a/ai/neural_network_runtime/interface/BUILD.gn +++ b/ai/neural_network_runtime/interface/BUILD.gn @@ -24,32 +24,32 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") { "src/ExecutorTest.cpp", "../common/nnrt_utils.cpp", "../common/mock_idevice.cpp", - ] + ] - include_dirs = [ - "../common", - "//foundation/ai/neural_network_runtime", - "//foundation/ai/neural_network_runtime/third_party/include", - "//third_party/googletest/googletest/include", - "//third_party/googletest/googlemock/include", - "//third_party/mindspore/mindspore/lite/mindir/include" - ] - deps = [ - "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", - "//third_party/googletest:gmock", - "//third_party/googletest:gtest", - ] + include_dirs = [ + "../common", + "//foundation/ai/neural_network_runtime", + "//foundation/ai/neural_network_runtime/third_party/include", + "//third_party/googletest/googletest/include", + "//third_party/googletest/googlemock/include", + "//third_party/mindspore/mindspore/lite/mindir/include" + ] + deps = [ + "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", + "//third_party/googletest:gmock", + "//third_party/googletest:gtest", + ] - external_deps = [ - "c_utils:utils", - "hdf_core:libhdi", - "ipc:ipc_single", - "hdf_core:libhdf_utils", - "hilog_native:libhilog", - "hitrace_native:libhitracechain", - "drivers_interface_nnrt:libnnrt_proxy_1.0", - "mindspore:mindir" - ] + external_deps = [ + "c_utils:utils", + "hdf_core:libhdi", + "ipc:ipc_single", + "hdf_core:libhdf_utils", + "hilog_native:libhilog", + "hitrace_native:libhitracechain", + "drivers_interface_nnrt:libnnrt_proxy_1.0", + "mindspore:mindir" + ] - cflags = [ "-Wno-error" ] + cflags = [ "-Wno-error" ] } diff --git a/ai/neural_network_runtime/stability/BUILD.gn b/ai/neural_network_runtime/stability/BUILD.gn index 1c995aa3d..f2ad0c531 100644 --- a/ai/neural_network_runtime/stability/BUILD.gn +++ b/ai/neural_network_runtime/stability/BUILD.gn @@ -20,32 +20,32 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") { "src/MultiThreadTest.cpp", "../common/nnrt_utils.cpp", "../common/mock_idevice.cpp", - ] + ] - include_dirs = [ - "../common", - "//foundation/ai/neural_network_runtime", - "//foundation/ai/neural_network_runtime/third_party/include", - "//third_party/googletest/googletest/include", - "//third_party/googletest/googlemock/include", - "//third_party/mindspore/mindspore/lite/mindir/include" - ] - deps = [ - "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", - "//third_party/googletest:gmock", - "//third_party/googletest:gtest", - ] + include_dirs = [ + "../common", + "//foundation/ai/neural_network_runtime", + "//foundation/ai/neural_network_runtime/third_party/include", + "//third_party/googletest/googletest/include", + "//third_party/googletest/googlemock/include", + "//third_party/mindspore/mindspore/lite/mindir/include" + ] + deps = [ + "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", + "//third_party/googletest:gmock", + "//third_party/googletest:gtest", + ] - external_deps = [ - "c_utils:utils", - "hdf_core:libhdi", - "ipc:ipc_single", - "hdf_core:libhdf_utils", - "hilog_native:libhilog", - "hitrace_native:libhitracechain", - "drivers_interface_nnrt:libnnrt_proxy_1.0", - "mindspore:mindir" - ] + external_deps = [ + "c_utils:utils", + "hdf_core:libhdi", + "ipc:ipc_single", + "hdf_core:libhdf_utils", + "hilog_native:libhilog", + "hitrace_native:libhitracechain", + "drivers_interface_nnrt:libnnrt_proxy_1.0", + "mindspore:mindir" + ] - cflags = [ "-Wno-error" ] + cflags = [ "-Wno-error" ] } -- GitLab