mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS4: Add console. Disable cherrypy by default.
This commit is contained in:
parent
c95bfc4a46
commit
d4a8a72388
62 changed files with 38537 additions and 111 deletions
48
trunk/configure
vendored
48
trunk/configure
vendored
|
@ -455,7 +455,7 @@ mv ${SRS_WORKDIR}/${SRS_MAKEFILE} ${SRS_WORKDIR}/${SRS_MAKEFILE}.bk
|
|||
|
||||
# generate phony header
|
||||
cat << END > ${SRS_WORKDIR}/${SRS_MAKEFILE}
|
||||
.PHONY: default _default install install-api help clean destroy server srs_ingest_hls utest _prepare_dir $__mphonys
|
||||
.PHONY: default _default install help clean destroy server srs_ingest_hls utest _prepare_dir $__mphonys
|
||||
.PHONY: clean_srs clean_modules clean_openssl clean_nginx clean_cherrypy clean_srtp2 clean_opus clean_ffmpeg clean_st
|
||||
.PHONY: st ffmpeg
|
||||
|
||||
|
@ -474,14 +474,13 @@ _default: server srs_ingest_hls utest $__mdefaults
|
|||
@bash objs/_srs_build_summary.sh
|
||||
|
||||
help:
|
||||
@echo "Usage: make <help>|<clean>|<destroy>|<server>|<utest>|<install>|<install-api>|<uninstall>"
|
||||
@echo "Usage: make <help>|<clean>|<destroy>|<server>|<utest>|<install>|<uninstall>"
|
||||
@echo " help Display this help menu"
|
||||
@echo " clean Cleanup project and all depends"
|
||||
@echo " destroy Cleanup all files for this platform in ${SRS_OBJS_DIR}/${SRS_PLATFORM}"
|
||||
@echo " server Build the srs and other modules in main"
|
||||
@echo " utest Build the utest for srs"
|
||||
@echo " install Install srs to the prefix path"
|
||||
@echo " install-api Install srs and api-server to the prefix path"
|
||||
@echo " uninstall Uninstall srs from prefix path"
|
||||
@echo "To rebuild special module:"
|
||||
@echo " st Rebuild st-srs in ${SRS_OBJS_DIR}/${SRS_PLATFORM}/st-srs"
|
||||
|
@ -503,7 +502,6 @@ doclean:
|
|||
(cd research/api-server/static-dir && rm -rf crossdomain.xml forward live players)
|
||||
|
||||
clean: clean_srs clean_modules
|
||||
@echo "You can clean each some components, see make help"
|
||||
|
||||
destroy:
|
||||
(cd ${SRS_OBJS_DIR} && rm -rf ${SRS_PLATFORM})
|
||||
|
@ -557,7 +555,7 @@ END
|
|||
|
||||
cat << END >> ${SRS_WORKDIR}/${SRS_MAKEFILE}
|
||||
server: _prepare_dir
|
||||
@echo "Build the srs(simple rtmp server) over ST(state-threads)"
|
||||
@echo "Build the SRS server"
|
||||
\$(MAKE) -f ${SRS_OBJS_DIR}/${SRS_MAKEFILE} srs
|
||||
|
||||
END
|
||||
|
@ -578,30 +576,6 @@ uninstall:
|
|||
@echo "rmdir \$(SRS_PREFIX)"
|
||||
@rm -rf \$(SRS_PREFIX)
|
||||
|
||||
install-api: install
|
||||
@echo "Now mkdir \$(__REAL_INSTALL)"
|
||||
@mkdir -p \$(__REAL_INSTALL)
|
||||
@echo "Now copy binary files"
|
||||
@mkdir -p \$(__REAL_INSTALL)/research/api-server
|
||||
@cp research/api-server/server.py \$(__REAL_INSTALL)/research/api-server
|
||||
@mkdir -p \$(__REAL_INSTALL)/objs/ffmpeg/bin
|
||||
@cp objs/ffmpeg/bin/ffmpeg \$(__REAL_INSTALL)/objs/ffmpeg/bin
|
||||
@echo "Now copy html files"
|
||||
@mkdir -p \$(__REAL_INSTALL)/research/api-server/static-dir/players
|
||||
@cp research/api-server/static-dir/crossdomain.xml \$(__REAL_INSTALL)/research/api-server/static-dir
|
||||
@cp research/api-server/static-dir/index.html \$(__REAL_INSTALL)/research/api-server/static-dir
|
||||
@cp -r research/api-server/static-dir/players/* \$(__REAL_INSTALL)/research/api-server/static-dir/players
|
||||
@echo "Now copy init.d script files"
|
||||
@mkdir -p \$(__REAL_INSTALL)/etc/init.d
|
||||
@cp etc/init.d/srs-api \$(__REAL_INSTALL)/etc/init.d
|
||||
@sed -i "s|^ROOT=.*|ROOT=\"\$(SRS_PREFIX)\"|g" \$(__REAL_INSTALL)/etc/init.d/srs-api
|
||||
@echo ""
|
||||
@echo "The api installed, to link and start api:"
|
||||
@echo " sudo ln -sf \$(SRS_PREFIX)/etc/init.d/srs-api /etc/init.d/srs-api"
|
||||
@echo " /etc/init.d/srs-api start"
|
||||
@echo " http://\$(shell bash auto/local_ip.sh):8085"
|
||||
@echo "@see: https://github.com/ossrs/srs/wiki/v1_CN_LinuxService"
|
||||
|
||||
install:
|
||||
@echo "Now mkdir \$(__REAL_INSTALL)"
|
||||
@mkdir -p \$(__REAL_INSTALL)
|
||||
|
@ -800,20 +774,22 @@ done
|
|||
# Do cleanup when configure done.
|
||||
#####################################################################################
|
||||
if [[ $SRS_CLEAN == YES && -f Makefile ]]; then
|
||||
echo "Do full cleanup, you can disable it by: --clean=off"
|
||||
#echo "Do full cleanup, you can disable it by: --clean=off"
|
||||
make clean
|
||||
fi
|
||||
|
||||
#####################################################################################
|
||||
# next step
|
||||
#####################################################################################
|
||||
echo ""
|
||||
echo "You can run 3rdparty applications:"
|
||||
if [ $SRS_HTTP_CALLBACK = YES ]; then
|
||||
echo -e "\" python ./research/api-server/server.py 8085 \" to start the api-server"
|
||||
if [[ $SRS_CHERRYPY == YES ]]; then
|
||||
echo ""
|
||||
echo "You can run 3rdparty applications:"
|
||||
if [ $SRS_HTTP_CALLBACK = YES ]; then
|
||||
echo -e "\" python ./research/api-server/server.py 8085 \" to start the api-server"
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
echo "You can build SRS:"
|
||||
echo "\" make \" to build the srs(simple rtmp server)."
|
||||
echo "\" make help \" to get the usage of make"
|
||||
echo "\" make \" to build the SRS server"
|
||||
echo "\" make help \" to get some help"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue