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-17 11:52:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
618579e484f2a915f63c421b6d4e4187846a0412
618579e4
1 parent
a29bd05c
refine srs build for arm, support librtmp sample
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
24 行增加
和
28 行删除
trunk/configure
trunk/configure
查看文件 @
618579e
...
...
@@ -145,16 +145,30 @@ END
# makefile
echo
"generate Makefile"
cat
<< END > ${SRS_MAKEFILE}
.PHONY: default help clean server bandwidth librtmp librtmp-sample utest _prepare_dir
.PHONY: default
_default
help clean server bandwidth librtmp librtmp-sample utest _prepare_dir
# linux shell color support.
RED="\\${RED}"
GREEN="\\${GREEN}"
YELLOW="\\${YELLOW}"
BLACK="\\${BLACK}"
END
# arm, ubuntu12, use arm tool chain.
if
[
$SRS_ARM_UBUNTU12
=
YES
]
;
then
cat
<< END >> ${SRS_MAKEFILE}
default:
\$(MAKE) GCC=${SrsArmGCC} CXX=${SrsArmCXX} AR=${SrsArmAR} LINK=${SrsArmCXX} _default
END
# x86/x64, use gnu-gcc/g++ tool chain.
else
cat
<< END >> ${SRS_MAKEFILE}
default:
\$(MAKE) _default
default: bandwidth librtmp-sample utest
@bash ${SRS_OBJS}/${SRS_BUILD_SUMMARY}
END
fi
# the real entry for all platform.
cat
<< END >> ${SRS_MAKEFILE}
_default: bandwidth librtmp-sample utest
@bash objs/_srs_build_summary.sh
help:
@echo "Usage: make <help>|<clean>|<server>|<bandwidth>|<librtmp>|<librtmp-sample>|<utest>"
...
...
@@ -207,13 +221,7 @@ librtmp: server
END
fi
SrsLibrtmpSampleCompile
=
NO
if
[
$SRS_ARM_UBUNTU12
=
NO
]
;
then
if
[
$SRS_LIBRTMP
=
YES
]
;
then
SrsLibrtmpSampleCompile
=
YES
fi
fi
if
[
$SrsLibrtmpSampleCompile
=
YES
]
;
then
if
[
$SRS_LIBRTMP
=
YES
]
;
then
cat
<< END >> ${SRS_MAKEFILE}
librtmp-sample: librtmp
...
...
@@ -270,23 +278,11 @@ SrsGperf=""; SrsGperfLink=""; if [ $SRS_GPERF = YES ]; then SrsGperfLink=" -lpth
# the cxx flag generated.
CXXFLAGS
=
"
${
CppStd
}${
WarnLevel
}${
GDBDebug
}${
LibraryCompile
}${
SrsGprof
}
"
if
[
$SRS_GPERF
=
YES
]
;
then
CXXFLAGS
=
"
${
CXXFLAGS
}
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
;
fi
# arm or i386/x86_64
if
[
$SRS_ARM_UBUNTU12
=
YES
]
;
then
cat
<< END > ${SRS_OBJS}/${SRS_MAKEFILE}
GCC = ${SrsArmGCC}
CXX = ${SrsArmCXX}
AR = ${SrsArmAR}
LINK = ${SrsArmCXX}
END
else
cat
<< END > ${SRS_OBJS}/${SRS_MAKEFILE}
cat
<< END > ${SRS_OBJS}/${SRS_MAKEFILE}
GCC = gcc
CXX = g++
AR = ar
LINK = g++
END
fi
cat
<< END >> ${SRS_OBJS}/${SRS_MAKEFILE}
CXXFLAGS = ${CXXFLAGS}
.PHONY: default srs bandwidth librtmp
...
...
请
注册
或
登录
后发表评论