From 0a4563eae801126b6f78b7f3cbd7835aa1f69f40 Mon Sep 17 00:00:00 2001 From: tangshihua Date: Mon, 14 Nov 2022 17:16:17 +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 | 2 +- ai/neural_network_runtime/interface/BUILD.gn | 20 ++++++++++---------- ai/neural_network_runtime/stability/BUILD.gn | 14 +++++++------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/ai/BUILD.gn b/ai/BUILD.gn index 93c706e46..8dfd3c108 100644 --- a/ai/BUILD.gn +++ b/ai/BUILD.gn @@ -14,4 +14,4 @@ group("ai") { testonly = true 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 06a759a44..319184e88 100644 --- a/ai/neural_network_runtime/interface/BUILD.gn +++ b/ai/neural_network_runtime/interface/BUILD.gn @@ -17,13 +17,13 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") { testonly = true module_out_path = "acts/nnrt" sources = [ - "src/DeviceTest.cpp", - "src/ModelTest.cpp", + "../common/mock_idevice.cpp", + "../common/nnrt_utils.cpp", "src/CompileTest.cpp", - "src/MemoryTest.cpp", + "src/DeviceTest.cpp", "src/ExecutorTest.cpp", - "../common/nnrt_utils.cpp", - "../common/mock_idevice.cpp", + "src/MemoryTest.cpp", + "src/ModelTest.cpp", ] include_dirs = [ @@ -32,7 +32,7 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") { "//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" + "//third_party/mindspore/mindspore/lite/mindir/include", ] deps = [ "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", @@ -42,13 +42,13 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") { external_deps = [ "c_utils:utils", - "hdf_core:libhdi", - "ipc:ipc_single", + "drivers_interface_nnrt:libnnrt_proxy_1.0", "hdf_core:libhdf_utils", + "hdf_core:libhdi", "hilog_native:libhilog", "hitrace_native:libhitracechain", - "drivers_interface_nnrt:libnnrt_proxy_1.0", - "mindspore:mindir" + "ipc:ipc_single", + "mindspore:mindir", ] cflags = [ "-Wno-error" ] diff --git a/ai/neural_network_runtime/stability/BUILD.gn b/ai/neural_network_runtime/stability/BUILD.gn index f2ad0c531..2ddde55b1 100644 --- a/ai/neural_network_runtime/stability/BUILD.gn +++ b/ai/neural_network_runtime/stability/BUILD.gn @@ -17,9 +17,9 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") { testonly = true module_out_path = "acts/nnrt" sources = [ - "src/MultiThreadTest.cpp", - "../common/nnrt_utils.cpp", "../common/mock_idevice.cpp", + "../common/nnrt_utils.cpp", + "src/MultiThreadTest.cpp", ] include_dirs = [ @@ -28,7 +28,7 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") { "//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" + "//third_party/mindspore/mindspore/lite/mindir/include", ] deps = [ "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", @@ -38,13 +38,13 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") { external_deps = [ "c_utils:utils", - "hdf_core:libhdi", - "ipc:ipc_single", + "drivers_interface_nnrt:libnnrt_proxy_1.0", "hdf_core:libhdf_utils", + "hdf_core:libhdi", "hilog_native:libhilog", "hitrace_native:libhitracechain", - "drivers_interface_nnrt:libnnrt_proxy_1.0", - "mindspore:mindir" + "ipc:ipc_single", + "mindspore:mindir", ] cflags = [ "-Wno-error" ] -- GitLab