forked from matsumotory/ngx_mruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
38 lines (31 loc) · 1.58 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
#!/bin/sh
ngx_addon_name=ngx_http_mruby_module
mruby_root=$ngx_addon_dir/mruby
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_http_mruby_module __ngx_http_upstream_keepalive_module"
NGX_ADDON_SRCS="$NGX_ADDON_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 \
"
if [ $STREAM = YES ]; then
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_stream_mruby_module"
NGX_ADDON_SRCS="$NGX_ADDON_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 \
"
fi
CORE_LIBS="$CORE_LIBS $mruby_root/build/host/mrblib/mrblib.o $mruby_root/build/host/lib/libmruby.a -lm"
CORE_INCS="$CORE_INCS $mruby_root/src $mruby_root/include"
if [ -f $ngx_addon_dir/mrbgems_config ]; then
. $ngx_addon_dir/mrbgems_config
fi
have=NDK_SET_VAR . auto/have