1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-02 10:33:36 +00:00

Add libvpx build for x86 and x86_64

This commit is contained in:
luvletter2333 2021-12-24 00:17:48 +08:00
parent ef1107f2f5
commit 65f7479c7c
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
4 changed files with 19 additions and 1 deletions

View File

@ -134,6 +134,10 @@ jobs:
run: |
cd TMessagesProj/jni
./patch_boringssl.sh
- name: Native Build (libvpx)
if: matrix.flavor == 'x86' || matrix.flavor == 'x86_64'
run: |
- ./bin/init/libs/libvpx_x86.sh
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |

View File

@ -761,7 +761,7 @@ target_link_libraries(${NATIVE_LIB}
if (${ANDROID_ABI} STREQUAL "x86" OR ${ANDROID_ABI} STREQUAL "x86_64")
target_link_libraries(${NATIVE_LIB}
-Wl,--whole-archive libvpx_yasm -Wl,--no-whole-archive)
libvpx_yasm -Wl,--no-whole-archive)
endif ()
#if (${ANDROID_ABI} STREQUAL "x86" OR ${ANDROID_ABI} STREQUAL "x86_64")

View File

@ -4,3 +4,4 @@ source "bin/init/env.sh"
bin/init/libs/ffmpeg.sh
bin/init/libs/boringssl.sh
bin/init/libs/libvpx_x.sh

13
bin/init/libs/libvpx_x86.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
source "bin/init/env.sh"
cd TMessagesProj/jni || exit 1
git submodule update --init libvpx
cd libvpx
git reset --hard
git clean -fdx
cd ..
./build_libvpx_clang.sh || exit 1