170 lines
8.4 KiB
Plaintext
170 lines
8.4 KiB
Plaintext
![]() |
ngx_addon_name="ngx_rtmp_module"
|
||
|
|
||
|
RTMP_CORE_MODULES=" \
|
||
|
ngx_live_module \
|
||
|
ngx_rtmp_module \
|
||
|
ngx_rtmp_dynamic_module \
|
||
|
ngx_rtmp_dynamic_core_module \
|
||
|
ngx_rtmp_core_module \
|
||
|
ngx_rtmp_cmd_module \
|
||
|
ngx_rtmp_codec_module \
|
||
|
ngx_rtmp_access_module \
|
||
|
ngx_rtmp_live_module \
|
||
|
ngx_live_record_module \
|
||
|
ngx_live_relay_module \
|
||
|
ngx_live_relay_rtmp_module \
|
||
|
ngx_live_relay_static_module \
|
||
|
ngx_live_relay_simple_module \
|
||
|
ngx_rtmp_exec_module \
|
||
|
ngx_rtmp_notify_module \
|
||
|
ngx_live_relay_inner_module \
|
||
|
ngx_rtmp_log_module \
|
||
|
ngx_rtmp_limit_module \
|
||
|
ngx_rtmp_hls_module \
|
||
|
ngx_rtmp_dash_module \
|
||
|
ngx_rtmp_shared_module \
|
||
|
ngx_rtmp_record_module \
|
||
|
ngx_rtmp_gop_module \
|
||
|
ngx_rtmp_monitor_module \
|
||
|
ngx_mpegts_live_module \
|
||
|
ngx_mpegts_gop_module \
|
||
|
ngx_hls_live_module \
|
||
|
"
|
||
|
|
||
|
|
||
|
RTMP_HTTP_MODULES=" \
|
||
|
ngx_rtmp_stat_module \
|
||
|
ngx_rtmp_sys_stat_module \
|
||
|
ngx_rtmp_control_module \
|
||
|
ngx_http_flv_live_module \
|
||
|
ngx_hls_http_module \
|
||
|
ngx_mpegts_http_module \
|
||
|
"
|
||
|
|
||
|
|
||
|
RTMP_DEPS=" \
|
||
|
$ngx_addon_dir/ngx_netcall.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_amf.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_bandwidth.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_cmd_module.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_codec_module.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_eval.h \
|
||
|
$ngx_addon_dir/ngx_rtmp.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_version.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_live_module.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_notify_module.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_streams.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_bitop.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_proxy_protocol.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_monitor_module.h \
|
||
|
$ngx_addon_dir/hls/ngx_rtmp_mpegts.h \
|
||
|
$ngx_addon_dir/dash/ngx_rtmp_mp4.h \
|
||
|
$ngx_addon_dir/http/ngx_http_set_header.h \
|
||
|
$ngx_addon_dir/ngx_live.h \
|
||
|
$ngx_addon_dir/ngx_live_relay.h \
|
||
|
$ngx_addon_dir/ngx_live_record.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_dynamic.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_variables.h \
|
||
|
$ngx_addon_dir/ngx_rtmp_record_module.h \
|
||
|
$ngx_addon_dir/mpegts/ngx_mpegts_live_module.h \
|
||
|
$ngx_addon_dir/mpegts/ngx_hls_live_module.h \
|
||
|
$ngx_addon_dir/mpegts/ngx_mpegts_gop_module.h \
|
||
|
"
|
||
|
|
||
|
|
||
|
RTMP_CORE_SRCS=" \
|
||
|
$ngx_addon_dir/ngx_netcall.c \
|
||
|
$ngx_addon_dir/ngx_rtmp.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_init.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_handshake.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_handler.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_amf.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_send.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_eval.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_receive.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_core_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_cmd_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_codec_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_access_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_live_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_bandwidth.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_exec_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_notify_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_log_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_limit_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_bitop.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_proxy_protocol.c \
|
||
|
$ngx_addon_dir/hls/ngx_rtmp_hls_module.c \
|
||
|
$ngx_addon_dir/dash/ngx_rtmp_dash_module.c \
|
||
|
$ngx_addon_dir/hls/ngx_rtmp_mpegts.c \
|
||
|
$ngx_addon_dir/dash/ngx_rtmp_mp4.c \
|
||
|
$ngx_addon_dir/ngx_live.c \
|
||
|
$ngx_addon_dir/ngx_live_relay.c \
|
||
|
$ngx_addon_dir/ngx_live_relay_httpflv.c \
|
||
|
$ngx_addon_dir/ngx_live_relay_rtmp.c \
|
||
|
$ngx_addon_dir/ngx_live_relay_inner.c \
|
||
|
$ngx_addon_dir/ngx_live_relay_simple.c \
|
||
|
$ngx_addon_dir/ngx_live_relay_static.c \
|
||
|
$ngx_addon_dir/ngx_live_record.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_shared_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_gop_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_monitor_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_dynamic.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_variables.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_record_module.c \
|
||
|
$ngx_addon_dir/mpegts/ngx_mpegts_live_module.c \
|
||
|
$ngx_addon_dir/mpegts/ngx_hls_live_module.c \
|
||
|
$ngx_addon_dir/mpegts/ngx_mpegts_gop_module.c \
|
||
|
"
|
||
|
|
||
|
|
||
|
RTMP_HTTP_SRCS=" \
|
||
|
$ngx_addon_dir/ngx_rtmp_sys_stat_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_stat_module.c \
|
||
|
$ngx_addon_dir/ngx_rtmp_control_module.c \
|
||
|
$ngx_addon_dir/http/ngx_http_flv_live_module.c \
|
||
|
$ngx_addon_dir/http/ngx_http_set_header.c \
|
||
|
$ngx_addon_dir/mpegts/ngx_hls_http_module.c \
|
||
|
$ngx_addon_dir/mpegts/ngx_mpegts_http_module.c \
|
||
|
"
|
||
|
|
||
|
if [ -f auto/module ] ; then
|
||
|
ngx_module_incs=$ngx_addon_dir
|
||
|
ngx_module_deps=$RTMP_DEPS
|
||
|
|
||
|
if [ $ngx_module_link = DYNAMIC ] ; then
|
||
|
ngx_module_name="$RTMP_CORE_MODULES $RTMP_HTTP_MODULES"
|
||
|
ngx_module_srcs="$RTMP_CORE_SRCS $RTMP_HTTP_SRCS"
|
||
|
|
||
|
. auto/module
|
||
|
|
||
|
else
|
||
|
ngx_module_type=CORE
|
||
|
ngx_module_name=$RTMP_CORE_MODULES
|
||
|
ngx_module_srcs=$RTMP_CORE_SRCS
|
||
|
|
||
|
. auto/module
|
||
|
|
||
|
|
||
|
ngx_module_type=HTTP
|
||
|
ngx_module_name=$RTMP_HTTP_MODULES
|
||
|
ngx_module_incs="$ngx_addon_dir $ngx_addon_dir/http $ngx_addon_dir/hls $ngx_addon_dir/mpegts"
|
||
|
ngx_module_deps=
|
||
|
ngx_module_srcs=$RTMP_HTTP_SRCS
|
||
|
|
||
|
. auto/module
|
||
|
fi
|
||
|
|
||
|
else
|
||
|
CORE_MODULES="$CORE_MODULES $RTMP_CORE_MODULES"
|
||
|
HTTP_MODULES="$HTTP_MODULES $RTMP_HTTP_MODULES"
|
||
|
|
||
|
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $RTMP_DEPS"
|
||
|
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $RTMP_CORE_SRCS $RTMP_HTTP_SRCS"
|
||
|
|
||
|
CFLAGS="$CFLAGS -I$ngx_addon_dir -I$ngx_addon_dir/http -I$ngx_addon_dir/hls -I$ngx_addon_dir/mpegts"
|
||
|
fi
|
||
|
|
||
|
USE_OPENSSL=YES
|
||
|
|