1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

CI: Support codecov

This commit is contained in:
winlin 2019-02-02 21:42:03 +08:00
parent 62087fdb05
commit 7243d8e7b8
5 changed files with 49 additions and 7 deletions

8
trunk/configure vendored
View file

@ -104,6 +104,10 @@ CXXFLAGS="${CXXFLAGS} ${CppStd}${WarnLevel}${GDBDebug}${LibraryCompile}${SrsGpro
if [ $SRS_GPERF = YES ]; then
CXXFLAGS="${CXXFLAGS} -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free";
fi
# For coverage.
if [[ $SRS_GCOV == YES ]]; then
CXXFLAGS="${CXXFLAGS} -fprofile-arcs -ftest-coverage";
fi
# Start to generate the Makefile.
cat << END > ${SRS_OBJS}/${SRS_MAKEFILE}
GCC = gcc
@ -153,6 +157,10 @@ fi
if [ $SRS_MIPS_UBUNTU12 = YES ]; then
SrsLinkOptions="${SrsLinkOptions} -lgcc_eh";
fi
# For coverage.
if [[ $SRS_GCOV == YES ]]; then
SrsLinkOptions="${SrsLinkOptions} -fprofile-arcs -ftest-coverage";
fi
#####################################################################################
# Modules, compile each module, then link to binary