Skip to content

Commit

Permalink
Merge pull request #42 from yisibl/android-armv7
Browse files Browse the repository at this point in the history
feat: support Android armv7
  • Loading branch information
yisibl authored Dec 25, 2021
2 parents a24d258 + 35abf4d commit 44c5346
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ jobs:
export PATH="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
yarn build --target aarch64-linux-android
${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip *.node
- host: ubuntu-latest
architecture: x64
target: armv7-linux-androideabi
build: |
export CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
export CC="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
export CXX="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang++"
export PATH="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
yarn build --target armv7-linux-androideabi
${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip *.node
- host: ubuntu-latest
architecture: x64
target: aarch64-unknown-linux-musl
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ Running "resize width" suite...
| |
| Android arm64 |||| [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-android-arm64.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-android-arm64) |
| |
| Android armv7 |||| [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-android-arm-eabi.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-android-arm-eabi) |
| |

## Test in local

Expand Down
2 changes: 2 additions & 0 deletions npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ npm 目录下包含了不同平台编译后的二进制文件,每个平台发
| |
| Android arm64 |||| [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-android-arm64.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-android-arm64) |
| |
| Android armv7 |||| [![npm version](https://img.shields.io/npm/v/@resvg/resvg-js-android-arm-eabi.svg?sanitize=true)](https://www.npmjs.com/package/@resvg/resvg-js-android-arm-eabi) |
| |
3 changes: 3 additions & 0 deletions npm/android-arm-eabi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@resvg/resvg-js-android-arm-eabi`

This is the **armv7-linux-androideabi** binary for `@resvg/resvg-js`
35 changes: 35 additions & 0 deletions npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "@resvg/resvg-js-android-arm-eabi",
"version": "1.1.0",
"os": [
"android"
],
"cpu": [
"arm"
],
"main": "resvg-js.android-arm-eabi.node",
"files": [
"resvg-js.android-arm-eabi.node"
],
"description": "A high-performance SVG renderer, powered by Rust based resvg and napi-rs",
"keywords": [
"resvg",
"svg",
"node-resvg",
"resvg-js",
"resvg-node",
"rust",
"svg2png",
"svg2img",
"svg to png"
],
"license": "MPL-2.0",
"engines": {
"node": ">= 10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "[email protected]:yisibl/resvg-js.git"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"arm-linux-androideabi",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"
]
Expand Down

0 comments on commit 44c5346

Please sign in to comment.