mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-23 10:50:18 +02:00
``` $ adb shell /data/local/tmp/hello_rust_with_dep CANNOT LINK EXECUTABLE "/data/local/tmp/hello_rust_with_dep": library "libtextwrap.dylib.so" not found: needed by main executable ```
39 lines
923 B
Plaintext
39 lines
923 B
Plaintext
// ANCHOR: libbirthdayservice
|
|
rust_library {
|
|
name: "libbirthdayservice",
|
|
srcs: ["src/lib.rs"],
|
|
crate_name: "birthdayservice",
|
|
rustlibs: [
|
|
"com.example.birthdayservice-rust",
|
|
"libbinder_rs",
|
|
],
|
|
}
|
|
// ANCHOR_END: libbirthdayservice
|
|
|
|
// ANCHOR: birthday_server
|
|
rust_binary {
|
|
name: "birthday_server",
|
|
crate_name: "birthday_server",
|
|
srcs: ["src/server.rs"],
|
|
rustlibs: [
|
|
"com.example.birthdayservice-rust",
|
|
"libbinder_rs",
|
|
"libbirthdayservice",
|
|
],
|
|
prefer_rlib: true, // To avoid dynamic link error.
|
|
}
|
|
// ANCHOR_END: birthday_server
|
|
|
|
// ANCHOR: birthday_client
|
|
rust_binary {
|
|
name: "birthday_client",
|
|
crate_name: "birthday_client",
|
|
srcs: ["src/client.rs"],
|
|
rustlibs: [
|
|
"com.example.birthdayservice-rust",
|
|
"libbinder_rs",
|
|
],
|
|
prefer_rlib: true, // To avoid dynamic link error.
|
|
}
|
|
// ANCHOR_END: birthday_client
|