mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
Refine rebuild components
This commit is contained in:
parent
056fcd2928
commit
60d810693c
3 changed files with 24 additions and 20 deletions
10
trunk/3rdparty/ffmpeg-4.2-fit/.gitignore
vendored
10
trunk/3rdparty/ffmpeg-4.2-fit/.gitignore
vendored
|
@ -2,18 +2,20 @@
|
||||||
*.d
|
*.d
|
||||||
*.pc
|
*.pc
|
||||||
*.o
|
*.o
|
||||||
|
_release
|
||||||
|
|
||||||
|
# We should remove bellow files in depends.sh
|
||||||
|
doc
|
||||||
config.asm
|
config.asm
|
||||||
config.h
|
config.h
|
||||||
_release
|
|
||||||
doc
|
|
||||||
ffbuild/config.fate
|
ffbuild/config.fate
|
||||||
ffbuild/config.log
|
ffbuild/config.log
|
||||||
ffbuild/config.mak
|
ffbuild/config.mak
|
||||||
ffbuild/config.sh
|
ffbuild/config.sh
|
||||||
ffbuild/.config
|
ffbuild/.config
|
||||||
libavutil/lib.version
|
libavutil/lib.version
|
||||||
libavcodec/libavcodec.version
|
|
||||||
libavutil/libavutil.version
|
libavutil/libavutil.version
|
||||||
libswresample/libswresample.version
|
|
||||||
libavutil/ffversion.h
|
libavutil/ffversion.h
|
||||||
libavutil/avconfig.h
|
libavutil/avconfig.h
|
||||||
|
libavcodec/libavcodec.version
|
||||||
|
libswresample/libswresample.version
|
||||||
|
|
|
@ -603,6 +603,10 @@ if [[ $SRS_EXPORT_LIBRTMP_PROJECT == NO && $SRS_RTC == YES ]]; then
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
done &&
|
done &&
|
||||||
|
# We should remove some files(in .gitignore) to keep them in local generated.
|
||||||
|
(cd ffbuild && rm -f config.fate config.log config.mak config.sh .config) &&
|
||||||
|
(cd libavutil && rm -f lib.version libavutil.version ffversion.h avconfig.h) &&
|
||||||
|
(rm -rf doc && rm -f config.asm config.h libavcodec/libavcodec.version libswresample/libswresample.version) &&
|
||||||
# Build source code.
|
# Build source code.
|
||||||
PKG_CONFIG_PATH=$ABS_OBJS/opus/lib/pkgconfig ./configure \
|
PKG_CONFIG_PATH=$ABS_OBJS/opus/lib/pkgconfig ./configure \
|
||||||
--prefix=`pwd`/${SRS_PLATFORM}/_release \
|
--prefix=`pwd`/${SRS_PLATFORM}/_release \
|
||||||
|
|
30
trunk/configure
vendored
30
trunk/configure
vendored
|
@ -441,8 +441,8 @@ mv ${SRS_WORKDIR}/${SRS_MAKEFILE} ${SRS_WORKDIR}/${SRS_MAKEFILE}.bk
|
||||||
# generate phony header
|
# generate phony header
|
||||||
cat << END > ${SRS_WORKDIR}/${SRS_MAKEFILE}
|
cat << END > ${SRS_WORKDIR}/${SRS_MAKEFILE}
|
||||||
.PHONY: default _default install install-api help clean destroy server srs_ingest_hls librtmp utest _prepare_dir $__mphonys
|
.PHONY: default _default install install-api help clean destroy server srs_ingest_hls librtmp utest _prepare_dir $__mphonys
|
||||||
.PHONY: clean_srs clean_modules clean_st clean_openssl clean_ffmpeg clean_nginx clean_cherrypy clean_srtp2 clean_opus
|
.PHONY: clean_srs clean_modules clean_openssl clean_nginx clean_cherrypy clean_srtp2 clean_opus
|
||||||
.PHONY: st
|
.PHONY: st ffmpeg
|
||||||
|
|
||||||
# install prefix.
|
# install prefix.
|
||||||
SRS_PREFIX=${SRS_PREFIX}
|
SRS_PREFIX=${SRS_PREFIX}
|
||||||
|
@ -471,12 +471,9 @@ help:
|
||||||
@echo " install install srs to the prefix path"
|
@echo " install install srs to the prefix path"
|
||||||
@echo " install-api install srs and api-server to the prefix path"
|
@echo " install-api install srs and api-server to the prefix path"
|
||||||
@echo " uninstall uninstall srs from prefix path"
|
@echo " uninstall uninstall srs from prefix path"
|
||||||
@echo "To clean special module:"
|
@echo "To rebuild special module:"
|
||||||
@echo " clean_st Clean depend st-srs in ${SRS_OBJS_DIR}/${SRS_PLATFORM}/st-srs"
|
@echo " st Rebuild st-srs in ${SRS_OBJS_DIR}/${SRS_PLATFORM}/st-srs"
|
||||||
@echo " clean_openssl Clean depend openssl in objs"
|
@echo " ffmpeg Rebuild ffmpeg in ${SRS_OBJS}/${SRS_PLATFORM}/ffmpeg-4.2-fit"
|
||||||
@echo " clean_ffmpeg Clean depend ffmpeg in ${SRS_OBJS}/${SRS_PLATFORM}/ffmpeg-4.2-fit"
|
|
||||||
@echo " clean_srtp2 Clean depend srtp2 in objs"
|
|
||||||
@echo " clean_opus Clean depend opus in objs"
|
|
||||||
@echo "@remark all modules will auto genearted and build"
|
@echo "@remark all modules will auto genearted and build"
|
||||||
@echo "For example:"
|
@echo "For example:"
|
||||||
@echo " make"
|
@echo " make"
|
||||||
|
@ -492,7 +489,7 @@ doclean:
|
||||||
clean: clean_srs clean_modules
|
clean: clean_srs clean_modules
|
||||||
@echo "You can clean each some components, see make help"
|
@echo "You can clean each some components, see make help"
|
||||||
|
|
||||||
destroy: clean_st clean_openssl clean_ffmpeg clean_srtp2 clean_opus clean_nginx clean_cherrypy
|
destroy:
|
||||||
(cd ${SRS_OBJS_DIR} && rm -rf ${SRS_PLATFORM})
|
(cd ${SRS_OBJS_DIR} && rm -rf ${SRS_PLATFORM})
|
||||||
|
|
||||||
clean_srs:
|
clean_srs:
|
||||||
|
@ -504,9 +501,6 @@ clean_srs:
|
||||||
clean_modules:
|
clean_modules:
|
||||||
(cd ${SRS_OBJS_DIR} && rm -rf $__mdefaults)
|
(cd ${SRS_OBJS_DIR} && rm -rf $__mdefaults)
|
||||||
|
|
||||||
clean_st:
|
|
||||||
(cd ${SRS_OBJS_DIR}/${SRS_PLATFORM}/st-srs && make clean && make ${_ST_MAKE})
|
|
||||||
|
|
||||||
clean_openssl:
|
clean_openssl:
|
||||||
(cd ${SRS_OBJS_DIR}/${SRS_PLATFORM} && rm -rf openssl*)
|
(cd ${SRS_OBJS_DIR}/${SRS_PLATFORM} && rm -rf openssl*)
|
||||||
|
|
||||||
|
@ -516,10 +510,6 @@ clean_srtp2:
|
||||||
clean_opus:
|
clean_opus:
|
||||||
(cd ${SRS_OBJS_DIR}/${SRS_PLATFORM} && rm -rf opus-1.3.1)
|
(cd ${SRS_OBJS_DIR}/${SRS_PLATFORM} && rm -rf opus-1.3.1)
|
||||||
|
|
||||||
clean_ffmpeg:
|
|
||||||
(cd ${SRS_OBJS_DIR}/${SRS_PLATFORM} && rm -rf ffmpeg)
|
|
||||||
(cd ${SRS_OBJS}/${SRS_PLATFORM}/ffmpeg-4.2-fit && make clean && rm -rf _release)
|
|
||||||
|
|
||||||
clean_nginx:
|
clean_nginx:
|
||||||
(cd ${SRS_OBJS_DIR} && rm -rf nginx)
|
(cd ${SRS_OBJS_DIR} && rm -rf nginx)
|
||||||
|
|
||||||
|
@ -527,6 +517,14 @@ clean_cherrypy:
|
||||||
(cd research/librtmp && make clean)
|
(cd research/librtmp && make clean)
|
||||||
(cd research/api-server/static-dir && rm -rf crossdomain.xml forward live players)
|
(cd research/api-server/static-dir && rm -rf crossdomain.xml forward live players)
|
||||||
|
|
||||||
|
st:
|
||||||
|
(cd ${SRS_OBJS_DIR} && rm -f srs srs_utest)
|
||||||
|
(cd ${SRS_OBJS_DIR}/${SRS_PLATFORM}/st-srs && \$(MAKE) ${_ST_MAKE} EXTRA_CFLAGS="${_ST_EXTRA_CFLAGS}")
|
||||||
|
|
||||||
|
ffmpeg:
|
||||||
|
(cd ${SRS_OBJS_DIR} && rm -f srs srs_utest)
|
||||||
|
(cd ${SRS_OBJS}/${SRS_PLATFORM}/ffmpeg-4.2-fit && \$(MAKE) && \$(MAKE) install-libs)
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
||||||
# for Makefile of all modules.
|
# for Makefile of all modules.
|
||||||
|
|
Loading…
Reference in a new issue