1// This file is generated by cargo2android.py --run --dependencies --add_workspace --host-first-multilib --no-pkg-vers. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "external_rust_cxx_license" 8 // to get the below license kinds: 9 // SPDX-license-identifier-Apache-2.0 10 // SPDX-license-identifier-MIT 11 default_applicable_licenses: ["external_rust_cxx_license"], 12} 13 14rust_binary_host { 15 name: "cxxbridge", 16 crate_name: "cxxbridge", 17 cargo_env_compat: true, 18 srcs: ["src/main.rs"], 19 edition: "2018", 20 rustlibs: [ 21 "libclap", 22 "libcodespan_reporting", 23 "libcxxbridge_cmd", 24 "libproc_macro2", 25 "libquote", 26 "libsyn", 27 ], 28 compile_multilib: "first", 29} 30 31rust_library_host { 32 name: "libcxxbridge_cmd", 33 crate_name: "cxxbridge_cmd", 34 cargo_env_compat: true, 35 srcs: ["src/lib.rs"], 36 edition: "2018", 37 rustlibs: [ 38 "libclap", 39 "libcodespan_reporting", 40 "libproc_macro2", 41 "libquote", 42 "libsyn", 43 ], 44 compile_multilib: "first", 45} 46