Skip to content

Commit

Permalink
Add support for building the x86_64 arch on android platform. (#1962)
Browse files Browse the repository at this point in the history
* Add support for building the x86_64 arch on android platform.

* Fix the android demo on the build workflow.

* Add the missing x86_64 arch of libffavc.so
  • Loading branch information
domchen authored Dec 6, 2023
1 parent 70a919d commit 02cbd4d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
path: ios

android:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v3
Expand All @@ -105,6 +105,8 @@ jobs:
npm install depsync -g
depsync
- uses: seanmiddleditch/gha-setup-ninja@master

- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
Expand All @@ -120,7 +122,7 @@ jobs:

- name: Build Android
run: |
New-Item -ItemType Directory -Force -Path third_party/tgfx/out/cache
mkdir -p third_party/tgfx/out/cache
cd android
./gradlew assembleRelease -Parm64-only --no-daemon
Expand Down
4 changes: 2 additions & 2 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"common": [
{
"url": "${PAG_GROUP}/vendor_tools.git",
"commit": "b5be62533c1c65f83c1b439713eb954ef3f6e2e4",
"commit": "628ca1bfc801ec22714faeb0c7b9ceada4efe121",
"dir": "third_party/vendor_tools"
},
{
"url": "${PAG_GROUP}/tgfx.git",
"commit": "1a608730859e8943dd50d780191b8ae208f24e4f",
"commit": "db29a2b93408f6ce3acee469f38cb5651bcee274",
"dir": "third_party/tgfx"
},
{
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ versions, you can download the precompiled libraries from [here](https://github.
- Ninja 1.9.0+
- CMake 3.13.0+
- QT 5.13.0+
- NDK 19+ (**19.2.5345600 recommended**)
- NDK 19.2+ (**19.2.5345600 recommended**)
- Emscripten 3.1.20+ (**3.1.20 recommended**)

### Dependency Management
Expand Down
2 changes: 1 addition & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Web 端更多接入方式请参考:[Web端接入指南](https://pag.art/docs/s
- Ninja 1.9.0+
- CMake 3.13.0+
- QT 5.13.0+
- NDK 19+ (**推荐 19.2.5345600 版本**)
- NDK 19.2+ (**推荐 19.2.5345600 版本**)
- Emscripten 3.1.20+ (**推荐 3.1.20 版本**)

### 依赖管理
Expand Down
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ android {
} else {
abiFilters.add("armeabi-v7a")
abiFilters.add("arm64-v8a")
abiFilters.add("x86_64")
}
}
}
Expand Down
1 change: 1 addition & 0 deletions android/libpag/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
} else {
abiFilters.add("armeabi-v7a")
abiFilters.add("arm64-v8a")
abiFilters.add("x86_64")
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions android/libpag/libs/x86_64/libffavc.so
Git LFS file not shown

1 comment on commit 02cbd4d

@yuzhibojie
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问对应版本的tag是多少呢

Please # to comment.