You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
890 B
33 lines
890 B
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"],
|
|
}
|