File tree 15 files changed +43
-40
lines changed
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
75
75
76
76
```
77
77
#准备 iOS 和 macOS 平台所有库的源码
78
- ./init-all .sh all
78
+ ./init-any .sh all
79
79
#准备 iOS 平台源码所有库的源码
80
- ./init-all .sh ios
80
+ ./init-any .sh ios
81
81
#准备 iOS 平台x86架构下所有库的源码
82
- ./init-all .sh ios all x86_64
82
+ ./init-any .sh ios all x86_64
83
83
#准备 macOS 平台源码所有库的源码
84
- /init-all .sh macos
84
+ /init-any .sh macos
85
85
#准备 ios 平台的某些库的源码
86
- /init-all .sh ios "openssl ffmpeg"
86
+ /init-any .sh ios "openssl ffmpeg"
87
87
#准备 macOS 平台的某些库的源码
88
- /init-all .sh macos "openssl ffmpeg"
88
+ /init-any .sh macos "openssl ffmpeg"
89
89
#准备 iOS 和 macOS 平台的某些库的源码
90
- /init-all .sh all "openssl ffmpeg"
90
+ /init-any .sh all "openssl ffmpeg"
91
91
```
92
92
93
93
高级选项:
@@ -147,7 +147,7 @@ cd macos
147
147
148
148
编译 ios 平台跟 macos 是一样的流程,只需要 cd 到 ios 目录操作即可。
149
149
150
- 其实 ios 和 macos 均调用了 apple 目录下的脚本。
150
+ 实际上 ios 和 macos 均调用了 apple 目录下的脚本。
151
151
152
152
## Use Your Mirror
153
153
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ OPTS=$5
25
25
set -e
26
26
27
27
# 当前脚本所在目录
28
- cd " $( dirname " $0 " ) "
29
- SHELL_DIR= " $PWD "
28
+ THIS_DIR= $( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
29
+ cd " $THIS_DIR "
30
30
31
31
function usage() {
32
32
echo " useage:"
@@ -60,8 +60,8 @@ if [[ -z "$CMD" ]]; then
60
60
exit 1
61
61
fi
62
62
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} "
65
65
export XC_UNI_PROD_DIR=" ${XC_PRODUCT_ROOT} /universal"
66
66
67
67
export XC_PLAT=" $PLAT "
Original file line number Diff line number Diff line change 18
18
set -e
19
19
20
20
# 当前脚本所在目录
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
23
23
24
24
echo " === [$0 ] check env begin==="
25
25
env_assert " XC_CMD"
Original file line number Diff line number Diff line change 17
17
18
18
set -e
19
19
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
22
22
23
23
echo " === [$0 ] check env begin==="
24
24
env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 17
17
18
18
set -e
19
19
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
22
22
23
23
echo " === [$0 ] check env begin==="
24
24
env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 20
20
21
21
set -e
22
22
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
25
25
26
26
echo " === [$0 ] check env begin==="
27
27
env_assert " XC_TAGET_OS"
@@ -36,7 +36,7 @@ echo "XC_OPTS:$XC_OPTS"
36
36
echo " ===check env end==="
37
37
38
38
# ffmpeg build params
39
- source $( pwd ) /../ffconfig/module.sh
39
+ source $THIS_DIR /.. /../ffconfig/module.sh
40
40
FFMPEG_CFG_FLAGS=" $COMMON_FF_CFG_FLAGS "
41
41
42
42
FFMPEG_CFG_FLAGS=" --prefix=$XC_BUILD_PREFIX $FFMPEG_CFG_FLAGS "
Original file line number Diff line number Diff line change 17
17
18
18
set -e
19
19
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
22
22
23
23
echo " === [$0 ] check env begin==="
24
24
env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 21
21
22
22
set -e
23
23
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
26
26
27
27
echo " === [$0 ] check env begin==="
28
28
env_assert " XC_ARCH"
Original file line number Diff line number Diff line change 17
17
18
18
set -e
19
19
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
22
22
23
23
echo " === [$0 ] check env begin==="
24
24
env_assert " XC_ARCH"
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ if test -z $PLAT ;then
24
24
PLAT=' all'
25
25
fi
26
26
27
- cd $( dirname " $0 " )
28
- c_dir= " $PWD "
27
+ THIS_DIR= $( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
28
+ cd " $THIS_DIR "
29
29
30
30
function usage() {
31
31
echo " === useage ===================="
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ ARCH=$3
29
29
30
30
set -e
31
31
32
- cd $( dirname " $0 " )
33
- c_dir= " $PWD "
32
+ THIS_DIR= $( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
33
+ cd " $THIS_DIR "
34
34
35
35
function usage()
36
36
{
@@ -51,11 +51,11 @@ if [[ "x$LIBS" == "x" || "$LIBS" == "all" ]]; then
51
51
fi
52
52
53
53
if [[ " $PLAT " == ' ios' || " $PLAT " == ' macos' || " $PLAT " == ' all' ]]; then
54
- source " $c_dir /version.sh"
54
+ source " $THIS_DIR /version.sh"
55
55
for lib in $LIBS
56
56
do
57
57
echo " ===[init $lib ]===================="
58
- $c_dir /tools/init-repo.sh " $c_dir /init-cfgs/$lib " " $PLAT " " $ARCH "
58
+ $THIS_DIR /tools/init-repo.sh " $THIS_DIR /init-cfgs/$lib " " $PLAT " " $ARCH "
59
59
echo " ===================================="
60
60
done
61
61
else
Original file line number Diff line number Diff line change 18
18
set -e
19
19
20
20
# 当前脚本所在目录
21
- cd " $( dirname " $0 " ) "
21
+ THIS_DIR=$( DIRNAME=$( dirname " $0 " ) ; cd " $DIRNAME " ; pwd)
22
+ cd " $THIS_DIR "
23
+
22
24
../apple/compile-any.sh ios $*
Original file line number Diff line number Diff line change 18
18
set -e
19
19
20
20
# 当前脚本所在目录
21
- cd " $( dirname " $0 " ) "
21
+ THIS_DIR=$( DIRNAME=$( dirname " $0 " ) ; cd " $DIRNAME " ; pwd)
22
+ cd " $THIS_DIR "
22
23
23
24
../apple/compile-any.sh macos $*
Original file line number Diff line number Diff line change 20
20
21
21
source $1
22
22
23
- TOOLS =$( dirname " $0 " )
24
- source ${TOOLS } /env_assert.sh
23
+ THIS_DIR =$( DIRNAME= $( dirname " $0 " ) ; cd " $DIRNAME " ; pwd )
24
+ source ${THIS_DIR } /env_assert.sh
25
25
26
26
echo " ===check env begin==="
27
27
echo " argv:[$* ]"
@@ -86,7 +86,7 @@ function apply_patches() {
86
86
fi
87
87
88
88
local plat=" $1 "
89
- local patch_dir=" ${TOOLS } /../extra/patches/$REPO_DIR "
89
+ local patch_dir=" ${THIS_DIR } /../extra/patches/$REPO_DIR "
90
90
91
91
if [[ -d " ${patch_dir} _${plat} " ]]; then
92
92
patch_dir=" ${patch_dir} _${plat} "
@@ -107,7 +107,7 @@ function apply_patches() {
107
107
function make_arch_repo() {
108
108
local dest_repo=" build/src/$1 /$REPO_DIR -$2 "
109
109
echo " == copy $REPO_DIR → $dest_repo =="
110
- $TOOLS /copy-local-repo.sh $GIT_LOCAL_REPO $dest_repo
110
+ $THIS_DIR /copy-local-repo.sh $GIT_LOCAL_REPO $dest_repo
111
111
cd $dest_repo
112
112
if [[ " $GIT_WITH_SUBMODULE " ]]; then
113
113
git submodule update --init --depth=1
Original file line number Diff line number Diff line change 1
- export IJK_VERSION=0.10.1
1
+ export IJK_VERSION=0.10.3
You can’t perform that action at this time.
0 commit comments