From 5e4f94d33420d2fe725664ad0e85bef3abc96140 Mon Sep 17 00:00:00 2001 From: ljy9810 Date: Tue, 3 Jun 2025 21:11:18 +0800 Subject: [PATCH] =?UTF-8?q?libc=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ljy9810 --- bundle.json | 3 ++- test/BUILD.gn | 12 +++++++++--- ylong_io/BUILD.gn | 4 +++- ylong_runtime/BUILD.gn | 10 ++++++++-- ylong_signal/BUILD.gn | 4 +++- 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/bundle.json b/bundle.json index 1f72089..88e4a6c 100644 --- a/bundle.json +++ b/bundle.json @@ -26,7 +26,8 @@ "ram": "~200KB", "deps": { "components": [ - "ffrt" + "ffrt", + "rust_libc" ], "third_party": [] }, diff --git a/test/BUILD.gn b/test/BUILD.gn index 60d87ac..4470c7e 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -31,7 +31,9 @@ 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 = [ + "rust_libc:lib", ] } @@ -52,7 +54,9 @@ 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", + ] + external_deps = [ + "rust_libc:lib", ] } @@ -64,7 +68,9 @@ ohos_rust_systemtest("rust_ylong_signal_test_sdv") { sources = [ "../ylong_signal/tests/entry.rs" ] deps = [ "../ylong_signal:ylong_signal", - "//third_party/rust/crates/libc:lib", + ] + external_deps = [ + "rust_libc:lib", ] } diff --git a/ylong_io/BUILD.gn b/ylong_io/BUILD.gn index 0cab989..9249637 100644 --- a/ylong_io/BUILD.gn +++ b/ylong_io/BUILD.gn @@ -26,5 +26,7 @@ ohos_rust_static_library("ylong_io") { ] sources = [ "src/lib.rs" ] - deps = [ "//third_party/rust/crates/libc:lib" ] + external_deps = [ + "rust_libc:lib", + ] } diff --git a/ylong_runtime/BUILD.gn b/ylong_runtime/BUILD.gn index a96ead4..d90b227 100644 --- a/ylong_runtime/BUILD.gn +++ b/ylong_runtime/BUILD.gn @@ -35,7 +35,10 @@ ohos_rust_shared_library("ylong_runtime") { "../ylong_io:ylong_io", "../ylong_runtime_macros:ylong_runtime_macros(${host_toolchain})", "../ylong_signal:ylong_signal", - "//third_party/rust/crates/libc:lib", + ] + + external_deps = [ + "rust_libc:lib", ] } @@ -61,6 +64,9 @@ 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 = [ + "rust_libc:lib", ] } diff --git a/ylong_signal/BUILD.gn b/ylong_signal/BUILD.gn index c9b6bac..c0c13d0 100644 --- a/ylong_signal/BUILD.gn +++ b/ylong_signal/BUILD.gn @@ -21,5 +21,7 @@ ohos_rust_static_library("ylong_signal") { edition = "2021" sources = [ "src/lib.rs" ] - deps = [ "//third_party/rust/crates/libc:lib" ] + external_deps = [ + "rust_libc:lib", + ] } -- Gitee