1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-14 18:14:29 +02:00
Files
.github
mdbook-course
mdbook-exerciser
po
src
theme
third_party
cxx
blobstore
include
src
Android.bp
BUILD
Cargo.toml
build.rs
book
LICENSE-APACHE
LICENSE-MIT
README.md
overview.svg
mdbook
rust-by-example
rust-on-exercism
.gitignore
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE
README.md
STYLE.md
TRANSLATIONS.md
aspect-ratio-helper.py
book.toml
dprint.json
rustfmt.toml
comprehensive-rust/third_party/cxx/blobstore/Android.bp
Nicole L ca61ca4f57 Add CXX tutorial ()
Add a number of slides that cover most of CXX's functionality and
demonstrate how it can be used.

Fixes .

---------

Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-11-06 16:34:29 -08:00

33 lines
715 B
Plaintext

cc_library_static {
name: "blobstore_cpp",
srcs: ["src/blobstore.cc"],
generated_headers: [
"cxx-bridge-header",
"blobstore_bridge_header"
],
generated_sources: ["blobstore_bridge_code"],
}
genrule {
name: "blobstore_bridge_header",
tools: ["cxxbridge"],
cmd: "$(location cxxbridge) $(in) --header > $(out)",
srcs: ["src/main.rs"],
out: ["main.rs.h"],
}
genrule {
name: "blobstore_bridge_code",
tools: ["cxxbridge"],
cmd: "$(location cxxbridge) $(in) > $(out)",
srcs: ["src/main.rs"],
out: ["main.rs.cc"],
}
rust_binary {
name: "blobstore",
srcs: ["src/main.rs"],
rustlibs: ["libcxx"],
static_libs: ["blobstore_cpp"],
}