forked from bilibili/ijkplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use shell scripts instead of git-submodule
- Loading branch information
Showing
6 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# ----- | ||
build/ | ||
ffmpeg-temp/ | ||
android/ffmpeg-armv7a | ||
.DS_Store | ||
|
||
# built application files | ||
|
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
Submodule ffmpeg
added at
c103d5
Submodule ffmpeg-armv7a
deleted from
e6021a
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,33 @@ | ||
#! /bin/sh | ||
|
||
IJK_FFMPEG_COMMIT=ijk-r0.0.5-dev | ||
IJK_FFMPEG_LOCAL_REPO=extra/ffmpeg | ||
|
||
set -e | ||
|
||
|
||
echo "== pull ffmpeg base ==" | ||
if [ ! -d ${IJK_FFMPEG_LOCAL_REPO} ]; then | ||
git clone git://git.videolan.org/ffmpeg.git ${IJK_FFMPEG_LOCAL_REPO} | ||
else | ||
cd ${IJK_FFMPEG_LOCAL_REPO} | ||
git pull | ||
cd - | ||
fi | ||
|
||
|
||
echo "== pull ffmpeg fork ==" | ||
if [ ! -d "android/ffmpeg-armv7a" ]; then | ||
git clone --reference "${IJK_FFMPEG_LOCAL_REPO}" https://github.com/bbcallen/FFmpeg.git android/ffmpeg-armv7a | ||
cd android/ffmpeg-armv7a | ||
|
||
# do not depend on the reference repo | ||
git repack -a | ||
else | ||
echo "== pull ffmpeg base ==" | ||
cd android/ffmpeg-armv7a | ||
git fetch --all | ||
fi | ||
|
||
git checkout ${IJK_FFMPEG_COMMIT} | ||
cd - |