mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-02 14:49:33 +02:00
Merge pull request #79 from sergey-dryabzhinsky/78-support-build-as-module
Build ngx_rtmp_module as a dynamic module
This commit is contained in:
commit
bf332f3794
42
config
42
config
|
@ -1,6 +1,5 @@
|
||||||
ngx_addon_name="ngx_rtmp_module"
|
ngx_addon_name="ngx_rtmp_module"
|
||||||
|
RTMP_CORE_MODULES=" \
|
||||||
CORE_MODULES="$CORE_MODULES
|
|
||||||
ngx_rtmp_module \
|
ngx_rtmp_module \
|
||||||
ngx_rtmp_core_module \
|
ngx_rtmp_core_module \
|
||||||
ngx_rtmp_cmd_module \
|
ngx_rtmp_cmd_module \
|
||||||
|
@ -21,15 +20,11 @@ CORE_MODULES="$CORE_MODULES
|
||||||
ngx_rtmp_hls_module \
|
ngx_rtmp_hls_module \
|
||||||
ngx_rtmp_dash_module \
|
ngx_rtmp_dash_module \
|
||||||
"
|
"
|
||||||
|
RTMP_HTTP_MODULES=" \
|
||||||
|
|
||||||
HTTP_MODULES="$HTTP_MODULES \
|
|
||||||
ngx_rtmp_stat_module \
|
ngx_rtmp_stat_module \
|
||||||
ngx_rtmp_control_module \
|
ngx_rtmp_control_module \
|
||||||
"
|
"
|
||||||
|
RTMP_DEPS=" \
|
||||||
|
|
||||||
NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
|
|
||||||
$ngx_addon_dir/ngx_rtmp_amf.h \
|
$ngx_addon_dir/ngx_rtmp_amf.h \
|
||||||
$ngx_addon_dir/ngx_rtmp_bandwidth.h \
|
$ngx_addon_dir/ngx_rtmp_bandwidth.h \
|
||||||
$ngx_addon_dir/ngx_rtmp_cmd_module.h \
|
$ngx_addon_dir/ngx_rtmp_cmd_module.h \
|
||||||
|
@ -48,9 +43,7 @@ NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
|
||||||
$ngx_addon_dir/hls/ngx_rtmp_mpegts.h \
|
$ngx_addon_dir/hls/ngx_rtmp_mpegts.h \
|
||||||
$ngx_addon_dir/dash/ngx_rtmp_mp4.h \
|
$ngx_addon_dir/dash/ngx_rtmp_mp4.h \
|
||||||
"
|
"
|
||||||
|
RTMP_CORE_SRCS=" \
|
||||||
|
|
||||||
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
|
|
||||||
$ngx_addon_dir/ngx_rtmp.c \
|
$ngx_addon_dir/ngx_rtmp.c \
|
||||||
$ngx_addon_dir/ngx_rtmp_init.c \
|
$ngx_addon_dir/ngx_rtmp_init.c \
|
||||||
$ngx_addon_dir/ngx_rtmp_handshake.c \
|
$ngx_addon_dir/ngx_rtmp_handshake.c \
|
||||||
|
@ -70,8 +63,6 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
|
||||||
$ngx_addon_dir/ngx_rtmp_flv_module.c \
|
$ngx_addon_dir/ngx_rtmp_flv_module.c \
|
||||||
$ngx_addon_dir/ngx_rtmp_mp4_module.c \
|
$ngx_addon_dir/ngx_rtmp_mp4_module.c \
|
||||||
$ngx_addon_dir/ngx_rtmp_netcall_module.c \
|
$ngx_addon_dir/ngx_rtmp_netcall_module.c \
|
||||||
$ngx_addon_dir/ngx_rtmp_stat_module.c \
|
|
||||||
$ngx_addon_dir/ngx_rtmp_control_module.c \
|
|
||||||
$ngx_addon_dir/ngx_rtmp_relay_module.c \
|
$ngx_addon_dir/ngx_rtmp_relay_module.c \
|
||||||
$ngx_addon_dir/ngx_rtmp_bandwidth.c \
|
$ngx_addon_dir/ngx_rtmp_bandwidth.c \
|
||||||
$ngx_addon_dir/ngx_rtmp_exec_module.c \
|
$ngx_addon_dir/ngx_rtmp_exec_module.c \
|
||||||
|
@ -86,9 +77,30 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
|
||||||
$ngx_addon_dir/hls/ngx_rtmp_mpegts.c \
|
$ngx_addon_dir/hls/ngx_rtmp_mpegts.c \
|
||||||
$ngx_addon_dir/dash/ngx_rtmp_mp4.c \
|
$ngx_addon_dir/dash/ngx_rtmp_mp4.c \
|
||||||
"
|
"
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
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_srcs=$RTMP_HTTP_SRCS
|
||||||
|
. auto/module
|
||||||
|
fi
|
||||||
|
|
||||||
|
USE_OPENSSL=YES
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -I$ngx_addon_dir"
|
CFLAGS="$CFLAGS -I$ngx_addon_dir"
|
||||||
# Debug build with all warnings as errors
|
# Debug build with all warnings as errors
|
||||||
# CFLAGS="$CFLAGS -I$ngx_addon_dir -Wall -Wpointer-arith -Wno-unused-parameter -Werror"
|
# CFLAGS="$CFLAGS -I$ngx_addon_dir -Wall -Wpointer-arith -Wno-unused-parameter -Werror"
|
||||||
|
|
||||||
USE_OPENSSL=YES
|
|
||||||
|
|
Loading…
Reference in a new issue