File tree Expand file tree Collapse file tree 15 files changed +43
-40
lines changed
Expand file tree Collapse file tree 15 files changed +43
-40
lines changed Original file line number Diff line number Diff line change @@ -75,19 +75,19 @@ At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libblu
7575
7676```
7777#准备 iOS 和 macOS 平台所有库的源码
78- ./init-all .sh all
78+ ./init-any .sh all
7979#准备 iOS 平台源码所有库的源码
80- ./init-all .sh ios
80+ ./init-any .sh ios
8181#准备 iOS 平台x86架构下所有库的源码
82- ./init-all .sh ios all x86_64
82+ ./init-any .sh ios all x86_64
8383#准备 macOS 平台源码所有库的源码
84- /init-all .sh macos
84+ /init-any .sh macos
8585#准备 ios 平台的某些库的源码
86- /init-all .sh ios "openssl ffmpeg"
86+ /init-any .sh ios "openssl ffmpeg"
8787#准备 macOS 平台的某些库的源码
88- /init-all .sh macos "openssl ffmpeg"
88+ /init-any .sh macos "openssl ffmpeg"
8989#准备 iOS 和 macOS 平台的某些库的源码
90- /init-all .sh all "openssl ffmpeg"
90+ /init-any .sh all "openssl ffmpeg"
9191```
9292
9393高级选项:
@@ -147,7 +147,7 @@ cd macos
147147
148148编译 ios 平台跟 macos 是一样的流程,只需要 cd 到 ios 目录操作即可。
149149
150- 其实 ios 和 macos 均调用了 apple 目录下的脚本。
150+ 实际上 ios 和 macos 均调用了 apple 目录下的脚本。
151151
152152## Use Your Mirror
153153
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ OPTS=$5
2525set -e
2626
2727# 当前脚本所在目录
28- cd " $( dirname " $0 " ) "
29- SHELL_DIR= " $PWD "
28+ THIS_DIR= $( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
29+ cd " $THIS_DIR "
3030
3131function usage() {
3232 echo " useage:"
@@ -60,8 +60,8 @@ if [[ -z "$CMD" ]]; then
6060 exit 1
6161fi
6262
63- export XC_SRC_ROOT=" ${SHELL_DIR } /../build/src/${PLAT} "
64- export XC_PRODUCT_ROOT=" ${SHELL_DIR } /../build/product/${PLAT} "
63+ export XC_SRC_ROOT=" ${THIS_DIR } /../build/src/${PLAT} "
64+ export XC_PRODUCT_ROOT=" ${THIS_DIR } /../build/product/${PLAT} "
6565export XC_UNI_PROD_DIR=" ${XC_PRODUCT_ROOT} /universal"
6666
6767export XC_PLAT=" $PLAT "
Original file line number Diff line number Diff line change 1818set -e
1919
2020# 当前脚本所在目录
21- TOOLS =$( dirname " $0 " )
22- source $TOOLS /../../tools/env_assert.sh
21+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
22+ source $THIS_DIR /../../tools/env_assert.sh
2323
2424echo " === [$0 ] check env begin==="
2525env_assert " XC_CMD"
Original file line number Diff line number Diff line change 1717
1818set -e
1919
20- TOOLS =$( dirname " $0 " )
21- source $TOOLS /../../tools/env_assert.sh
20+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
21+ source $THIS_DIR /../../tools/env_assert.sh
2222
2323echo " === [$0 ] check env begin==="
2424env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 1717
1818set -e
1919
20- TOOLS =$( dirname " $0 " )
21- source $TOOLS /../../tools/env_assert.sh
20+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
21+ source $THIS_DIR /../../tools/env_assert.sh
2222
2323echo " === [$0 ] check env begin==="
2424env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 2020
2121set -e
2222
23- TOOLS =$( dirname " $0 " )
24- source $TOOLS /../../tools/env_assert.sh
23+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
24+ source $THIS_DIR /../../tools/env_assert.sh
2525
2626echo " === [$0 ] check env begin==="
2727env_assert " XC_TAGET_OS"
@@ -36,7 +36,7 @@ echo "XC_OPTS:$XC_OPTS"
3636echo " ===check env end==="
3737
3838# ffmpeg build params
39- source $( pwd ) /../ffconfig/module.sh
39+ source $THIS_DIR /.. /../ffconfig/module.sh
4040FFMPEG_CFG_FLAGS=" $COMMON_FF_CFG_FLAGS "
4141
4242FFMPEG_CFG_FLAGS=" --prefix=$XC_BUILD_PREFIX $FFMPEG_CFG_FLAGS "
Original file line number Diff line number Diff line change 1717
1818set -e
1919
20- TOOLS =$( dirname " $0 " )
21- source $TOOLS /../../tools/env_assert.sh
20+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
21+ source $THIS_DIR /../../tools/env_assert.sh
2222
2323echo " === [$0 ] check env begin==="
2424env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 2121
2222set -e
2323
24- TOOLS =$( dirname " $0 " )
25- source $TOOLS /../../tools/env_assert.sh
24+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
25+ source $THIS_DIR /../../tools/env_assert.sh
2626
2727echo " === [$0 ] check env begin==="
2828env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 1717
1818set -e
1919
20- TOOLS =$( dirname " $0 " )
21- source $TOOLS /../../tools/env_assert.sh
20+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
21+ source $THIS_DIR /../../tools/env_assert.sh
2222
2323echo " === [$0 ] check env begin==="
2424env_assert " XC_ARCH"
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ if test -z $PLAT ;then
2424 PLAT=' all'
2525fi
2626
27- cd $( dirname " $0 " )
28- c_dir= " $PWD "
27+ THIS_DIR= $( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
28+ cd " $THIS_DIR "
2929
3030function usage() {
3131 echo " === useage ===================="
You can’t perform that action at this time.
0 commit comments