-
Notifications
You must be signed in to change notification settings - Fork 6
/
config
65 lines (49 loc) · 1.94 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ngx_addon_name="ngx_quic_module"
QUIC_MODULES=" \
ngx_quic_module \
ngx_quic_core_module \
"
HTTP_QUIC_MODULES="ngx_http_quic_module"
QUIC_DEPS=" \
$ngx_addon_dir/src/ngx_quic_deps.h \
$ngx_addon_dir/src/quic_stack_api.h \
$ngx_addon_dir/src/ngx_quic_module.h \
"
QUIC_SRCS=" \
$ngx_addon_dir/src/ngx_quic_module.c \
$ngx_addon_dir/src/ngx_quic_handler.c \
$ngx_addon_dir/src/ngx_quic_stack.c \
"
HTTP_QUIC_DEPS=" \
$ngx_addon_dir/src/ngx_http_quic_deps.h \
$ngx_addon_dir/src/quic_stack_api.h \
$ngx_addon_dir/src/ngx_quic_module.h \
"
HTTP_QUIC_SRCS=" \
$ngx_addon_dir/src/ngx_http_quic_module.c \
"
if [ -f auto/module ] ; then
ngx_module_incs=$ngx_addon_dir/src
ngx_module_deps="$QUIC_DEPS $HTTP_QUIC_DEPS"
ngx_module_libs="-lngxquicstack"
if [ $ngx_module_link = DYNAMIC ] ; then
ngx_module_name="$QUIC_MODULES $HTTP_QUIC_MODULES"
ngx_module_srcs="$QUIC_SRCS $HTTP_QUIC_SRCS"
. auto/module
else
ngx_module_type=CORE
ngx_module_name=$QUIC_MODULES
ngx_module_srcs=$QUIC_SRCS
. auto/module
ngx_module_type=HTTP
ngx_module_name=$HTTP_QUIC_MODULES
ngx_module_srcs=$HTTP_QUIC_SRCS
. auto/module
fi
else
CORE_MODULES="$CORE_MODULES $QUIC_MODULES"
HTTP_MODULES="$HTTP_MODULES $HTTP_QUIC_MODULES"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $QUIC_DEPS"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $QUIC_SRCS $HTTP_QUIC_SRCS"
CFLAGS="$CFLAGS -I$ngx_addon_dir/src -lngxquicstack -lpthread"
fi