-
Notifications
You must be signed in to change notification settings - Fork 112
/
config.in
executable file
·74 lines (63 loc) · 2.58 KB
/
config.in
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
66
67
68
69
70
71
72
73
74
#!/bin/sh
ngx_addon_name=ngx_http_mruby_module
mruby_root=@MRUBY_ROOT@
mruby_incdir="@MRUBY_INCDIR@"
mruby_libdir="@MRUBY_LIBDIR@"
if [ -z "$mruby_root" ]; then
mruby_root=$ngx_addon_dir/mruby
fi
if [ -z "$mruby_incdir" ]; then
mruby_incdir="$mruby_root/src $mruby_root/include"
fi
if [ -z "$mruby_libdir" ]; then
mruby_libdir=$mruby_root/build/host/lib
fi
NGX_MRUBY_SRCS="$ngx_addon_dir/src/http/ngx_http_mruby_module.c \
$ngx_addon_dir/src/http/ngx_http_mruby_core.c \
$ngx_addon_dir/src/http/ngx_http_mruby_init.c \
$ngx_addon_dir/src/http/ngx_http_mruby_request.c \
$ngx_addon_dir/src/http/ngx_http_mruby_var.c \
$ngx_addon_dir/src/http/ngx_http_mruby_connection.c \
$ngx_addon_dir/src/http/ngx_http_mruby_server.c \
$ngx_addon_dir/src/http/ngx_http_mruby_filter.c \
$ngx_addon_dir/src/http/ngx_http_mruby_upstream.c \
$ngx_addon_dir/src/http/ngx_http_mruby_ssl.c \
$ngx_addon_dir/src/http/ngx_http_mruby_async.c \
"
if [ $STREAM = YES ]; then
NGX_MRUBY_SRCS="$NGX_MRUBY_SRCS \
$ngx_addon_dir/src/stream/ngx_stream_mruby_module.c \
$ngx_addon_dir/src/stream/ngx_stream_mruby_init.c \
$ngx_addon_dir/src/stream/ngx_stream_mruby_core.c \
$ngx_addon_dir/src/stream/ngx_stream_mruby_connection.c \
$ngx_addon_dir/src/stream/ngx_stream_mruby_async.c \
"
fi
if [ $ngx_module_link = DYNAMIC ] ; then
ngx_module_type=HTTP_AUX_FILTER
ngx_module_name="$ngx_addon_name __ngx_http_upstream_keepalive_module"
if [ $STREAM = YES ]; then
ngx_module_name="$ngx_module_name ngx_stream_mruby_module"
fi
ngx_module_srcs="$NGX_MRUBY_SRCS"
ngx_module_libs="$LDFLAGS -L$mruby_libdir -lmruby -lm"
ngx_module_incs="$CORE_INCS $CFLAGS $mruby_incdir"
if [ -f $ngx_addon_dir/mrbgems_config_dynamic ]; then
. $ngx_addon_dir/mrbgems_config_dynamic
fi
. auto/module
else
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES __ngx_http_upstream_keepalive_module ngx_http_mruby_module"
if [ $STREAM = YES ]; then
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_stream_mruby_module"
fi
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
$NGX_MRUBY_SRCS
"
CORE_LIBS="$CORE_LIBS -L$mruby_libdir -lmruby -lm"
CORE_INCS="$CORE_INCS $mruby_incdir"
if [ -f $ngx_addon_dir/mrbgems_config ]; then
. $ngx_addon_dir/mrbgems_config
fi
fi
have=NDK_SET_VAR . auto/have