File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ function do_compile() {
6666 ./$LIB_NAME .sh
6767}
6868
69+ function resolve_dep() {
70+ echo " [*] check depends bins: ${LIB_DEPENDS_BIN} "
71+ for b in ${LIB_DEPENDS_BIN} ; do
72+ install_depends " $b "
73+ done
74+ echo " ===================="
75+ }
76+
6977function do_clean() {
7078
7179 if [[ -d $MR_BUILD_SOURCE ]]; then
@@ -100,6 +108,7 @@ function main() {
100108 do_lipo_all " $MR_ACTIVE_ARCHS "
101109 ;;
102110 ' build' )
111+ resolve_dep
103112 for arch in $MR_ACTIVE_ARCHS ; do
104113 export _MR_ARCH=$arch
105114 source $MR_SHELL_TOOLS_DIR /export-android-build-env.sh
Original file line number Diff line number Diff line change 1717
1818# https://github.com/Javernaut/ffmpeg-android-maker
1919
20+ function install_depends() {
21+ local name=" $1 "
22+ local r=$( brew list | grep " $name " )
23+ if [[ -z $r ]]; then
24+ echo " will use brew install ${name} ."
25+ brew install " $name "
26+ fi
27+ echo " [✅] ${name} : $( eval $name --version) "
28+ }
29+
2030case " $OSTYPE " in
21- darwin* ) HOST_TAG=" darwin-x86_64" ;;
31+ darwin* ) HOST_TAG=" darwin-x86_64" ; export -f install_depends ;;
2232 linux* ) HOST_TAG=" linux-x86_64" ;;
2333 msys)
2434 case " $( uname -m) " in
You can’t perform that action at this time.
0 commit comments