You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
srs/trunk/modules
winlin 28517849ed refine typo 8 years ago
..
hls-ingester refine typo 8 years ago
readme.txt show signature of server. 9 years ago

readme.txt

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

SRS模块规则
1. 一个模块一个目录
2. 目录下放一个config文件
3. 所有的configure中的变量模块中可以使用

模块中需要定义变量,例如:
1. SRS_MODULE_NAME模块名称用来做Makefile的phony以及执行binary文件名。模块的二进制输出。为空时没有独立的二进制。
2. SRS_MODULE_MAIN模块的main函数所在的cpp文件在src/main目录。模块在main的文件。可以为空。
3. SRS_MODULE_APP模块在src/app目录的源文件列表。模块在app的文件。可以为空。
4. SRS_MODULE_DEFINES: 模块编译时的额外宏定义。在app和main模块加入。可以为空。
5. SRS_MODULE_MAKEFILE: 模块的Makefile。在make时会执行这个Makefile。可以为空。

下面是一个实例:
SRS_MODULE_NAME=("rtmfpd")
SRS_MODULE_MAIN=("srs_main_rtmfpd")
SRS_MODULE_APP=("srs_app_rtfmpd")
SRS_MODULE_DEFINES="-DRTMFPD"
SRS_MODULE_MAKEFILE="research/rtmfpd/Makefile"

注意,在配置开头必须清空这些变量:
SRS_MODULE_NAME=()
SRS_MODULE_MAIN=()
SRS_MODULE_APP=()
SRS_MODULE_DEFINES=""
SRS_MODULE_MAKEFILE=""

winlin, 2015.3