mirror of
https://github.com/openharmony/commonlibrary_rust_ylong_json.git
synced 2026-07-01 22:04:52 -04:00
@@ -24,16 +24,9 @@ ohos_rust_shared_library("lib") {
|
||||
|
||||
sources = [ "src/lib.rs" ]
|
||||
|
||||
deps = [
|
||||
"//third_party/rust/crates/serde/serde:lib",
|
||||
]
|
||||
deps = [ "//third_party/rust/crates/serde/serde:lib" ]
|
||||
|
||||
if (defined(global_parts_info) &&
|
||||
!defined(global_parts_info.third_party_rust_libc)) {
|
||||
deps += [ "//third_party/rust/crates/libc:lib" ]
|
||||
} else {
|
||||
external_deps += [ "rust_libc:lib" ]
|
||||
}
|
||||
external_deps = [ "rust_libc:lib" ]
|
||||
|
||||
features = [
|
||||
"default",
|
||||
@@ -51,12 +44,7 @@ ohos_rust_unittest("rust_ylong_json_unit_test") {
|
||||
"//third_party/rust/crates/serde/serde:lib",
|
||||
]
|
||||
|
||||
if (defined(global_parts_info) &&
|
||||
!defined(global_parts_info.third_party_rust_libc)) {
|
||||
deps += [ "//third_party/rust/crates/libc:lib" ]
|
||||
} else {
|
||||
external_deps += [ "rust_libc:lib" ]
|
||||
}
|
||||
external_deps = [ "rust_libc:lib" ]
|
||||
|
||||
if (defined(global_parts_info) &&
|
||||
!defined(global_parts_info.third_party_rust_serde)) {
|
||||
@@ -79,4 +67,4 @@ group("unittest") {
|
||||
if (!use_clang_coverage) {
|
||||
deps += [ ":rust_ylong_json_unit_test" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user