Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-03-04 13:03:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
02326cd8449c48aef0591980948deaa81428bada
02326cd8
1 parent
52b6ab3f
support build with jobs
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
11 行增加
和
6 行删除
trunk/auto/build_ffmpeg.sh
trunk/auto/depends.sh
trunk/configure
trunk/auto/build_ffmpeg.sh
查看文件 @
02326cd
...
...
@@ -28,7 +28,7 @@ else
cd
$ff_current_dir
&&
rm -rf yasm-1.2.0
&&
unzip -q
${
ff_src_dir
}
/yasm-1.2.0.zip
&&
cd
yasm-1.2.0
&&
./configure --prefix
=
${
ff_release_dir
}
&&
make
${
SRS_JOBS
}
&&
make install
make
&&
make install
ret
=
$?
;
if
[[
0 -ne
${
ret
}
]]
;
then
echo
"build yasm-1.2.0 failed"
;
exit
1;
fi
fi
# add yasm to path, for x264 to use yasm directly.
...
...
@@ -43,7 +43,7 @@ else
cd
$ff_current_dir
&&
rm -rf libaacplus-2.0.2
&&
unzip -q
${
ff_src_dir
}
/libaacplus-2.0.2.zip
&&
cd
libaacplus-2.0.2
&&
cp ../
${
ff_src_dir
}
/libaacplus-patch-26410-800.zip src/26410-800.zip
&&
bash autogen.sh
&&
./configure --prefix
=
${
ff_release_dir
}
--enable-static
&&
make
${
SRS_JOBS
}
&&
make install
bash autogen.sh
&&
./configure --prefix
=
${
ff_release_dir
}
--enable-static
&&
make
&&
make install
ret
=
$?
;
if
[[
0 -ne
${
ret
}
]]
;
then
echo
"build libaacplus-2.0.2 failed"
;
exit
1;
fi
fi
...
...
trunk/auto/depends.sh
100644 → 100755
查看文件 @
02326cd
#!/bin/bash
# variables:
# SRS_JOBS: the build jobs, parent script must set it.
#####################################################################################
#####################################################################################
# prepare the depends tools and libraries
...
...
@@ -183,7 +186,7 @@ else
rm -rf
${
SRS_OBJS
}
/st-1.9
&&
cd
${
SRS_OBJS
}
&&
unzip -q ../3rdparty/st-1.9.zip
&&
cd
st-1.9
&&
patch -p1 < ../../3rdparty/1.st.arm.Makefile.patch
&&
make linux-debug
${
SRS_JOBS
}
&&
make linux-debug
&&
cd
..
&&
rm -f st
&&
ln -sf st-1.9/obj st
)
fi
...
...
@@ -205,7 +208,7 @@ if [ $SRS_HTTP = YES ]; then
cd
http-parser-2.1
&&
sed -i
"s/CPPFLAGS_FAST +=.*
$/
CPPFLAGS_FAST =
\$\(
CPPFLAGS_DEBUG
\)
/g"
Makefile
&&
sed -i
"s/CFLAGS_FAST =.*
$/
CFLAGS_FAST =
\$\(
CFLAGS_DEBUG
\)
/g"
Makefile
&&
make package
${
SRS_JOBS
}
&&
make package
&&
cd
..
&&
rm -f hp
&&
ln -sf http-parser-2.1 hp
)
fi
...
...
@@ -352,7 +355,7 @@ if [ $SRS_SSL = YES ]; then
rm -rf
${
SRS_OBJS
}
/openssl-1.0.1f
&&
cd
${
SRS_OBJS
}
&&
unzip -q ../3rdparty/openssl-1.0.1f.zip
&&
cd
openssl-1.0.1f
&&
./config --prefix
=
`
pwd
`
/_release -no-shared
&&
make
${
SRS_JOBS
}
&&
make install
&&
make
&&
make install
&&
cd
..
&&
ln -sf openssl-1.0.1f/_release openssl
)
fi
...
...
trunk/configure
查看文件 @
02326cd
...
...
@@ -15,7 +15,9 @@ YELLOW="\\e[33m"
BLACK
=
"
\\
e[0m"
#####################################################################################
# parse user options, set the variables like SRS_SSL/SRS_HLS/SRS_FFMPEG/SRS_HTTP
# parse user options, set the variables like:
# srs features: SRS_SSL/SRS_HLS/SRS_FFMPEG/SRS_HTTP/SRS_RESEARCH/SRS_UTEST
# build options: SRS_JOBS
#####################################################################################
# parse options, exit with error when parse options invalid.
. auto/options.sh
...
...
请
注册
或
登录
后发表评论