2012-03-08 16:21:22 +01:00
|
|
|
ngx_addon_name="ngx_rtmp_module"
|
2016-02-26 19:05:43 +01:00
|
|
|
RTMP_CORE_MODULES=" \
|
2012-03-12 18:58:00 +01:00
|
|
|
ngx_rtmp_module \
|
|
|
|
ngx_rtmp_core_module \
|
2012-03-23 18:29:22 +01:00
|
|
|
ngx_rtmp_cmd_module \
|
2012-11-14 17:23:46 +01:00
|
|
|
ngx_rtmp_codec_module \
|
2012-03-21 16:08:59 +01:00
|
|
|
ngx_rtmp_access_module \
|
2012-09-12 12:57:24 +02:00
|
|
|
ngx_rtmp_record_module \
|
2012-03-23 13:39:28 +01:00
|
|
|
ngx_rtmp_live_module \
|
2012-08-13 15:58:18 +02:00
|
|
|
ngx_rtmp_play_module \
|
2012-08-27 16:58:28 +02:00
|
|
|
ngx_rtmp_flv_module \
|
2012-08-22 18:29:41 +02:00
|
|
|
ngx_rtmp_mp4_module \
|
2012-03-29 12:07:57 +02:00
|
|
|
ngx_rtmp_netcall_module \
|
2012-05-16 13:56:27 +02:00
|
|
|
ngx_rtmp_relay_module \
|
2012-06-08 20:57:54 +02:00
|
|
|
ngx_rtmp_exec_module \
|
2012-09-02 15:25:20 +02:00
|
|
|
ngx_rtmp_auto_push_module \
|
2016-11-25 22:43:32 +01:00
|
|
|
ngx_rtmp_auto_push_index_module \
|
2013-01-13 09:14:48 +01:00
|
|
|
ngx_rtmp_log_module \
|
2013-03-01 09:45:10 +01:00
|
|
|
ngx_rtmp_limit_module \
|
2013-03-05 07:40:40 +01:00
|
|
|
ngx_rtmp_hls_module \
|
2013-09-30 19:58:02 +02:00
|
|
|
ngx_rtmp_dash_module \
|
2021-01-23 18:34:44 +01:00
|
|
|
ngx_rtmp_notify_module \
|
2012-03-23 13:03:32 +01:00
|
|
|
"
|
2016-02-26 19:05:43 +01:00
|
|
|
RTMP_HTTP_MODULES=" \
|
2012-05-07 13:41:03 +02:00
|
|
|
ngx_rtmp_stat_module \
|
2012-09-27 12:24:51 +02:00
|
|
|
ngx_rtmp_control_module \
|
2012-05-07 13:41:03 +02:00
|
|
|
"
|
2016-02-26 19:05:43 +01:00
|
|
|
RTMP_DEPS=" \
|
2012-10-21 03:56:58 +02:00
|
|
|
$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 \
|
2013-11-03 22:02:59 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_version.h \
|
2012-10-21 03:56:58 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_live_module.h \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_netcall_module.h \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_play_module.h \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_record_module.h \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_relay_module.h \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_streams.h \
|
2013-12-20 21:47:00 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_bitop.h \
|
2014-03-31 06:52:20 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_proxy_protocol.h \
|
2013-03-05 07:40:40 +01:00
|
|
|
$ngx_addon_dir/hls/ngx_rtmp_mpegts.h \
|
2013-10-20 20:36:28 +02:00
|
|
|
$ngx_addon_dir/dash/ngx_rtmp_mp4.h \
|
2012-10-21 03:56:58 +02:00
|
|
|
"
|
2016-02-26 19:05:43 +01:00
|
|
|
RTMP_CORE_SRCS=" \
|
2012-03-12 18:58:00 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp.c \
|
2012-05-03 00:28:21 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_init.c \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_handshake.c \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_handler.c \
|
2012-03-29 14:10:11 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_amf.c \
|
2012-03-12 18:58:00 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_send.c \
|
2012-03-23 13:03:32 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_shared.c \
|
2012-09-12 12:57:24 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_eval.c \
|
2012-03-12 18:58:00 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_receive.c \
|
2012-03-23 13:03:32 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_core_module.c \
|
2012-03-23 18:29:22 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_cmd_module.c \
|
2012-11-14 17:23:46 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_codec_module.c \
|
2012-03-21 16:08:59 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_access_module.c \
|
2012-09-12 12:57:24 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_record_module.c \
|
2012-03-23 13:39:28 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_live_module.c \
|
2012-08-13 15:58:18 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_play_module.c \
|
2012-08-27 16:58:28 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_flv_module.c \
|
2012-08-22 18:29:41 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_mp4_module.c \
|
2012-03-29 12:07:57 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_netcall_module.c \
|
2012-05-16 13:56:27 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_relay_module.c \
|
2012-05-07 13:41:03 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_bandwidth.c \
|
2012-06-08 20:57:54 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_exec_module.c \
|
2012-07-19 10:10:59 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_auto_push_module.c \
|
2013-01-13 09:14:48 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_log_module.c \
|
2013-03-01 09:45:10 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_limit_module.c \
|
2013-12-20 21:47:00 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_bitop.c \
|
2014-03-31 06:52:20 +02:00
|
|
|
$ngx_addon_dir/ngx_rtmp_proxy_protocol.c \
|
2013-03-05 07:40:40 +01:00
|
|
|
$ngx_addon_dir/hls/ngx_rtmp_hls_module.c \
|
2013-10-20 20:36:28 +02:00
|
|
|
$ngx_addon_dir/dash/ngx_rtmp_dash_module.c \
|
2013-03-05 07:40:40 +01:00
|
|
|
$ngx_addon_dir/hls/ngx_rtmp_mpegts.c \
|
2017-03-24 05:29:46 +01:00
|
|
|
$ngx_addon_dir/hls/ngx_rtmp_mpegts_crc.c \
|
2013-10-20 20:36:28 +02:00
|
|
|
$ngx_addon_dir/dash/ngx_rtmp_mp4.c \
|
2021-01-23 18:34:44 +01:00
|
|
|
$ngx_addon_dir/ngx_rtmp_notify_module.c \
|
2012-03-23 13:03:32 +01:00
|
|
|
"
|
2016-02-26 19:05:43 +01:00
|
|
|
RTMP_HTTP_SRCS=" \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_stat_module.c \
|
|
|
|
$ngx_addon_dir/ngx_rtmp_control_module.c \
|
|
|
|
"
|
|
|
|
ngx_module_incs=$ngx_addon_dir
|
|
|
|
ngx_module_deps=$RTMP_DEPS
|
|
|
|
|
2016-02-27 20:09:26 +01:00
|
|
|
if [ "$ngx_module_link" = "" ] ; then
|
|
|
|
# Old nginx version
|
|
|
|
ngx_module_link=NONE
|
|
|
|
|
2016-04-22 13:09:57 +02:00
|
|
|
EVENT_MODULES="$EVENT_MODULES $RTMP_CORE_MODULES"
|
2016-02-27 20:09:26 +01:00
|
|
|
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"
|
|
|
|
fi
|
|
|
|
|
2016-02-26 19:05:43 +01:00
|
|
|
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
|
|
|
|
elif [ $ngx_module_link = ADDON ] ; then
|
2016-04-22 13:09:57 +02:00
|
|
|
ngx_module_type=EVENT
|
2016-02-26 19:05:43 +01:00
|
|
|
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_srcs=$RTMP_HTTP_SRCS
|
|
|
|
. auto/module
|
|
|
|
fi
|
|
|
|
|
|
|
|
USE_OPENSSL=YES
|
2015-08-07 23:57:13 +02:00
|
|
|
|
2012-03-30 17:07:14 +02:00
|
|
|
CFLAGS="$CFLAGS -I$ngx_addon_dir"
|
2015-08-07 23:57:13 +02:00
|
|
|
# Debug build with all warnings as errors
|
|
|
|
# CFLAGS="$CFLAGS -I$ngx_addon_dir -Wall -Wpointer-arith -Wno-unused-parameter -Werror"
|