mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS3: Add console
This commit is contained in:
parent
9ed7565789
commit
de1c7522f0
55 changed files with 38494 additions and 86 deletions
29
trunk/configure
vendored
29
trunk/configure
vendored
|
@ -458,7 +458,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
|
||||
|
||||
|
@ -477,14 +477,13 @@ _default: server srs_ingest_hls utest __modules $__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"
|
||||
|
@ -589,30 +588,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue