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
2015-03-16 22:25:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33e579599cb971d26a113d2df091cac69889bd2e
33e57959
1 parent
806b45e8
refine build for osx
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
24 行增加
和
24 行删除
trunk/auto/depends.sh
trunk/auto/depends.sh
查看文件 @
33e5795
...
...
@@ -256,6 +256,30 @@ function OSX_prepare()
OS_IS_OSX
=
YES
echo
"OSX detected, install tools if needed"
# requires the osx when os
if
[
$OS_IS_OSX
=
YES
]
;
then
if
[
$SRS_OSX
=
NO
]
;
then
echo
"OSX detected, must specifies the --osx"
exit
1
fi
# TODO: FIXME: support following features.
if
[
$SRS_HTTP_API
=
YES
]
;
then
echo
"OSX does not support http-api, use --without-http-api"
exit
1
fi
if
[
$SRS_STAT
=
YES
]
;
then
echo
"OSX does not support stat, use --without-stat"
exit
1
fi
if
[
$SRS_FFMPEG_TOOL
=
YES
]
;
then
echo
"OSX does not support ffmpeg, use --without-ffmpeg"
exit
1
fi
if
[
$SRS_NGINX
=
YES
]
;
then
echo
"OSX does not support nginx, use --without-nginx"
exit
1
fi
fi
brew --help >/dev/null 2>&1;
ret
=
$?
;
if
[[
0 -ne
$ret
]]
;
then
echo
"install brew"
...
...
@@ -343,30 +367,6 @@ function OSX_prepare()
if
[
$SRS_EXPORT_LIBRTMP_PROJECT
=
NO
]
;
then
OSX_prepare;
ret
=
$?
;
if
[[
0 -ne
$ret
]]
;
then
echo
"OSX prepare failed, ret=
$ret
"
;
exit
$ret
;
fi
fi
# requires the osx when os
if
[
$OS_IS_OSX
=
YES
]
;
then
if
[
$SRS_OSX
=
NO
]
;
then
echo
"OSX detected, must specifies the --osx"
exit
1
fi
# TODO: FIXME: support following features.
if
[
$SRS_HTTP_API
=
YES
]
;
then
echo
"OSX does not support http-api, use --without-http-api"
exit
1
fi
if
[
$SRS_STAT
=
YES
]
;
then
echo
"OSX does not support stat, use --without-stat"
exit
1
fi
if
[
$SRS_FFMPEG_TOOL
=
YES
]
;
then
echo
"OSX does not support ffmpeg, use --without-ffmpeg"
exit
1
fi
if
[
$SRS_NGINX
=
YES
]
;
then
echo
"OSX does not support nginx, use --without-nginx"
exit
1
fi
fi
#####################################################################################
# st-1.9
...
...
请
注册
或
登录
后发表评论