mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
Build the store engines with cargo-ndk, binaries out of tree
Gradle task buildRustStores runs cargo ndk for arm64-v8a (API 26) into app/build/rustJniLibs, one more jniLibs source, before preBuild; -PskipRust=true leaves the library out for a checkout without a Rust toolchain. cargo-ndk exports the NDK clang/llvm-ar for ring (rustls), the step Bannerlator's CI does by hand. CI adds the Android target and cargo-ndk, caches the cargo registry, cargo-ndk and the crate's target tree keyed on rustc + Cargo.lock, and after the build checks the exports in the apk's libdroiddeckstores.so and that the lockfile did not move (uploading it when it did). tools/build_local.sh gets the same step, DROIDDECK_SKIP_RUST=1 to opt out.
This commit is contained in:
1 parent
401a650b5b
commit
05097b0eea
4 files changed
+124
-1
No files matched your search
@@ -15,6 +15,9 @@ app/src/main/jniLibs/arm64-v8a/libproot.so
|
||||
app/src/main/jniLibs/arm64-v8a/.proot-inputs
|
||||
app/src/main/jniLibs/arm64-v8a/libproot-loader.so
|
||||
app/src/main/jniLibs/arm64-v8a/libdirectaudiorelay.so
|
||||
# The store download engines (app/src/main/rust/stores) are cross-compiled by Gradle into
|
||||
# app/build/rustJniLibs; cargo's own build tree stays next to the crate. Neither is source.
|
||||
app/src/main/rust/stores/target/
|
||||
app/src/main/assets/droiddeck-esync/
|
||||
|
||||
# Kotlin compiler session files (build-tool state, never source).
|
||||
|
||||
Reference in new issue
Block a user