Loading system/gd/BUILD.gn +0 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ static_library("libbluetooth_gd") { include_dirs = [ "." ] configs += [ ":gd_defaults" ] deps = [ "//bt/system/gd/rust/common:libbt_keystore_cc", "//bt/system/gd/rust/topshim:libbluetooth_topshim", "//bt/system/gd/rust/shim:libbluetooth_rust_interop", "//bt/system/gd:BluetoothGeneratedPackets_h", Loading system/gd/rust/common/BUILD.gn +17 −20 Original line number Diff line number Diff line Loading @@ -15,32 +15,29 @@ import("//common-mk/cxxbridge.gni") static_library("libbt_keystore_cc") { complete_static_lib = true sources = [ "keystore/fake_bt_keystore.cc" ] deps = [ ":libbt_common_bridge_code" ] rust_library("libbt_common") { crate_name = "bt_common" configs += ["//bt/system/gd:gd_defaults"] } sources = [ "src/lib.rs" ] config("rust_common_config") { include_dirs = [ "//bt/system/gd/rust/common" ] configs = [ "//bt/system/gd/rust/shim:rust_libs", "//bt/system/gd:rust_defaults", ] } cxxbridge_header("libbt_common_bridge_header") { sources = [ "src/bridge.rs" ] all_dependent_configs = [ ":rust_common_config" ] deps = [ ":cxxlibheader" ] } cxxbridge_cc("libbt_common_sys_prop_bridge_code") { sources = [ "src/sys_prop.rs" ] cxxbridge_cc("libbt_common_bridge_code") { sources = [ "src/bridge.rs" ] deps = [ ":libbt_common_bridge_header" ] configs = [ "//bt/system/gd:gd_defaults" ] } cxxbridge_libheader("cxxlibheader") { deps = [] static_library("libbt_common_sys_prop_cxx") { sources = [ "src/ffi/sys_props.cc" ] include_dirs = [ "src/ffi" ] deps = [ ":libbt_common_sys_prop_bridge_code" ] configs += [ "//bt/system/gd:gd_defaults" ] } system/gd/rust/common/Cargo.toml +0 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ edition = "2018" [dependencies] cxx = "*" env_logger = "*" futures = "0.3.13" grpcio = "*" lazy_static = "*" log = "*" Loading system/gd/rust/common/build.rsdeleted 100644 → 0 +0 −12 Original line number Diff line number Diff line fn main() { let target_dir = std::env::var_os("CARGO_TARGET_DIR").unwrap(); // Link the keystore static lib and make sure to use -lc++ println!("cargo:rustc-link-lib=static=bt_keystore_cc"); println!("cargo:rustc-link-search=native={}", target_dir.clone().into_string().unwrap()); println!("cargo:rustc-link-lib=c++"); // Re-run if static libs or this file changed. println!("cargo:rerun-if-changed={}", target_dir.into_string().unwrap()); println!("cargo:rerun-if-changed=build.rs"); } Loading
system/gd/BUILD.gn +0 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,6 @@ static_library("libbluetooth_gd") { include_dirs = [ "." ] configs += [ ":gd_defaults" ] deps = [ "//bt/system/gd/rust/common:libbt_keystore_cc", "//bt/system/gd/rust/topshim:libbluetooth_topshim", "//bt/system/gd/rust/shim:libbluetooth_rust_interop", "//bt/system/gd:BluetoothGeneratedPackets_h", Loading
system/gd/rust/common/BUILD.gn +17 −20 Original line number Diff line number Diff line Loading @@ -15,32 +15,29 @@ import("//common-mk/cxxbridge.gni") static_library("libbt_keystore_cc") { complete_static_lib = true sources = [ "keystore/fake_bt_keystore.cc" ] deps = [ ":libbt_common_bridge_code" ] rust_library("libbt_common") { crate_name = "bt_common" configs += ["//bt/system/gd:gd_defaults"] } sources = [ "src/lib.rs" ] config("rust_common_config") { include_dirs = [ "//bt/system/gd/rust/common" ] configs = [ "//bt/system/gd/rust/shim:rust_libs", "//bt/system/gd:rust_defaults", ] } cxxbridge_header("libbt_common_bridge_header") { sources = [ "src/bridge.rs" ] all_dependent_configs = [ ":rust_common_config" ] deps = [ ":cxxlibheader" ] } cxxbridge_cc("libbt_common_sys_prop_bridge_code") { sources = [ "src/sys_prop.rs" ] cxxbridge_cc("libbt_common_bridge_code") { sources = [ "src/bridge.rs" ] deps = [ ":libbt_common_bridge_header" ] configs = [ "//bt/system/gd:gd_defaults" ] } cxxbridge_libheader("cxxlibheader") { deps = [] static_library("libbt_common_sys_prop_cxx") { sources = [ "src/ffi/sys_props.cc" ] include_dirs = [ "src/ffi" ] deps = [ ":libbt_common_sys_prop_bridge_code" ] configs += [ "//bt/system/gd:gd_defaults" ] }
system/gd/rust/common/Cargo.toml +0 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ edition = "2018" [dependencies] cxx = "*" env_logger = "*" futures = "0.3.13" grpcio = "*" lazy_static = "*" log = "*" Loading
system/gd/rust/common/build.rsdeleted 100644 → 0 +0 −12 Original line number Diff line number Diff line fn main() { let target_dir = std::env::var_os("CARGO_TARGET_DIR").unwrap(); // Link the keystore static lib and make sure to use -lc++ println!("cargo:rustc-link-lib=static=bt_keystore_cc"); println!("cargo:rustc-link-search=native={}", target_dir.clone().into_string().unwrap()); println!("cargo:rustc-link-lib=c++"); // Re-run if static libs or this file changed. println!("cargo:rerun-if-changed={}", target_dir.into_string().unwrap()); println!("cargo:rerun-if-changed=build.rs"); }