From 1d6db075d2a34011f67f13868556c19b108e8309 Mon Sep 17 00:00:00 2001 From: oh_ci Date: Tue, 11 Mar 2025 02:15:04 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!24=20:?= =?UTF-8?q?=20=20linux=20arm64=E7=BC=96=E8=AF=91sdk-third=5Fparty=5Frust?= =?UTF-8?q?=5Fcxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/cmd/BUILD.gn | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/gen/cmd/BUILD.gn b/gen/cmd/BUILD.gn index 0e202a89..de28c016 100644 --- a/gen/cmd/BUILD.gn +++ b/gen/cmd/BUILD.gn @@ -13,26 +13,24 @@ import("//build/ohos.gni") -if (host_os != "linux" || host_cpu != "arm64") { - ohos_cargo_crate("cxxbridge") { - crate_type = "bin" - crate_root = "src/main.rs" +ohos_cargo_crate("cxxbridge") { + crate_type = "bin" + crate_root = "src/main.rs" - sources = [ "src/main.rs" ] - edition = "2018" - cargo_pkg_version = "1.0.97" - cargo_pkg_authors = "David Tolnay " - cargo_pkg_name = "cxxbridge-cmd" - cargo_pkg_description = - "C++ code generator for integrating `cxx` crate into a non-Cargo build." - deps = [ - "//third_party/rust/crates/clap:lib", - "//third_party/rust/crates/codespan/codespan-reporting:lib", - "//third_party/rust/crates/proc-macro2:lib", - "//third_party/rust/crates/quote:lib", - "//third_party/rust/crates/syn:lib", - ] - part_name = "rust_cxx" - subsystem_name = "thirdparty" - } + sources = [ "src/main.rs" ] + edition = "2018" + cargo_pkg_version = "1.0.97" + cargo_pkg_authors = "David Tolnay " + cargo_pkg_name = "cxxbridge-cmd" + cargo_pkg_description = + "C++ code generator for integrating `cxx` crate into a non-Cargo build." + deps = [ + "//third_party/rust/crates/clap:lib", + "//third_party/rust/crates/codespan/codespan-reporting:lib", + "//third_party/rust/crates/proc-macro2:lib", + "//third_party/rust/crates/quote:lib", + "//third_party/rust/crates/syn:lib", + ] + part_name = "rust_cxx" + subsystem_name = "thirdparty" } -- Gitee