mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Remove link-cplusplus dependency from non-Cargo builds
This commit is contained in:
parent
d150c13e8a
commit
585a9fe8d4
1
BUCK
1
BUCK
@ -6,7 +6,6 @@ rust_library(
|
||||
deps = [
|
||||
":core",
|
||||
":macro",
|
||||
"//third-party:link-cplusplus",
|
||||
],
|
||||
)
|
||||
|
||||
|
5
BUILD
5
BUILD
@ -7,10 +7,7 @@ rust_library(
|
||||
":cxxbridge-macro",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":core-lib",
|
||||
"//third-party:link-cplusplus",
|
||||
],
|
||||
deps = [":core-lib"],
|
||||
)
|
||||
|
||||
rust_binary(
|
||||
|
1
build.rs
1
build.rs
@ -7,4 +7,5 @@ fn main() {
|
||||
.compile("cxxbridge03");
|
||||
println!("cargo:rerun-if-changed=src/cxx.cc");
|
||||
println!("cargo:rerun-if-changed=include/cxx.h");
|
||||
println!("cargo:rustc-cfg=built_with_cargo");
|
||||
}
|
||||
|
@ -368,6 +368,7 @@
|
||||
clippy::useless_let_if_seq
|
||||
)]
|
||||
|
||||
#[cfg(built_with_cargo)]
|
||||
extern crate link_cplusplus;
|
||||
|
||||
#[macro_use]
|
||||
|
6
third-party/BUCK
vendored
6
third-party/BUCK
vendored
@ -38,12 +38,6 @@ rust_library(
|
||||
srcs = glob(["vendor/lazy_static-1.4.0/src/**"]),
|
||||
)
|
||||
|
||||
rust_library(
|
||||
name = "link-cplusplus",
|
||||
srcs = glob(["vendor/link-cplusplus-1.0.2/src/**"]),
|
||||
visibility = ["PUBLIC"],
|
||||
)
|
||||
|
||||
rust_library(
|
||||
name = "proc-macro2",
|
||||
srcs = glob(["vendor/proc-macro2-1.0.19/src/**"]),
|
||||
|
6
third-party/BUILD
vendored
6
third-party/BUILD
vendored
@ -43,12 +43,6 @@ rust_library(
|
||||
srcs = glob(["vendor/lazy_static-1.4.0/src/**"]),
|
||||
)
|
||||
|
||||
rust_library(
|
||||
name = "link-cplusplus",
|
||||
srcs = glob(["vendor/link-cplusplus-1.0.2/src/**"]),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
rust_library(
|
||||
name = "proc-macro2",
|
||||
srcs = glob(["vendor/proc-macro2-1.0.19/src/**"]),
|
||||
|
Loading…
Reference in New Issue
Block a user