46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
// This file is generated by cargo2android.py --run --dependencies --add_workspace --host-first-multilib --no-pkg-vers.
|
|
// Do not modify this file as changes will be overridden on upgrade.
|
|
|
|
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "external_rust_cxx_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
// SPDX-license-identifier-MIT
|
|
default_applicable_licenses: ["external_rust_cxx_license"],
|
|
}
|
|
|
|
rust_binary_host {
|
|
name: "cxxbridge",
|
|
crate_name: "cxxbridge",
|
|
cargo_env_compat: true,
|
|
srcs: ["src/main.rs"],
|
|
edition: "2018",
|
|
rustlibs: [
|
|
"libclap",
|
|
"libcodespan_reporting",
|
|
"libcxxbridge_cmd",
|
|
"libproc_macro2",
|
|
"libquote",
|
|
"libsyn",
|
|
],
|
|
compile_multilib: "first",
|
|
}
|
|
|
|
rust_library_host {
|
|
name: "libcxxbridge_cmd",
|
|
crate_name: "cxxbridge_cmd",
|
|
cargo_env_compat: true,
|
|
srcs: ["src/lib.rs"],
|
|
edition: "2018",
|
|
rustlibs: [
|
|
"libclap",
|
|
"libcodespan_reporting",
|
|
"libproc_macro2",
|
|
"libquote",
|
|
"libsyn",
|
|
],
|
|
compile_multilib: "first",
|
|
}
|