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

Support to disable stats by default

This commit is contained in:
winlin 2021-02-15 13:09:13 +08:00
parent f17fa69deb
commit 25be6d6bc0
8 changed files with 65 additions and 32 deletions

View file

@ -193,6 +193,12 @@ else
srs_undefine_macro "SRS_DEBUG" $SRS_AUTO_HEADERS_H
fi
if [ $SRS_DEBUG_STATS = YES ]; then
srs_define_macro "SRS_DEBUG_STATS" $SRS_AUTO_HEADERS_H
else
srs_undefine_macro "SRS_DEBUG_STATS" $SRS_AUTO_HEADERS_H
fi
# prefix
echo "" >> $SRS_AUTO_HEADERS_H
echo "#define SRS_PREFIX \"${SRS_PREFIX}\"" >> $SRS_AUTO_HEADERS_H