forked from jarnedemeulemeester/libmpv-android
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
293d1a6
commit b12405f
Showing
36 changed files
with
1,277 additions
and
283 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# -------------------------------------------------- | ||
|
||
if [ ! -f "deps" ]; then | ||
sudo rm -r deps | ||
fi | ||
if [ ! -f "prefix" ]; then | ||
sudo rm -r prefix | ||
fi | ||
|
||
./download.sh | ||
./patch.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
if [ ! -f "scripts/ffmpeg" ]; then | ||
rm scripts/ffmpeg.sh | ||
fi | ||
cp flavors/default.sh scripts/ffmpeg.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
./build.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
cd deps/media-kit-android-helper | ||
|
||
sudo chmod +x gradlew | ||
./gradlew assembleRelease | ||
|
||
unzip -o app/build/outputs/apk/release/app-release.apk -d app/build/outputs/apk/release | ||
|
||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/arm64-v8a/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/arm64-v8a" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/armeabi-v7a/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/armeabi-v7a" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/x86/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/x86" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/x86_64/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/x86_64" | ||
|
||
cd ../.. | ||
|
||
zip -r "default-arm64-v8a.jar" lib/arm64-v8a | ||
zip -r "default-armeabi-v7a.jar" lib/armeabi-v7a | ||
zip -r "default-x86.jar" lib/x86 | ||
zip -r "default-x86_64.jar" lib/x86_64 | ||
|
||
mkdir -p ../../../../../../../../../../output | ||
|
||
cp *.jar ../../../../../../../../../../output | ||
|
||
md5sum *.jar | ||
|
||
cd ../../../../../../../../.. | ||
|
||
# -------------------------------------------------- | ||
|
||
zip -r debug-symbols-default.zip prefix/*/lib | ||
cp debug-symbols-default.zip ../output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# -------------------------------------------------- | ||
set -euxo pipefail | ||
|
||
export ENCODERS_GPL=1 | ||
|
||
if [ -d deps ]; then | ||
sudo rm -r deps | ||
fi | ||
if [ -d prefix ]; then | ||
sudo rm -r prefix | ||
fi | ||
|
||
./download.sh | ||
./patch-encoders-gpl.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
rm scripts/ffmpeg.sh | ||
cp flavors/encoders-gpl.sh scripts/ffmpeg.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
./build.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
cd deps/media-kit-android-helper | ||
|
||
sudo chmod +x gradlew | ||
./gradlew assembleRelease | ||
|
||
unzip -o app/build/outputs/apk/release/app-release.apk -d app/build/outputs/apk/release | ||
|
||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/arm64-v8a/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/arm64-v8a" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/armeabi-v7a/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/armeabi-v7a" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/x86/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/x86" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/x86_64/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/x86_64" | ||
|
||
cd ../.. | ||
|
||
zip -r "encoders-gpl-arm64-v8a.jar" lib/arm64-v8a | ||
zip -r "encoders-gpl-armeabi-v7a.jar" lib/armeabi-v7a | ||
zip -r "encoders-gpl-x86.jar" lib/x86 | ||
zip -r "encoders-gpl-x86_64.jar" lib/x86_64 | ||
|
||
mkdir -p ../../../../../../../../../../output | ||
|
||
cp *.jar ../../../../../../../../../../output | ||
|
||
md5sum *.jar | ||
|
||
cd ../../../../../../../../.. | ||
|
||
# -------------------------------------------------- | ||
|
||
zip -r debug-symbols-encoders-gpl.zip prefix/*/lib | ||
cp debug-symbols-encoders-gpl.zip ../output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# -------------------------------------------------- | ||
|
||
if [ ! -f "deps" ]; then | ||
sudo rm -r deps | ||
fi | ||
if [ ! -f "prefix" ]; then | ||
sudo rm -r prefix | ||
fi | ||
|
||
./download.sh | ||
./patch.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
if [ ! -f "scripts/ffmpeg" ]; then | ||
rm scripts/ffmpeg.sh | ||
fi | ||
cp flavors/full.sh scripts/ffmpeg.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
./build.sh | ||
|
||
# -------------------------------------------------- | ||
|
||
cd deps/media-kit-android-helper | ||
|
||
sudo chmod +x gradlew | ||
./gradlew assembleRelease | ||
|
||
unzip -o app/build/outputs/apk/release/app-release.apk -d app/build/outputs/apk/release | ||
|
||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/arm64-v8a/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/arm64-v8a" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/armeabi-v7a/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/armeabi-v7a" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/x86/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/x86" | ||
ln -sf "$(pwd)/app/build/outputs/apk/release/lib/x86_64/libmediakitandroidhelper.so" "../../../libmpv/src/main/jniLibs/x86_64" | ||
|
||
cd ../.. | ||
|
||
zip -r "full-arm64-v8a.jar" lib/arm64-v8a | ||
zip -r "full-armeabi-v7a.jar" lib/armeabi-v7a | ||
zip -r "full-x86.jar" lib/x86 | ||
zip -r "full-x86_64.jar" lib/x86_64 | ||
|
||
mkdir -p ../../../../../../../../../../output | ||
|
||
cp *.jar ../../../../../../../../../../output | ||
|
||
md5sum *.jar | ||
|
||
cd ../../../../../../../../.. | ||
|
||
# -------------------------------------------------- | ||
|
||
zip -r debug-symbols-full.zip prefix/*/lib | ||
cp debug-symbols-full.zip ../output |
Oops, something went wrong.