Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified packages/canvas-svg/platforms/android/canvassvg-release.aar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions tools/scripts/build-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ export ANDROID_NDK="$NDK"
# Only the per-triple CC_<triple>/CXX_<triple>/AR_<triple> below -- a bare
# CC/CXX also applies to *host* compilation (build scripts, proc macros, and
# host-built C deps like zune-jpeg), and the Android clang cannot link those.
# cc-rs defaults to c++_shared on Android, which no AAR ships
RUSTFLAGS="$RUSTFLAGS" \
env "CC_${TRIPLE_ENV}=$CLANG" "CXX_${TRIPLE_ENV}=$CLANGXX" "AR_${TRIPLE_ENV}=$TOOLS/bin/llvm-ar" \
"CXXSTDLIB_${TRIPLE_ENV}=c++_static" \
"${LINKER_ENV}=$CLANG" \
cargo +"${CANVAS_RUST_TOOLCHAIN:-nightly}" build $EXTRA_ARGS --target $TARGET -p canvas-android

Expand Down
2 changes: 2 additions & 0 deletions tools/scripts/build-svg-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ LINKER_ENV="CARGO_TARGET_$(echo "$TRIPLE_ENV" | tr '[:lower:]' '[:upper:]')_LINK
# above. No bare CC/CXX: those would also apply to host build scripts.
export ANDROID_NDK="$NDK"

# cc-rs defaults to c++_shared on Android, which no AAR ships
RUSTFLAGS="$RUSTFLAGS" \
env "CC_${TRIPLE_ENV}=$CLANG" "CXX_${TRIPLE_ENV}=$CLANGXX" "AR_${TRIPLE_ENV}=$TOOLS/bin/llvm-ar" \
"CXXSTDLIB_${TRIPLE_ENV}=c++_static" \
"${LINKER_ENV}=$CLANG" \
cargo +"${CANVAS_RUST_TOOLCHAIN:-nightly}" build $EXTRA_ARGS --target $TARGET -p canvas-svg-android

Expand Down
Loading