From 39c252495719ead525db2546f23430feebaa48fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=9C=AA=E6=9D=A5?= Date: Thu, 25 Apr 2024 19:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 徐未来 --- test/BUILD.gn | 14 +++++--------- ylong_io/BUILD.gn | 2 +- ylong_runtime/BUILD.gn | 2 +- ylong_signal/BUILD.gn | 2 +- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/test/BUILD.gn b/test/BUILD.gn index 1d96d52..016cdbc 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -31,8 +31,8 @@ ohos_rust_unittest("rust_ylong_runtime_test_ut") { "../ylong_io:ylong_io", "../ylong_runtime_macros:ylong_runtime_macros(${host_toolchain})", "../ylong_signal:ylong_signal", - "//third_party/rust/crates/libc:lib", ] + external_deps = [ "libc:lib" ] } ohos_rust_systemtest("rust_ylong_runtime_test_sdv") { @@ -50,10 +50,8 @@ ohos_rust_systemtest("rust_ylong_runtime_test_sdv") { ] sources = [ "../ylong_runtime/tests/entry.rs" ] - deps = [ - "../ylong_runtime:ylong_runtime", - "//third_party/rust/crates/libc:lib", - ] + deps = [ "../ylong_runtime:ylong_runtime" ] + external_deps = [ "libc:lib" ] } ohos_rust_systemtest("rust_ylong_signal_test_sdv") { @@ -62,10 +60,8 @@ ohos_rust_systemtest("rust_ylong_signal_test_sdv") { rustflags = [ "--cfg=gn_test" ] sources = [ "../ylong_signal/tests/entry.rs" ] - deps = [ - "../ylong_signal:ylong_signal", - "//third_party/rust/crates/libc:lib", - ] + deps = [ "../ylong_signal:ylong_signal" ] + external_deps = [ "libc:lib" ] } group("unittest") { diff --git a/ylong_io/BUILD.gn b/ylong_io/BUILD.gn index 0cab989..be8d20e 100644 --- a/ylong_io/BUILD.gn +++ b/ylong_io/BUILD.gn @@ -26,5 +26,5 @@ ohos_rust_static_library("ylong_io") { ] sources = [ "src/lib.rs" ] - deps = [ "//third_party/rust/crates/libc:lib" ] + external_deps = [ "libc:lib" ] } diff --git a/ylong_runtime/BUILD.gn b/ylong_runtime/BUILD.gn index a96ead4..2ba52a8 100644 --- a/ylong_runtime/BUILD.gn +++ b/ylong_runtime/BUILD.gn @@ -61,6 +61,6 @@ ohos_rust_static_library("ylong_runtime_static") { "../ylong_io:ylong_io", "../ylong_runtime_macros:ylong_runtime_macros(${host_toolchain})", "../ylong_signal:ylong_signal", - "//third_party/rust/crates/libc:lib", ] + external_deps = [ "libc:lib" ] } diff --git a/ylong_signal/BUILD.gn b/ylong_signal/BUILD.gn index c9b6bac..c8a8b51 100644 --- a/ylong_signal/BUILD.gn +++ b/ylong_signal/BUILD.gn @@ -21,5 +21,5 @@ ohos_rust_static_library("ylong_signal") { edition = "2021" sources = [ "src/lib.rs" ] - deps = [ "//third_party/rust/crates/libc:lib" ] + external_deps = [ "libc:lib" ] } -- Gitee