Skip to content

Commit 441a7d0

Browse files
Copy header files in addition to libraries and executables.
1 parent 564666e commit 441a7d0

5 files changed

+26
-7
lines changed

_build_ffmpeg.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ function build_ffmpeg {
4949
make >> ${build_log} 2>&1 || die "Couldn't build ffmpeg!"
5050
make install >> ${build_log} 2>&1 || die "Couldn't install ffmpeg!"
5151

52-
# copy the versioned libraries and executables
53-
# lib*.so.+([0-9])
54-
cp ${src_root}/ffmpeg/android/arm/lib/lib*-+([0-9]).so ${dist_root}/.
55-
cp ${src_root}/ffmpeg/android/arm/bin/ff* ${dist_root}/.
52+
# copy the versioned libraries
53+
cp ${prefix}/lib/lib*-+([0-9]).so ${dist_lib_root}/.
54+
# copy the executables
55+
cp ${prefix}/bin/ff* ${dist_bin_root}/.
56+
# copy the headers
57+
cp -r ${prefix}/include/* ${dist_include_root}/.
5658

5759
cd ${top_root}
5860
}

_build_librtmp.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function build_librtmp {
2626
die "Couldn't build librtmp for android!"
2727

2828
# copy the versioned libraries
29-
cp ${src_root}/rtmpdump/librtmp/android/arm/lib/lib*-+([0-9]).so ${dist_root}/.
29+
cp ${prefix}/lib/lib*-+([0-9]).so ${dist_lib_root}/.
30+
# copy the headers
31+
cp -r ${prefix}/include/* ${dist_include_root}/.
3032

3133
cd ${top_root}
3234
}

_build_openssl.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ function build_openssl {
77
cd ${src_root}/openssl-android
88
${NDK}/ndk-build >> ${build_log} 2>&1 || die "Couldn't build openssl-android!"
99

10-
# copy the versioned libraries and executables
11-
cp ${src_root}/openssl-android/libs/armeabi/* ${dist_root}/.
10+
# copy the versioned libraries
11+
cp ${src_root}/openssl-android/libs/armeabi/lib*.so ${dist_lib_root}/.
12+
# copy the executables
13+
cp ${src_root}/openssl-android/libs/armeabi/openssl ${dist_bin_root}/.
14+
cp ${src_root}/openssl-android/libs/armeabi/ssltest ${dist_bin_root}/.
15+
# copy the headers
16+
cp -r ${src_root}/openssl-android/include/* ${dist_include_root}/.
1217

1318
cd ${top_root}
1419
}

build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function initialize {
4141
build_root=${top_root}/build
4242
patch_root=${top_root}/patches
4343
dist_root=${top_root}/build/dist
44+
dist_bin_root=${dist_root}/bin
45+
dist_include_root=${dist_root}/include
46+
dist_lib_root=${dist_root}/lib
4447
build_log=${top_root}/build/build.log
4548
config_file=${top_root}/.build-config.sh
4649

@@ -49,6 +52,9 @@ function initialize {
4952
test -d ${src_root} || mkdir -p ${src_root}
5053
test -d ${build_root} || mkdir -p ${build_root}
5154
test -d ${dist_root} || mkdir -p ${dist_root}
55+
test -d ${dist_bin_root} || mkdir -p ${dist_bin_root}
56+
test -d ${dist_include_root} || mkdir -p ${dist_include_root}
57+
test -d ${dist_lib_root} || mkdir -p ${dist_lib_root}
5258
touch ${build_log}
5359

5460
rm -f ${build_log}

test-streams.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rtmp://www.planeta-online.tv:1936/live/channel_4
2+
rtmp://stream.lax.cine.io/20C45E/cines/cine20?prelude49&adbe-live-event=cine20
3+
4+
ffmpeg -i rtmp://www.planeta-online.tv:1936/live/channel_4 -acodec copy -vcodec copy -f flv rtmp://stream.lax.cine.io/20C45E/cines/cine20?prelude49\&adbe-live-event=cine20

0 commit comments

Comments
 (0)