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"], } genrule { name: "cxx-demo-bridge-header", tools: ["cxxbridge"], cmd: "$(location cxxbridge) $(in) --header > $(out)", srcs: ["src/main.rs"], out: ["demo/src/main.rs.h"], } genrule { name: "cxx-demo-bridge-code", tools: ["cxxbridge"], cmd: "$(location cxxbridge) $(in) >> $(out)", srcs: ["src/main.rs"], out: ["demo/generated.cc"], } rust_binary { name: "cxx-demo-rs", srcs: ["src/main.rs"], rlibs: ["libcxx"], static_libs: ["libcxx-demo-blobstore"], }